lilypond-0.1.37
[lilypond.git] / lily / bar-column.cc
blob05710d8706fadcc1ab3a8989d3b639b21b0989aa
1 /*
2 bar-column.cc -- implement Bar_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "bar.hh"
10 #include "bar-column.hh"
12 Bar_column::Bar_column()
14 bar_l_ =0;
15 breakable_b_ = true;
18 void
19 Bar_column::set_bar (Bar*b)
21 Script_column::add_support (b);
22 bar_l_ = b;
25 void
26 Bar_column::do_substitute_dependency (Score_elem*o,Score_elem*n)
28 Script_column::do_substitute_dependency (o,n);
29 if (o == bar_l_)
31 bar_l_ = n ? (Bar*)n->item() : 0;
35 IMPLEMENT_IS_TYPE_B1(Bar_column, Script_column);