2 item.hh -- declare Item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
14 #include "score-elem.hh"
15 #include "drul-array.hh"
18 A horizontally fixed size element of the score.
20 Item is the datastructure for printables whose width is known
21 before the spacing is calculated
23 NB. This doesn't mean an Item has to initialize the output field before
27 class Item : public virtual Score_elem {
29 Link_array<Spanner> attached_span_l_arr_;
30 Drul_array<Item*> broken_to_drul_;
32 /// should be put in a breakable col.
34 Direction break_status_i_;
35 int break_priority_i_;
37 /// nobreak = 0, pre = -1, post = 1
38 int break_status_i() const;
39 Item * find_prebroken_piece (Direction) const;
40 Item * find_prebroken_piece (Line_of_score*) const;
42 virtual Item *item() { return this; }
45 DECLARE_MY_RUNTIME_TYPEINFO;
46 virtual Line_of_score * line_l() const;
47 virtual Paper_column * column_l () const;
49 static int left_right_compare (Item const *, Item const*);
51 virtual void do_unlink ();
52 virtual void do_junk_links();
53 virtual void do_breakable_col_processing();
54 virtual void handle_prebroken_dependencies();
55 virtual void do_print() const;
56 virtual bool linked_b() const;
58 void copy_breakable_items();