X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fpaper-column-engraver.hh;h=793d085e0cdaae1edf8c33762712f51545812e9d;hb=87eedcd59f4082cb0841528ad5bc82cb1d1191e3;hp=fce678276a38e16b7b194a86e115cd6b502fab8e;hpb=a7f82e4dc22fc6219a9fe0f6874f8c91e3f31f24;p=lilypond.git diff --git a/lily/include/paper-column-engraver.hh b/lily/include/paper-column-engraver.hh index fce678276a..793d085e0c 100644 --- a/lily/include/paper-column-engraver.hh +++ b/lily/include/paper-column-engraver.hh @@ -3,44 +3,49 @@ source file of the GNU LilyPond music typesetter - (c) 2005 Han-Wen Nienhuys - + (c) 2005--2007 Han-Wen Nienhuys */ #ifndef PAPER_COLUMN_ENGRAVER_HH #define PAPER_COLUMN_ENGRAVER_HH - #include "engraver.hh" - +#include "listener.hh" +#include "moment.hh" +#include "stream-event.hh" class Paper_column_engraver : public Engraver { void make_columns (); - void set_columns (Paper_column*, Paper_column*); - TRANSLATOR_DECLARATIONS(Paper_column_engraver); + void set_columns (Paper_column *, Paper_column *); + TRANSLATOR_DECLARATIONS (Paper_column_engraver); + + Paper_column *find_turnable_column (Moment after_this); + void revoke_page_turns (Moment after_this, Real new_penalty); protected: - PRECOMPUTED_VIRTUAL void stop_translation_timestep (); - PRECOMPUTED_VIRTUAL void start_translation_timestep (); - PRECOMPUTED_VIRTUAL void process_music (); + void stop_translation_timestep (); + void start_translation_timestep (); + void process_music (); virtual void initialize (); virtual void finalize (); - virtual bool try_music (Music*); - virtual void acknowledge_grob (Grob_info); + + DECLARE_TRANSLATOR_LISTENER (break); + + DECLARE_ACKNOWLEDGER (item); + DECLARE_ACKNOWLEDGER (note_spacing); + DECLARE_ACKNOWLEDGER (staff_spacing); System *system_; - Music *break_event_; + vector break_events_; int breaks_; // used for stat printing Paper_column *command_column_; Paper_column *musical_column_; - Link_array items_; + vector items_; bool first_; Moment last_moment_; -public: - // ug.h - void forbid_breaks (); +public: }; #endif /* PAPER_COLUMN_ENGRAVER_HH */