X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbook.hh;h=6b1c2bfb14ca48e7a60380fcab1b3b883d9e7601;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=a29cb074498a2e8bc9304a94a7a9cb8e52c2251c;hpb=f455506b0a4a32cea2c596a3a6e3f364e7ea5a90;p=lilypond.git diff --git a/lily/include/book.hh b/lily/include/book.hh index a29cb07449..6b1c2bfb14 100644 --- a/lily/include/book.hh +++ b/lily/include/book.hh @@ -1,9 +1,20 @@ /* - book.hh -- declare Book + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2015 Han-Wen Nienhuys - (c) 1997--2007 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef BOOK_HH @@ -15,12 +26,12 @@ #include "virtual-methods.hh" #include "smobs.hh" -class Book +class Book : public Smob { - DECLARE_SMOBS (Book); - public: - string user_key_; + SCM mark_smob (); + static const char type_p_name_[]; + virtual ~Book (); SCM header_; Output_def *paper_; SCM scores_; @@ -28,16 +39,16 @@ public: SCM input_location_; Book (Book const &); - Input *origin() const; - VIRTUAL_COPY_CONSTRUCTOR(Book, Book); + 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); + Output_def *def_layout); Paper_book *process (Output_def *default_paper, - Output_def *default_layout, - Paper_book *parent_part); + Output_def *default_layout, + Paper_book *parent_part); void set_keys (); protected: @@ -45,13 +56,12 @@ protected: void add_scores_to_bookpart (); bool error_found (); void process_score (SCM score, - Paper_book *output_paper_book, - Output_def *layout); + Paper_book *output_paper_book, + Output_def *layout); void process_bookparts (Paper_book *output_paper_book, - Output_def *paper, - Output_def *layout); + Output_def *paper, + Output_def *layout); }; -DECLARE_UNSMOB (Book, book); #endif /* BOOK_HH */