]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-column.hh
Fix some bugs in the dynamic engraver and PostScript backend
[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
15 class Paper_column : public Item
16 {
17   int rank_;
18   /// if lines are broken then this column is in #line#
19   System *system_;
20
21   // ugh: friend declarations.
22   friend void set_loose_columns (System *which, Column_x_positions const *posns);
23   friend class System;
24 public:
25   Paper_column (SCM, Object_key const *);
26   Paper_column (Paper_column const &, int count);
27
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
33   int get_rank () const { return rank_; }
34   void set_rank (int);
35
36   DECLARE_SCHEME_CALLBACK (print, (SCM));
37   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
38
39   static bool has_interface (Grob *);
40   static int get_rank (Grob *);
41   static bool is_musical (Grob *);
42   static Moment when_mom (Grob *);
43   static bool is_used (Grob *);
44   static bool is_breakable (Grob *);
45 };
46
47 #endif // PAPER_COLUMN_HH
48