]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/span-bar-grav.hh
release: 0.1.7
[lilypond.git] / lily / include / span-bar-grav.hh
1 /*
2   span-bar-grav.hh -- declare Span_bar_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef SPAN_BAR_GRAV_HH
11 #define SPAN_BAR_GRAV_HH
12
13 #include "engraver.hh"
14
15 /** 
16
17   Make bars that span multiple "staffs". Catch bars, and span a
18   Span_bar over them if we find more than 2 bars
19
20   */
21 class Span_bar_engraver : public Engraver
22 {
23     Span_bar * spanbar_p_;
24     Array<Bar*> bar_l_arr_;
25     Vertical_align_element * valign_l_;
26 public:
27     DECLARE_MY_RUNTIME_TYPEINFO;
28     
29     Span_bar_engraver();
30 protected:
31     
32     virtual void acknowledge_element(Score_elem_info);
33     virtual void do_pre_move_processing();
34     virtual Span_bar* get_span_bar_p()const;
35 };
36
37 #endif // SPAN_BAR_GRAV_HH