lilypond-0.1.37
[lilypond.git] / lily / span-score-bar.cc
blob52b3e15333a859d5448f111dfef283400b0eb0f5
1 /*
2 span-score-bar.cc -- implement Span_score_bar
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "span-score-bar.hh"
10 #include "atom.hh"
11 #include "paper-def.hh"
12 #include "lookup.hh"
14 Span_score_bar::Span_score_bar()
18 void
19 Score_bar::do_pre_processing ()
21 type_str_ = "|";
22 if (break_status_i() != 1)
24 set_empty (true);
25 transparent_b_ = true;
29 void
30 Span_score_bar::do_pre_processing()
33 duh. The order of these two is subtle.
35 Score_bar::do_pre_processing ();
36 // Span_bar::do_pre_processing();
39 Atom
40 Piano_brace::get_bar_sym (Real dy) const
42 return paper()->lookup_l ()->vbrace (dy);
45 Interval
46 Piano_brace::do_width() const
48 return Interval (0,0);
52 IMPLEMENT_IS_TYPE_B2(Span_score_bar, Span_bar, Score_bar);
53 IMPLEMENT_IS_TYPE_B1(Piano_brace, Span_score_bar);