]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/book.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / book.hh
index 360276ed088f1fd3b39ba0f75968ba6fc7fb375f..3f0c6248fa9c2e8930172303aaf7c28f43556588 100644 (file)
@@ -3,27 +3,28 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef BOOK_HH
 #define BOOK_HH
 
-#include "input.hh"
 #include "lily-proto.hh"
 #include "std-vector.hh"
-#include "object-key.hh"
 #include "std-string.hh"
+#include "virtual-methods.hh"
+#include "smobs.hh"
 
 class Book
 {
-  DECLARE_SMOBS (Book, foo);
+  DECLARE_SMOBS (Book);
 
 public:
   string user_key_;
   SCM header_;
   Output_def *paper_;
   SCM scores_;
+  SCM bookparts_;
   SCM input_location_;
 
   Book (Book const &);
@@ -31,9 +32,24 @@ public:
   VIRTUAL_COPY_CONSTRUCTOR(Book, Book);
   Book ();
   void add_score (SCM);
+  void add_bookpart (SCM);
   Paper_book *process (Output_def *def_paper,
                       Output_def *def_layout);
+  Paper_book *process (Output_def *default_paper,
+                      Output_def *default_layout,
+                      Paper_book *parent_part);
   void set_keys ();
+
+protected:
+  void set_parent (Book *parent);
+  void add_scores_to_bookpart ();
+  bool error_found ();
+  void process_score (SCM score,
+                     Paper_book *output_paper_book,
+                     Output_def *layout);
+  void process_bookparts (Paper_book *output_paper_book,
+                         Output_def *paper,
+                         Output_def *layout);
 };
 
 DECLARE_UNSMOB (Book, book);