]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/forbid-break-engraver.cc
Merge branch 'cvs-head' of ssh+git://hanwen@repo.or.cz/srv/git/lilypond into master...
[lilypond.git] / lily / forbid-break-engraver.cc
index 2db24f41da1486dcf640127c313ffafda89368a5..64dedf735815329db94c45e35dadf6cc19a415e7 100644 (file)
@@ -5,13 +5,14 @@
 
   (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 "pitch.hh"
+#include "rhythmic-head.hh"
 
 #include "translator.icc"
 
@@ -42,18 +43,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,
                /* doc */ "Forbid line breaks when note heads "
                "are still playing at some point.",
                /* create */ "",
-               /* accept */ "",
                /* read */ "busyGrobs",
-               /* write */ "");
+               /* write */ "forbidBreak");