2 system.hh -- part of GNU LilyPond
4 (c) 1996--2008 Han-Wen Nienhuys
10 #include "column-x-positions.hh"
15 If you keep following offset reference points, you will always end
16 up at the root object. This root object is called @ref{System}, and it
17 represents a system (i.e. a line of music).
19 class System : public Spanner
22 Grob_array *all_elements_;
23 void init_elements ();
24 friend class Paper_score; // ugh.
25 Paper_score *pscore_; // ugh.
28 Paper_score *paper_score () const;
29 int get_rank () const;
30 void do_break_substitution_and_fixup_refpoints ();
31 void post_processing ();
32 SCM get_paper_system ();
33 SCM get_paper_systems ();
34 SCM get_broken_system_grobs ();
37 System (System const &);
39 int element_count () const;
40 int spanner_count () const;
42 void break_into_pieces (vector<Column_x_positions> const &);
43 DECLARE_GROB_INTERFACE();
45 vector<Item*> broken_col_range (Item const *, Item const *) const;
46 vector<Grob*> used_columns () const;
47 Paper_column *column (vsize i) const;
49 void add_column (Paper_column *);
50 void typeset_grob (Grob *);
51 void pre_processing ();
54 virtual void derived_mark () const;
55 virtual Grob *clone () const;
58 void set_loose_columns (System *which, Column_x_positions const *posns);
60 #endif /* SYSTEM_HH */