]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/system.hh
* lily/include/book.hh (class Book): idem.
[lilypond.git] / lily / include / system.hh
index 5eaa2bed66d2c5b5364a721dbbfba78463f9589f..2fe740fddb954d6c5dc0befbec6ca6d2dc92c3ed 100644 (file)
@@ -2,7 +2,7 @@
 /*
   line-of-score.hh -- part of GNU LilyPond
 
-  (c) 1996--2005 Han-Wen Nienhuys
+  (c) 1996--2006 Han-Wen Nienhuys
 */
 
 #ifndef SYSTEM_HH
@@ -10,6 +10,7 @@
 
 #include "column-x-positions.hh"
 #include "spanner.hh"
+#include "grob-array.hh"
 
 /*
   If you keep following offset reference points, you will always end
 */
 class System : public Spanner
 {
-public:
   int rank_;
+  Grob_array *all_elements_;
+  void init_elements ();
+  friend class Paper_score;    // ugh.
+  Paper_score *pscore_;        // ugh.
+  
+public:
+  Paper_score *paper_score () const;
+  int get_rank () const;
   void post_processing ();
-  SCM get_line ();
-  SCM get_lines ();
+  SCM get_paper_system ();
+  SCM get_paper_systems ();
 
   System (SCM, Object_key const *);
   System (System const &, int);
-  virtual Grob *clone (int count) const;
 
   int element_count () const;
   int spanner_count () const;
 
-  void break_into_pieces (Array<Column_x_positions> const &);
+  void break_into_pieces (vector<Column_x_positions> const &);
   static bool has_interface (Grob *);
 
-  Link_array<Item> broken_col_range (Item const *, Item const *) const;
-  Link_array<Grob> columns () const;
+  vector<Item*> broken_col_range (Item const *, Item const *) const;
+  vector<Grob*> columns () const;
 
   void add_column (Paper_column *);
   void typeset_grob (Grob *);
   void pre_processing ();
 
 protected:
+  virtual void derived_mark () const;
+  virtual Grob *clone (int count) const;
 };
 
 void set_loose_columns (System *which, Column_x_positions const *posns);
+
 #endif /* SYSTEM_HH */