2 hara-kiri-vertical-group-spanner.hh -- declare Har_kiri_vertical_group_spanner
4 source file of the GNU LilyPond music typesetter
6 (c) 1998, 1999 Jan Nieuwenhuizen <janneke@gnu.org>
10 #ifndef HARA_KIRI_VERTICAL_GROUP_SPANNER_HH
11 #define HARA_KIRI_VERTICAL_GROUP_SPANNER_HH
13 #include "vertical-group-spanner.hh"
16 As Vertical_group_spanner, but keep track of interesting items. If
17 we don't contain any interesting items after linebreaking, then
18 gracefully commit suicide. Objective: don't disgrace Lily by
19 typesetting empty lines in orchestral scores. */
20 class Hara_kiri_vertical_group_spanner : public Vertical_group_spanner
23 Hara_kiri_vertical_group_spanner ();
24 virtual void do_post_processing ();
25 void add_interesting_item (Item* n);
27 VIRTUAL_COPY_CONS(Score_element);
29 virtual void do_substitute_element_pointer (Score_element*, Score_element*);
30 virtual void do_print ()const;
32 Link_array<Item> interesting_items_;
36 #endif // HARA_KIRI_VERTICAL_GROUP_SPANNER_HH