lilypond-1.3.31
[lilypond.git] / lily / score-align-reg.cc
blob3b118dbb21a9fdc0d106d2c8fdc8195a4eaec1ef
1 /*
2 score-align-reg.cc -- implement Score_align_register
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
10 #include "elem-group-item.hh"
11 #include "score-align-reg.hh"
12 #include "item.hh"
14 Score_align_register::Score_align_register()
16 type_ch_C_ = 0;
17 priority_i_ =0;
18 align_p_=0;
21 void
22 Score_align_register::do_pre_move_processing()
24 if (align_p_) {
25 typeset_breakable_item( align_p_);
26 align_p_ =0;
30 void
31 Score_align_register::acknowledge_element(Score_elem_info inf)
33 if (inf.elem_l_->name() == type_ch_C_ ) {
35 if (! align_p_ ) {
36 align_p_ = new Horizontal_group_item;
37 announce_element(Score_elem_info(align_p_,0));
40 align_p_->add_element(inf.elem_l_);
44 IMPLEMENT_STATIC_NAME(Score_align_register)
45 IMPLEMENT_IS_TYPE_B1(Score_align_register,Request_register);