]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/book.hh
Issue 4135/2: Replace mark_smob static member functions with non-static members
[lilypond.git] / lily / include / book.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1997--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef BOOK_HH
21 #define BOOK_HH
22
23 #include "lily-proto.hh"
24 #include "std-vector.hh"
25 #include "std-string.hh"
26 #include "virtual-methods.hh"
27 #include "smobs.hh"
28
29 class Book : public Smob<Book>
30 {
31 public:
32   static int print_smob (SCM, SCM, scm_print_state *);
33   SCM mark_smob ();
34   static const char type_p_name_[];
35   virtual ~Book ();
36   SCM header_;
37   Output_def *paper_;
38   SCM scores_;
39   SCM bookparts_;
40   SCM input_location_;
41
42   Book (Book const &);
43   Input *origin () const;
44   VIRTUAL_COPY_CONSTRUCTOR (Book, Book);
45   Book ();
46   void add_score (SCM);
47   void add_bookpart (SCM);
48   Paper_book *process (Output_def *def_paper,
49                        Output_def *def_layout);
50   Paper_book *process (Output_def *default_paper,
51                        Output_def *default_layout,
52                        Paper_book *parent_part);
53   void set_keys ();
54
55 protected:
56   void set_parent (Book *parent);
57   void add_scores_to_bookpart ();
58   bool error_found ();
59   void process_score (SCM score,
60                       Paper_book *output_paper_book,
61                       Output_def *layout);
62   void process_bookparts (Paper_book *output_paper_book,
63                           Output_def *paper,
64                           Output_def *layout);
65 };
66
67
68 #endif /* BOOK_HH */