]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-book.hh
Book parts: nestable book parts
[lilypond.git] / lily / include / paper-book.hh
1 /*
2   paper-book.hh -- declare Paper_book
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004--2007  Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8 #ifndef PAPER_BOOK_HH
9 #define PAPER_BOOK_HH
10
11 #include "std-vector.hh"
12 #include "smobs.hh"
13 #include "lily-proto.hh"
14
15 /** Paper_book collects headers, systems (Paper_system) and texts, and
16     exports them to the output backend, either as systems or as
17     completely formatted pages.  */
18
19 class Paper_book
20 {
21   DECLARE_SMOBS (Paper_book);
22
23   SCM systems_;
24   SCM pages_;
25   SCM performances_;
26
27   void add_score_title (SCM);
28   SCM get_score_title (SCM);
29   
30 public:
31   SCM header_;
32   SCM header_0_;
33   SCM scores_;
34   SCM bookparts_;
35   Output_def *paper_;
36
37   Paper_book ();
38
39   Output_def *top_paper ();
40
41   void add_score (SCM);
42   void add_bookpart (SCM);
43   void add_performance (SCM);
44
45   SCM performances () const;
46   SCM systems ();
47   SCM pages ();
48   SCM get_system_specs ();
49
50
51   Stencil book_title ();
52   Stencil score_title (SCM);
53   
54   void classic_output_aux (SCM output);
55   void classic_output (SCM output_channel);
56   int output_aux (SCM output_channel,
57                   int first_page_number,
58                   bool is_first,
59                   bool is_last);
60   void output (SCM output_channel);
61 };
62
63 DECLARE_UNSMOB (Paper_book, paper_book)
64
65 #endif /* PAPER_BOOK_HH */