]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/item.hh
* Another grand 2003 update.
[lilypond.git] / lily / include / item.hh
1 /*
2   item.hh -- declare Item
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8 #ifndef ITEM_HH
9 #define ITEM_HH
10
11
12 #include "box.hh"
13 #include "grob.hh"
14 #include "drul-array.hh"
15
16
17 /**
18   A horizontally fixed size element of the score.
19
20   Item is the datastructure for printables whose width is known
21   before the spacing is calculated
22
23 */
24 class Item : public Grob
25 {
26   Drul_array<Item*> broken_to_drul_;
27
28 public:
29   VIRTUAL_COPY_CONS (Grob);
30   Item (SCM);
31   Item (Item const &);
32
33   static bool breakable_b (Grob *);
34   bool broken_b () const;
35   
36   Direction break_status_dir () const;
37   
38   Item *find_prebroken_piece (Direction) const;
39   Grob *find_broken_piece (System *) const;    
40   virtual System *get_system () const;
41   virtual Paper_column *get_column () const;
42   virtual void handle_prebroken_dependencies ();
43   static  bool has_interface (Grob *);
44 protected:
45   virtual void discretionary_processing ();
46   void copy_breakable_items ();
47   virtual SCM do_derived_mark () const;
48 };
49
50
51
52 #endif