]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parenthesis-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / parenthesis-engraver.cc
index b9ef4d8dce34b774a66297d5cee92b48eaa73c9a..e7f83de80cf8cb2e485dce5bbef8dacf723ec49d 100644 (file)
@@ -3,13 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2005--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 */
 
 #include "engraver.hh"
 
-#include "grob.hh"
 #include "item.hh"
 #include "pointer-group-interface.hh"
 #include "simple-closure.hh"
@@ -26,7 +25,7 @@ protected:
   DECLARE_ACKNOWLEDGER (grob);
 };
 
-Parenthesis_engraver::Parenthesis_engraver()
+Parenthesis_engraver::Parenthesis_engraver ()
 {
 }
 
@@ -41,8 +40,9 @@ Parenthesis_engraver::acknowledge_grob (Grob_info info)
            {
              Engraver *eng = dynamic_cast<Engraver*> (info.origin_translator ());
              Item *paren = eng->make_item ("ParenthesesItem", victim->self_scm ());
-
              Pointer_group_interface::add_grob (paren, ly_symbol2scm ("elements"), victim);
+
+             paren->set_parent (victim, Y_AXIS);
              
              Real size = robust_scm2double (paren->get_property ("font-size"), 0.0)
                + robust_scm2double (victim->get_property ("font-size"), 0.0);
@@ -64,11 +64,16 @@ Parenthesis_engraver::acknowledge_grob (Grob_info info)
 
 ADD_ACKNOWLEDGER (Parenthesis_engraver, grob);
 ADD_TRANSLATOR (Parenthesis_engraver,
-               /* doc */ "Parenthesize objects whose music cause has the @code{parenthesize} "
-               "property.",
+               /* doc */
+               "Parenthesize objects whose music cause has the"
+               " @code{parenthesize} property.",
                
                /* create */
                "ParenthesesItem ",
-               /* accept */ "",
-               /* read */ "",
-               /* write */ "");
+
+               /* read */
+               "",
+
+               /* write */
+               ""
+               );