]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/line-of-score.hh
patch::: 1.1.37.script1
[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   Link_array<Paper_column> cols_;
18 public:
19
20   Line_of_score();
21     
22   /// is #c# contained in #*this#?
23   bool contains_b (Paper_column const *c) const;
24     
25   Link_array<Line_of_score> get_lines() const;
26   Line_of_score * set_breaking (Array<Column_x_positions> const&, int j) const;
27
28
29   void output_all ();
30   void add_column (Paper_column*);
31   
32 protected:
33   virtual void do_substitute_element_pointer (Score_element*, Score_element*);
34   virtual Link_array<Score_element> get_extra_dependencies () const;
35   virtual void do_print() const;
36   VIRTUAL_COPY_CONS(Score_element);
37 };
38
39 #endif
40