2 paper-score.hh -- declare Paper_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997--2000 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
32 UGH. MOVE INTO LINE_OF_SCORE ?!
34 Link_array<Paper_column> col_l_arr_;
36 Paper_outputter *outputter_l_;
37 Line_of_score * line_l_;
41 void fixup_refpoints ();
44 /// add to bottom of pcols
45 void add_column (Paper_column*);
48 @return index of argument.
50 int find_col_idx (Paper_column const *) const;
52 Link_array<Item> broken_col_range (Item const*,Item const*) const;
55 /* STANDARD ROUTINES */
58 void typeset_element (Score_element*);
59 void typeset_broken_spanner (Spanner*);
61 void typeset_unbroken_spanner (Spanner*);
64 virtual ~Paper_score();
67 virtual void process();
70 /// before calc_breaking
73 void calc_idealspacing();
74 /// calculate where the lines are to be broken, and use results
75 Array<Column_x_positions> calc_breaking();
77 /// after calc_breaking
79 Paper_score (Paper_score const &);