]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hara-kiri-group-spanner.hh
release: 1.3.69
[lilypond.git] / lily / include / hara-kiri-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 "lily-guile.hh"
14 #include "lily-proto.hh"
15
16 /** 
17   As Vertical_group_spanner, but keep track of interesting items.  If
18   we don't contain any interesting items after linebreaking, then
19   gracefully commit suicide.  Objective: don't disgrace Lily by
20   typesetting empty lines in orchestral scores.
21
22   properties:
23
24   items-worth-living -- list of interesting items. If empty in a particular system,
25     clear this line
26
27 */
28 class Hara_kiri_group_spanner 
29 {
30 public:
31   static Real force_hara_kiri_callback (Score_element * , Axis);
32   static void set_interface (Score_element*me);
33   static bool has_interface (Score_element*);
34   static void consider_suicide (Score_element*me);
35   static void add_interesting_item (Score_element * me , Score_element* n);
36 };
37
38
39 #endif // HARA_KIRI_VERTICAL_GROUP_SPANNER_HH