X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fforbid-break-engraver.cc;h=f44d7bc27fca8656b43df95a881f0fe298a1cb90;hb=9d8942c954e7d44d121c89719aceb91cf83d51ed;hp=7ad1133e4f8784c74182134c4c8daa51d1189127;hpb=7f6816438d66f6d70db5b68454d80656a0f3f131;p=lilypond.git diff --git a/lily/forbid-break-engraver.cc b/lily/forbid-break-engraver.cc index 7ad1133e4f..f44d7bc27f 100644 --- a/lily/forbid-break-engraver.cc +++ b/lily/forbid-break-engraver.cc @@ -5,13 +5,13 @@ (c) 2002--_2005 Han-Wen Nienhuys */ -#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" @@ -42,17 +42,22 @@ Forbid_line_break_engraver::start_translation_timestep () { 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 " + );