]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scoreline.hh
release: 0.0.67
[lilypond.git] / lily / include / scoreline.hh
1
2 /*
3   scoreline.hh -- part of GNU LilyPond
4
5   (c) 1996,97 Han-Wen Nienhuys
6 */
7
8 #ifndef SCORELINE_HH
9 #define SCORELINE_HH
10
11 #include "colhpos.hh"
12 #include "spanner-elem-group.hh"
13
14 /// the columns of a score that form one line.
15 class Line_of_score : public Spanner_elem_group {
16 public:
17     Link_array<Spanner_elem_group> line_arr_;
18     Link_array<PCol > cols;
19     bool error_mark_b_;
20     virtual String TeX_string() const;    
21     
22     /* *************** */
23     NAME_MEMBERS();
24     Line_of_score();
25     
26     void add_line(Spanner_elem_group *);
27
28     /// is #c# contained in #*this#?
29     bool contains_b(PCol const *c)const;
30     
31     Link_array<Line_of_score> get_lines()const;
32     void set_breaking(Array<Col_hpositions> const&);
33     
34 protected:
35     virtual void break_into_pieces();
36     virtual void do_substitute_dependency(Score_elem*,Score_elem*);
37     virtual void do_pre_processing();
38     virtual void do_post_processing();
39
40
41     SPANNER_CLONE(Line_of_score)
42 };
43
44 #endif
45