2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2005--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
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.
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.
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/>.
20 #ifndef PAPER_COLUMN_ENGRAVER_HH
21 #define PAPER_COLUMN_ENGRAVER_HH
23 #include "engraver.hh"
24 #include "listener.hh"
26 #include "stream-event.hh"
28 class Paper_column_engraver : public Engraver
31 void set_columns (Paper_column *, Paper_column *);
32 TRANSLATOR_DECLARATIONS (Paper_column_engraver);
34 Paper_column *find_turnable_column (Moment after_this);
35 void revoke_page_turns (Moment after_this, Real new_penalty);
38 void stop_translation_timestep ();
39 void start_translation_timestep ();
40 void process_music ();
41 virtual void initialize ();
42 virtual void finalize ();
44 DECLARE_TRANSLATOR_LISTENER (break);
45 DECLARE_TRANSLATOR_LISTENER (label);
47 DECLARE_ACKNOWLEDGER (item);
48 DECLARE_ACKNOWLEDGER (note_spacing);
49 DECLARE_ACKNOWLEDGER (staff_spacing);
52 vector<Stream_event *> break_events_;
53 vector<Stream_event *> label_events_;
54 int breaks_; // used for stat printing
55 Paper_column *command_column_;
56 Paper_column *musical_column_;
57 vector<Item *> items_;
65 #endif /* PAPER_COLUMN_ENGRAVER_HH */