]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/p-score.hh
release: 1.0.15
[lilypond.git] / lily / include / p-score.hh
index 1ca1f30ac8971b7ffcc71fb5af1a4b927f7d275f..6b627f9377fe789b893e3174cd1a2075f6d14f25 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c) 1996, 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -21,7 +21,8 @@
     
     */
 
-class Paper_score : public Music_output {
+class Paper_score : public Music_output
+{
 public:
   Paper_def *paper_l_;
 
@@ -32,13 +33,12 @@ public:
   Pointer_list<Spanner *> span_p_list_;
 
   /// other elements
-  Pointer_list<Score_elem*> elem_p_list_;
-    
-  Super_elem *super_elem_l_;
-    
+  Pointer_list<Score_element*> elem_p_list_;
+  
+  Paper_outputter *outputter_l_;  
+  Line_of_score * line_l_;
+  
   Paper_score ();
-  /// add a line to the broken stuff. Positions given in #config#
-  void set_breaking (Array<Col_hpositions> const &);
 
 
   /// add to bottom of pcols
@@ -55,27 +55,32 @@ public:
     
     
   /* STANDARD ROUTINES */
-  void OK() const;
   void print() const;
   
-  void typeset_element (Score_elem*);
+  void typeset_element (Score_element*);
   void typeset_broken_spanner (Spanner*);
   /// add a Spanner
   void typeset_unbroken_spanner (Spanner*);
  
     
+  virtual ~Paper_score();
 protected:
+
+  
     /* MAIN ROUTINES */
   virtual void process();
-  virtual ~Paper_score();
+// can't instantiate template with cygnus' gcc...
+//  virtual ~Paper_score();
 
 private:
+
+  void remove_line (Line_of_score*);
   /// before calc_breaking
   void preprocess();
 
   void calc_idealspacing();
   /// calculate where the lines are to be broken, and use results
-  void calc_breaking();
+  Array<Column_x_positions> calc_breaking();
 
   /// after calc_breaking
   void postprocess();