2 paper-score.hh -- declare Paper_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "column-x-positions.hh"
15 #include "lily-proto.hh"
16 #include "music-output.hh"
17 #include "lily-guile.hh"
19 /** all stuff which goes onto paper. notes, signs, symbols in a score
20 #Paper_score# contains the items, the columns.
24 class Paper_score : public Music_output
26 SCM element_smob_list_;
30 /// the columns, ordered left to right
31 Link_array<Paper_column> col_l_arr_;
33 Paper_outputter *outputter_l_;
34 Line_of_score * line_l_;
39 /// add to bottom of pcols
40 void add_column (Paper_column*);
43 @return index of argument.
45 int find_col_idx (Paper_column const *) const;
47 Link_array<Item> broken_col_range (Item const*,Item const*) const;
50 /* STANDARD ROUTINES */
53 void typeset_element (Score_element*);
54 void typeset_broken_spanner (Spanner*);
56 void typeset_unbroken_spanner (Spanner*);
59 virtual ~Paper_score();
62 virtual void process();
65 /// before calc_breaking
68 void calc_idealspacing();
69 /// calculate where the lines are to be broken, and use results
70 Array<Column_x_positions> calc_breaking();
72 /// after calc_breaking
74 Paper_score (Paper_score const &);