X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbook.hh;h=a29cb074498a2e8bc9304a94a7a9cb8e52c2251c;hb=def21b306e2b8fa2d5630fab0878e9922e197f0c;hp=2be317d12f4c55aa44f6f9b98ce495738433df7f;hpb=e24df7c27635dc996c466295eacf2981bddccaf7;p=lilypond.git diff --git a/lily/include/book.hh b/lily/include/book.hh index 2be317d12f..a29cb07449 100644 --- a/lily/include/book.hh +++ b/lily/include/book.hh @@ -3,33 +3,55 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2005 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ #ifndef BOOK_HH #define BOOK_HH -#include "input.hh" #include "lily-proto.hh" -#include "parray.hh" -#include "object-key.hh" -#include "string.hh" +#include "std-vector.hh" +#include "std-string.hh" +#include "virtual-methods.hh" +#include "smobs.hh" -class Book : public Input +class Book { - DECLARE_SMOBS (Book, foo); + DECLARE_SMOBS (Book); + public: - String user_key_; - + string user_key_; SCM header_; Output_def *paper_; + SCM scores_; + SCM bookparts_; + SCM input_location_; - void add_score (Score*); - Link_array scores_; + Book (Book const &); + Input *origin() const; + 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 (); - Paper_book* process (String, Output_def*); + +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); #endif /* BOOK_HH */