]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-column.hh
* lily/context.cc (Context): take key argument in ctor.
[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--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef PAPER_COLUMN_HH
11 #define PAPER_COLUMN_HH
12
13 #include "item.hh"
14 #include "rod.hh"
15
16
17 class Paper_column : public Item
18
19 public:
20   int  rank_;
21   /// if lines are broken then this column is in #line#
22   System *system_;
23
24   Paper_column (SCM, Object_key const*);
25   Paper_column (Paper_column const&, int count);
26   
27   virtual Grob *clone (int count) const;
28
29   static bool has_interface (Grob*);
30   virtual void do_break_processing ();
31   virtual Paper_column *get_column () const;
32   virtual System *get_system () const;
33   
34   static int get_rank (Grob*);
35   
36   DECLARE_SCHEME_CALLBACK (print, (SCM));
37   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
38   
39   static bool is_musical (Grob *);
40   static Moment when_mom (Grob*);
41
42   static bool is_used (Grob*) ;
43   void set_rank (int);
44 };
45      
46 #endif // PAPER_COLUMN_HH
47