lilypond-1.3.7
[lilypond.git] / lily / bar-column.cc
blob625b2da8958842061f1269e7aef0aca79308def7
1 /*
2 bar-column.cc -- implement Bar_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.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_element*o,Score_element*n)
28 Script_column::do_substitute_dependency (o,n);
29 if (o == bar_l_)
31 bar_l_ = dynamic_cast<Bar *> (n);