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