]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-book.hh
(class Paper_book):
[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--2006  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   Output_def *paper_;
35
36   Paper_book ();
37
38   void add_score (SCM);
39   void add_performance (SCM);
40
41   SCM performances () const;
42   SCM systems ();
43   SCM pages ();
44   SCM get_system_specs ();
45
46
47   Stencil book_title ();
48   Stencil score_title (SCM);
49   
50   void classic_output (SCM output_channel);
51   void output (SCM output_channel);
52 };
53
54 DECLARE_UNSMOB (Paper_book, paper_book)
55
56 #endif /* PAPER_BOOK_HH */