]> git.donarmstrong.com Git - lilypond.git/blob - lily/span-score-bar.cc
release: 0.0.77.jcn1
[lilypond.git] / lily / span-score-bar.cc
1 /*
2   span-score-bar.cc -- implement Span_score_bar
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "span-score-bar.hh"
10 #include "symbol.hh"
11 #include "paper-def.hh"
12 #include "lookup.hh"
13
14 Span_score_bar::Span_score_bar()
15 {
16     type_str_ = "|";
17 }
18
19 void
20 Span_score_bar::do_pre_processing()
21 {
22     Span_bar::do_pre_processing();
23     
24     if ( break_status_i() != 1) {
25         empty_b_ = transparent_b_ = true;
26     }
27 }
28
29
30 Symbol
31 Piano_brace::get_bar_sym(Real dy)const
32 {
33     return paper()->lookup_l()->vbrace(dy);
34 }
35 Interval
36 Piano_brace::do_width()const
37 {
38     return Interval(0,0);
39 }
40
41
42 IMPLEMENT_IS_TYPE_B1(Span_score_bar, Span_bar);
43 IMPLEMENT_IS_TYPE_B1(Piano_brace, Span_score_bar);
44
45