]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-column-engraver.hh
3249432b40053ee4d0aec471396fd5c26b5cc040
[lilypond.git] / lily / include / paper-column-engraver.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 2005--2012 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 PAPER_COLUMN_ENGRAVER_HH
21 #define PAPER_COLUMN_ENGRAVER_HH
22
23 #include "engraver.hh"
24 #include "listener.hh"
25 #include "moment.hh"
26 #include "stream-event.hh"
27
28 class Paper_column_engraver : public Engraver
29 {
30   void make_columns ();
31   void set_columns (Paper_column *, Paper_column *);
32   TRANSLATOR_DECLARATIONS (Paper_column_engraver);
33
34   Paper_column *find_turnable_column (Moment after_this);
35   void revoke_page_turns (Moment after_this, Real new_penalty);
36
37 protected:
38   void stop_translation_timestep ();
39   void start_translation_timestep ();
40   void process_music ();
41   void handle_manual_breaks (bool);
42   virtual void initialize ();
43   virtual void finalize ();
44
45   DECLARE_TRANSLATOR_LISTENER (break);
46   DECLARE_TRANSLATOR_LISTENER (label);
47
48   DECLARE_ACKNOWLEDGER (item);
49   DECLARE_ACKNOWLEDGER (note_spacing);
50   DECLARE_ACKNOWLEDGER (staff_spacing);
51
52   System *system_;
53   vector<Stream_event *> break_events_;
54   vector<Stream_event *> label_events_;
55   int breaks_;                  // used for stat printing
56   Paper_column *command_column_;
57   Paper_column *musical_column_;
58   vector<Item *> items_;
59   bool first_;
60   bool made_columns_;
61   Moment last_moment_;
62
63 public:
64 };
65
66 #endif /* PAPER_COLUMN_ENGRAVER_HH */