X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbook.hh;h=3f0c6248fa9c2e8930172303aaf7c28f43556588;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=b815b75edc9ec58c9ebcbf09391892ede7e5caff;hpb=12fe81f3722e08e6dc6c64ec611638f0bf1beda9;p=lilypond.git diff --git a/lily/include/book.hh b/lily/include/book.hh index b815b75edc..3f0c6248fa 100644 --- a/lily/include/book.hh +++ b/lily/include/book.hh @@ -3,31 +3,55 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2004 Han-Wen Nienhuys + (c) 1997--2008 Han-Wen Nienhuys */ #ifndef BOOK_HH #define BOOK_HH -#include "input.hh" #include "lily-proto.hh" -#include "parray.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_; SCM header_; - Book_paper_def *bookpaper_; - - Link_array scores_; + Output_def *paper_; + SCM scores_; + SCM bookparts_; + SCM input_location_; + + Book (Book const &); + Input *origin() const; + VIRTUAL_COPY_CONSTRUCTOR(Book, Book); Book (); - - void process (String outname, Music_output_def*, SCM header); - SCM to_stencil (Music_output_def*, SCM header); + 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); #endif /* BOOK_HH */