From c170148afc7647bef0d6dcf5df743e652996e5b5 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:56:00 +0000 Subject: [PATCH] lilypond-0.1.11 --- lily/include/p-score.hh | 105 ++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 59 deletions(-) diff --git a/lily/include/p-score.hh b/lily/include/p-score.hh index 7c497cd919..1ca1f30ac8 100644 --- a/lily/include/p-score.hh +++ b/lily/include/p-score.hh @@ -14,87 +14,74 @@ #include "parray.hh" #include "lily-proto.hh" #include "plist.hh" +#include "music-output.hh" /** all stuff which goes onto paper. notes, signs, symbols in a score #Paper_score# contains the items, the columns. */ -class Paper_score { +class Paper_score : public Music_output { public: - Paper_def *paper_l_; + Paper_def *paper_l_; - /// the columns, ordered left to right - Pointer_list col_p_list_; + /// the columns, ordered left to right + Link_list col_p_list_; - /// the idealspacings, no particular order - Pointer_list suz_p_list_; + /// crescs etc; no particular order + Pointer_list span_p_list_; - /// crescs etc; no particular order - Pointer_list span_p_list_; - - /// other elements - Pointer_list elem_p_list_; - - Super_elem *super_elem_l_; - - /* *************** */ - /* CONSTRUCTION */ + /// other elements + Pointer_list elem_p_list_; - Paper_score (Paper_def*); - /// add a line to the broken stuff. Positions given in #config# - void set_breaking (Array const &); - - /** add an item. - add the item in specified containers. If breakstatus is set - properly, add it to the {pre,post}break of the pcol. - */ - void typeset_item (Item *item_p, PCol *pcol_l); - - /// add to bottom of pcols - void add (PCol*); - - /** - @return argument as a cursor of the list - */ - PCursor find_col (PCol const *)const; - - Link_array col_range (PCol *left_l, PCol *right_l) const; - Link_array breakable_col_range (PCol*,PCol*) const; - Link_array broken_col_range (PCol*,PCol*) const; + Super_elem *super_elem_l_; - /* MAIN ROUTINES */ - void process(); + Paper_score (); + /// add a line to the broken stuff. Positions given in #config# + void set_breaking (Array const &); - /// last deed of this struct - void output (Tex_stream &ts); - /* UTILITY ROUTINES */ + /// add to bottom of pcols + void add_column (Paper_column*); + /** + @return argument as a cursor of the list + */ + PCursor find_col (Paper_column const *) const; + + Link_array col_range (Paper_column *left_l, Paper_column *right_l) const; + Link_array breakable_col_range (Paper_column*,Paper_column*) const; + Link_array broken_col_range (Item const*,Item const*) const; + - /* STANDARD ROUTINES */ - void OK()const; - void print() const; - ~Paper_score(); - void typeset_element (Score_elem*); - void typeset_broken_spanner (Spanner*); - /// add a Spanner - void typeset_unbroken_spanner (Spanner*); + /* STANDARD ROUTINES */ + void OK() const; + void print() const; + + void typeset_element (Score_elem*); + void typeset_broken_spanner (Spanner*); + /// add a Spanner + void typeset_unbroken_spanner (Spanner*); +protected: + /* MAIN ROUTINES */ + virtual void process(); + virtual ~Paper_score(); + private: - /// before calc_breaking - void preprocess(); + /// before calc_breaking + void preprocess(); - void calc_idealspacing(); - /// calculate where the lines are to be broken, and use results - void calc_breaking(); + void calc_idealspacing(); + /// calculate where the lines are to be broken, and use results + void calc_breaking(); - /// after calc_breaking - void postprocess(); + /// after calc_breaking + void postprocess(); - /// delete unused columns - void clean_cols(); + /// delete unused columns + void clean_cols(); }; #endif -- 2.39.5