(c) 2002--_2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
-#include "rhythmic-head.hh"
+#include "context.hh"
+#include "duration.hh"
+#include "engraver.hh"
#include "grob.hh"
-#include "score-engraver.hh"
#include "input.hh"
#include "pitch.hh"
-#include "duration.hh"
-#include "moment.hh"
+#include "rhythmic-head.hh"
#include "translator.icc"
{
Grob *g = unsmob_grob (scm_cdar (busy));
if (g->internal_has_interface (ly_symbol2scm ("rhythmic-grob-interface")))
- {
- get_score_engraver ()->forbid_breaks ();
- }
+ context ()->get_score_context ()->set_property ("forbidBreak", SCM_BOOL_T);
busy = scm_cdr (busy);
}
}
-
ADD_TRANSLATOR (Forbid_line_break_engraver,
- /* descr */ "Forbid line breaks when note heads are still playing at some point.",
- /* creats*/ "",
- /* accepts */ "",
- /* reads */ "busyGrobs",
- /* write */ "");
+ /* doc */ "Forbid line breaks when note heads "
+ "are still playing at some point.",
+ /* create */ "",
+ /* read */ "busyGrobs",
+ /* write */ "forbidBreak");