2 paper-column.hh -- declare Paper_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #ifndef PAPER_COLUMN_HH
10 #define PAPER_COLUMN_HH
15 class Paper_column : public Item
18 /// if lines are broken then this column is in #line#
21 // ugh: friend declarations.
22 friend void set_loose_columns (System *which, Column_x_positions const *posns);
25 Paper_column (SCM, Object_key const *);
26 Paper_column (Paper_column const &, int count);
28 virtual Grob *clone (int count) const;
29 virtual void do_break_processing ();
30 virtual Paper_column *get_column () const;
31 virtual System *get_system () const;
32 void set_system (System *);
34 static int compare (Grob * const &a,
36 static bool less_than (Grob *const &a,
39 int get_rank () const { return rank_; }
42 DECLARE_SCHEME_CALLBACK (print, (SCM));
43 DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
45 DECLARE_GROB_INTERFACE();
46 static int get_rank (Grob *);
47 static bool is_musical (Grob *);
48 static Moment when_mom (Grob *);
49 static bool is_used (Grob *);
50 static bool is_breakable (Grob *);
53 #endif // PAPER_COLUMN_HH