]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-column.hh
* lily/note-column.cc (dir): idem.
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.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
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
31   static bool has_interface (Grob *);
32   virtual void do_break_processing ();
33   virtual Paper_column *get_column () const;
34   virtual System *get_system () const;
35
36   static int get_rank (Grob *);
37   int get_rank () const { return rank_; }
38   
39   DECLARE_SCHEME_CALLBACK (print, (SCM));
40   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
41
42   static bool is_musical (Grob *);
43   static Moment when_mom (Grob *);
44
45   static bool is_used (Grob *);
46   void set_rank (int);
47 };
48
49 #endif // PAPER_COLUMN_HH
50