]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hara-kiri-group-spanner.hh
release: 1.3.94
[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     todo: naming
29 */
30 class Hara_kiri_group_spanner 
31 {
32 public:
33   DECLARE_SCHEME_CALLBACK(force_hara_kiri_callback, (SCM ,SCM));
34   DECLARE_SCHEME_CALLBACK(y_extent, (SCM smob, SCM axis));
35   DECLARE_SCHEME_CALLBACK(force_hara_kiri_in_parent_callback, (SCM ,SCM));
36   static void add_element (Score_element *me, Score_element *e);
37   static void set_interface (Score_element*me);
38   static bool has_interface (Score_element*);
39   static void consider_suicide (Score_element*me);
40   static void add_interesting_item (Score_element * me , Score_element* n);
41 };
42
43
44 #endif // HARA_KIRI_VERTICAL_GROUP_SPANNER_HH