/*
generate bars. Either user ("|:"), or default (new measure)
-
- */
+*/
class Bar_engraver : public Engraver
{
public:
TRANSLATOR_DECLARATIONS (Bar_engraver);
void request_bar (String type_string);
-
+
protected:
virtual void finalize ();
virtual void stop_translation_timestep ();
void typeset_bar ();
void create_bar ();
- Item * bar_;
+ Item *bar_;
};
Bar_engraver::Bar_engraver ()
bar_ = make_item ("BarLine", SCM_EOL);
SCM gl = get_property ("whichBar");
if (scm_equal_p (gl, bar_->get_property ("glyph")) != SCM_BOOL_T)
- bar_->set_property ("glyph", gl);
+ bar_->set_property ("glyph", gl);
}
}
}
/*
- Bar_engraver should come *after* any engravers that
+ Bar_engraver should come *after* any engravers that
modify whichBar
This is a little hairy : whichBar may be set by
context. This means that grobs could should be created after
process_music. We do stuff process_acknowledged_grobs (), just to be
on the safe side.
-
*/
void
}
/*
- lines may only be broken if there is a barline in all staves
+ lines may only be broken if there is a barline in all staves
*/
-void
+void
Bar_engraver::stop_translation_timestep ()
{
if (!bar_)
typeset_bar ();
}
-
ADD_TRANSLATOR (Bar_engraver,
-/* descr */ "Create barlines. This engraver is controlled through the "
-"@code{whichBar} property. If it has no bar line to create, it will forbid a linebreak at this point",
-/* creats*/ "BarLine",
-/* accepts */ "",
-/* acks */ "",
-/* reads */ "whichBar",
-/* write */ "");
+ /* descr */ "Create barlines. This engraver is controlled through the "
+ "@code{whichBar} property. If it has no bar line to create, it will forbid a linebreak at this point",
+ /* creats*/ "BarLine",
+ /* accepts */ "",
+ /* acks */ "",
+ /* reads */ "whichBar",
+ /* write */ "");