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;
33 static int compare (Grob * const &a,
35 int get_rank () const { return rank_; }
38 DECLARE_SCHEME_CALLBACK (print, (SCM));
39 DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
41 static bool has_interface (Grob *);
42 static int get_rank (Grob *);
43 static bool is_musical (Grob *);
44 static Moment when_mom (Grob *);
45 static bool is_used (Grob *);
46 static bool is_breakable (Grob *);
49 #endif // PAPER_COLUMN_HH