2 p-score.hh -- declare Paper_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
15 #include "lily-proto.hh"
17 #include "music-output.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 {
25 Tex_outputter *open_tex_outputter (Tex_stream*);
26 Tex_stream *open_output_stream ();
31 /// the columns, ordered left to right
32 Link_list<Paper_column *> col_p_list_;
34 /// crescs etc; no particular order
35 Pointer_list<Spanner *> span_p_list_;
38 Pointer_list<Score_element*> elem_p_list_;
40 Outputter *outputter_l_;
41 Line_of_score * line_l_;
46 /// add to bottom of pcols
47 void add_column (Paper_column*);
50 @return argument as a cursor of the list
52 PCursor<Paper_column *> find_col (Paper_column const *) const;
54 Link_array<Paper_column> col_range (Paper_column *left_l, Paper_column *right_l) const;
55 Link_array<Paper_column> breakable_col_range (Paper_column*,Paper_column*) const;
56 Link_array<Item> broken_col_range (Item const*,Item const*) const;
59 /* STANDARD ROUTINES */
62 void typeset_element (Score_element*);
63 void typeset_broken_spanner (Spanner*);
65 void typeset_unbroken_spanner (Spanner*);
68 virtual ~Paper_score();
73 virtual void process();
74 // can't instantiate template with cygnus' gcc...
75 // virtual ~Paper_score();
79 void remove_line (Line_of_score*);
80 /// before calc_breaking
83 void calc_idealspacing();
84 /// calculate where the lines are to be broken, and use results
85 Array<Column_x_positions> calc_breaking();
87 /// after calc_breaking
90 /// delete unused columns