]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hara-kiri-vertical-group-spanner.hh
release: 1.3.37
[lilypond.git] / lily / include / hara-kiri-vertical-group-spanner.hh
1 /*
2   hara-kiri-vertical-group-spanner.hh -- declare Har_kiri_vertical_group_spanner
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--2000 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9
10 #ifndef HARA_KIRI_VERTICAL_GROUP_SPANNER_HH
11 #define HARA_KIRI_VERTICAL_GROUP_SPANNER_HH
12
13 #include "spanner.hh"
14
15 /** 
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_group_spanner : public Spanner
21 {
22 public:
23   Hara_kiri_group_spanner ();
24   virtual void after_line_breaking ();
25   void add_interesting_item (Item* n);
26 protected:
27   VIRTUAL_COPY_CONS(Score_element);
28 };
29
30
31 #endif // HARA_KIRI_VERTICAL_GROUP_SPANNER_HH