]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/line-of-score.hh
994a50b20d7fb42550602f1b944bd454312699cc
[lilypond.git] / lily / include / line-of-score.hh
1 /*
2   line-of-score.hh -- part of GNU LilyPond
3
4   (c) 1996--2000 Han-Wen Nienhuys
5 */
6
7 #ifndef SCORELINE_HH
8 #define SCORELINE_HH
9
10 #include "column-x-positions.hh"
11 #include "axis-group-spanner.hh"
12 #include "super-element.hh"
13
14 /// the columns of a score that form one line. FIXME: multiple inheritance
15 class Line_of_score : public Axis_group_spanner, public Super_element
16 {
17 public:
18   int rank_i_;
19   
20   Line_of_score();
21     
22   /// is #c# contained in #*this#?
23   bool contains_b (Paper_column const *c) const;
24     
25   static int compare (Line_of_score* const &,Line_of_score* const &);
26
27   void break_into_pieces (Array<Column_x_positions> const&);
28   void output_lines ();
29   void output_line (bool last_line);
30   void add_column (Paper_column*);
31   
32 protected:
33   virtual void do_print() const;
34   VIRTUAL_COPY_CONS(Score_element);
35 };
36
37 #endif
38