X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fvertical-align-engraver.cc;h=33c0f1a98a16f25bc7d27bab4f4dbf3fa18c9c81;hb=32b02b2642bd132a548afc163c28667aff074829;hp=89a3877bcb4e4ed9675947028e106ea9c74b1528;hpb=14d74ac262744d16fc753ee41042d32860d58633;p=lilypond.git diff --git a/lily/vertical-align-engraver.cc b/lily/vertical-align-engraver.cc index 89a3877bcb..33c0f1a98a 100644 --- a/lily/vertical-align-engraver.cc +++ b/lily/vertical-align-engraver.cc @@ -1,9 +1,9 @@ /* - vertical-align-grav.cc -- implement Vertical_align_engraver + vertical-align-engraver.cc -- implement Vertical_align_engraver source file of the GNU LilyPond music typesetter - (c) 1997--2004 Han-Wen Nienhuys + (c) 1997--2005 Han-Wen Nienhuys */ #include "context.hh" #include "paper-column.hh" @@ -15,8 +15,8 @@ class Vertical_align_engraver : public Engraver { - Spanner * valign_; - bool qualifies (Grob_info) const; + Spanner *valign_; + bool qualifies (Grob_info) const; public: TRANSLATOR_DECLARATIONS (Vertical_align_engraver); protected: @@ -36,7 +36,7 @@ Vertical_align_engraver::process_music () if (!valign_) { valign_ = make_spanner ("VerticalAlignment", SCM_EOL); - valign_->set_bound (LEFT,unsmob_grob (get_property ("currentCommandColumn"))); + valign_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn"))); } } @@ -45,7 +45,7 @@ Vertical_align_engraver::finalize () { if (valign_) { - valign_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn"))); + valign_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn"))); valign_ = 0; } } @@ -53,7 +53,7 @@ Vertical_align_engraver::finalize () bool Vertical_align_engraver::qualifies (Grob_info i) const { - int sz = i.origin_contexts ((Translator*)this).size () ; + int sz = i.origin_contexts ((Translator *)this).size (); return sz > 0 && Axis_group_interface::has_interface (i.grob_) && !i.grob_->get_parent (Y_AXIS) && Axis_group_interface::has_axis (i.grob_, Y_AXIS); @@ -64,15 +64,14 @@ Vertical_align_engraver::acknowledge_grob (Grob_info i) { if (qualifies (i)) { - Align_interface::add_element (valign_,i.grob_, get_property ("verticalAlignmentChildCallback")); + Align_interface::add_element (valign_, i.grob_, get_property ("verticalAlignmentChildCallback")); } } - ADD_TRANSLATOR (Vertical_align_engraver, -/* descr */ "Catch Vertical axis groups and stack them.", -/* creats*/ "VerticalAlignment", -/* accepts */ "", -/* acks */ "axis-group-interface", -/* reads */ "", -/* write */ ""); + /* descr */ "Catch Vertical axis groups and stack them.", + /* creats*/ "VerticalAlignment", + /* accepts */ "", + /* acks */ "axis-group-interface", + /* reads */ "", + /* write */ "");