]> git.donarmstrong.com Git - lilypond.git/blob - lily/span-score-bar.cc
a7592d532056ce3711d9d7d0f347a134359e7f6c
[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     {
26         empty_b_ = transparent_b_ = true;
27     }
28 }
29
30
31 Symbol
32 Piano_brace::get_bar_sym (Real dy)const
33 {
34   return paper()->lookup_l ()->vbrace (dy);
35 }
36 Interval
37 Piano_brace::do_width()const
38 {
39   return Interval (0,0);
40 }
41
42
43 IMPLEMENT_IS_TYPE_B1(Span_score_bar, Span_bar);
44 IMPLEMENT_IS_TYPE_B1(Piano_brace, Span_score_bar);
45
46