]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-column.hh
use classnames for interface naming; remove inclusion of
[lilypond.git] / lily / include / paper-column.hh
1 /*
2   paper-column.hh -- declare  Paper_column
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef PAPER_COLUMN_HH
10 #define PAPER_COLUMN_HH
11
12 #include "item.hh"
13 #include "rod.hh"
14 #include "lily-proto.hh"
15
16 class Paper_column : public Item
17 {
18   int rank_;
19   /// if lines are broken then this column is in #line#
20   System *system_;
21
22   // ugh: friend declarations.
23   friend void set_loose_columns (System *which, Column_x_positions const *posns);
24   friend class System;
25 public:
26   Paper_column (SCM, Object_key const *);
27   Paper_column (Paper_column const &, int count);
28
29   virtual Grob *clone (int count) const;
30   virtual void do_break_processing ();
31   virtual Paper_column *get_column () const;
32   virtual System *get_system () const;
33   void set_system (System *);
34
35   static int compare (Grob * const &a,
36                       Grob * const &b);
37   static bool less_than (Grob *const &a,
38                          Grob *const &b);
39
40   int get_rank () const { return rank_; }
41   void set_rank (int);
42
43   DECLARE_SCHEME_CALLBACK (print, (SCM));
44   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
45
46   DECLARE_GROB_INTERFACE();
47   static int get_rank (Grob *);
48   static bool is_musical (Grob *);
49   static Moment when_mom (Grob *);
50   static bool is_used (Grob *);
51   static bool is_breakable (Grob *);
52 };
53
54 #endif // PAPER_COLUMN_HH
55