]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/hara-kiri-group-spanner.hh
partial: 1.3.62.jcn
[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 "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
21   properties:
22
23   items-worth-living -- list of interesting items. If empty in a particular system,
24     clear this line
25
26 */
27 class Hara_kiri_group_spanner : public Spanner
28 {
29 public:
30   static Real force_hara_kiri_callback (Score_element const* , Axis);
31   Hara_kiri_group_spanner (SCM);
32   SCM member_after_line_breaking ();
33   static SCM after_line_breaking (SCM);
34   
35   void add_interesting_item (Item* n);
36
37   VIRTUAL_COPY_CONS(Score_element);
38 };
39
40
41 #endif // HARA_KIRI_VERTICAL_GROUP_SPANNER_HH