source file of the GNU LilyPond music typesetter
- (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "paper-column-engraver.hh"
Paper_column_engraver::Paper_column_engraver ()
{
+ last_moment_.main_part_ = Rational (-1,1);
command_column_ = 0;
musical_column_ = 0;
breaks_ = 0;
void
Paper_column_engraver::acknowledge_item (Grob_info gi)
{
- items_.push (gi.item ());
+ items_.push_back (gi.item ());
}
void
command_column_ = new_command;
musical_column_ = new_musical;
if (new_command)
- {
- context ()->set_property ("currentCommandColumn", new_command->self_scm ());
- }
+ context ()->set_property ("currentCommandColumn", new_command->self_scm ());
if (new_musical)
- {
- context ()->set_property ("currentMusicalColumn", new_musical->self_scm ());
- }
+ context ()->set_property ("currentMusicalColumn", new_musical->self_scm ());
system_->add_column (command_column_);
system_->add_column (musical_column_);
void
Paper_column_engraver::stop_translation_timestep ()
{
- for (int i = 0; i < items_.size (); i++)
+ for (vsize i = 0; i < items_.size (); i++)
{
Item *elem = items_[i];
if (!elem->get_parent (X_AXIS)
"Score_engraver::forbid_breaks to stop linebreaks. In practice, this "
"means that you can make a breakpoint by creating a barline (assuming "
"that there are no beams or notes that prevent a breakpoint.) ",
- /* create */ "PaperColumn NonMusicalPaperColumn",
+
+ /* create */
+ "PaperColumn "
+ "NonMusicalPaperColumn",
+
/* accept */ "break-event",
/* read */ "",
- /* write */ "currentCommandColumn currentMusicalColumn");
+ /* write */
+ "currentCommandColumn "
+ "currentMusicalColumn");