2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2005--2015 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 void handle_manual_breaks (bool);
42 virtual void initialize ();
43 virtual void finalize ();
45 void listen_break (Stream_event *);
46 void listen_label (Stream_event *);
48 void acknowledge_item (Grob_info);
49 void acknowledge_note_spacing (Grob_info);
50 void acknowledge_staff_spacing (Grob_info);
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_;
66 #endif /* PAPER_COLUMN_ENGRAVER_HH */