source file of the GNU LilyPond music typesetter
- (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "spanner.hh"
if (!staffline_)
{
staffline_ = get_spanner ();
-
Grob * it = unsmob_grob (get_property ("currentCommandColumn"));
-
- staffline_->set_bound (LEFT,it);
+ staffline_->set_bound (LEFT, it);
}
}
Grob * it = unsmob_grob (get_property ("currentCommandColumn"));
- staffline_->set_bound (RIGHT,it);
+ staffline_->set_bound (RIGHT, it);
staffline_ = 0;
}
if (!staffline_)
return ;
- for (int i=0; i < elts_.size (); i++)
+ for (int i = 0; i < elts_.size (); i++)
{
- Grob *par = elts_[i]->get_parent (Y_AXIS);
-
- if (!par || !Axis_group_interface::has_interface (par))
+ if (!unsmob_grob (elts_[i]->get_property ("axis-group-parent-Y")))
{
if (staffline_->get_parent (Y_AXIS)
&& staffline_->get_parent (Y_AXIS) == elts_[i])
{
}
-ENTER_DESCRIPTION (Hara_kiri_engraver,
+ADD_TRANSLATOR (Hara_kiri_engraver,
/* descr */ "Like Axis_group_engraver, but make a hara-kiri spanner, and add "
"interesting items (ie. note heads, lyric syllables and normal rests) ",
/* creats*/ "RemoveEmptyVerticalGroup",
/* reads */ "",
/* write */ "");
-ENTER_DESCRIPTION (Axis_group_engraver,
+ADD_TRANSLATOR (Axis_group_engraver,
/* descr */ "Group all objects created in this context in a VerticalAxisGroup spanner.",
/* creats*/ "VerticalAxisGroup",
/* accepts */ "",