X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fforbid-break-engraver.cc;h=c44bbb6012f300f058754c84e8ad50729f72c525;hb=bfeffe647f9dbb6fc9e32769223fe2b02a072d74;hp=0ba34fec52818234c12a7b4e0280a68ae154f738;hpb=fc9660e70c14140d16608855332f9b31697bc5ad;p=lilypond.git diff --git a/lily/forbid-break-engraver.cc b/lily/forbid-break-engraver.cc index 0ba34fec52..c44bbb6012 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" @@ -19,7 +19,7 @@ class Forbid_line_break_engraver : public Engraver { public: TRANSLATOR_DECLARATIONS (Forbid_line_break_engraver); - PRECOMPUTED_VIRTUAL void start_translation_timestep (); + void start_translation_timestep (); }; Forbid_line_break_engraver::Forbid_line_break_engraver () @@ -42,18 +42,14 @@ 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 */ "", - /* acks */ "", - /* reads */ "busyGrobs", - /* write */ ""); + /* doc */ "Forbid line breaks when note heads " + "are still playing at some point.", + /* create */ "", + /* read */ "busyGrobs", + /* write */ "forbidBreak");