]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/book.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / book.hh
1 /*
2   book.hh -- declare Book
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef BOOK_HH
10 #define BOOK_HH
11
12 #include "lily-proto.hh"
13 #include "std-vector.hh"
14 #include "std-string.hh"
15 #include "virtual-methods.hh"
16 #include "smobs.hh"
17
18 class Book
19 {
20   DECLARE_SMOBS (Book);
21
22 public:
23   string user_key_;
24   SCM header_;
25   Output_def *paper_;
26   SCM scores_;
27   SCM bookparts_;
28   SCM input_location_;
29
30   Book (Book const &);
31   Input *origin() const;
32   VIRTUAL_COPY_CONSTRUCTOR(Book, Book);
33   Book ();
34   void add_score (SCM);
35   void add_bookpart (SCM);
36   Paper_book *process (Output_def *def_paper,
37                        Output_def *def_layout);
38   Paper_book *process (Output_def *default_paper,
39                        Output_def *default_layout,
40                        Paper_book *parent_part);
41   void set_keys ();
42
43 protected:
44   void set_parent (Book *parent);
45   void add_scores_to_bookpart ();
46   bool error_found ();
47   void process_score (SCM score,
48                       Paper_book *output_paper_book,
49                       Output_def *layout);
50   void process_bookparts (Paper_book *output_paper_book,
51                           Output_def *paper,
52                           Output_def *layout);
53 };
54
55 DECLARE_UNSMOB (Book, book);
56
57 #endif /* BOOK_HH */