2 score-engraver.hh -- declare Score_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SCORE_ENGRAVER_HH
11 #define SCORE_ENGRAVER_HH
13 #include "engraver-group-engraver.hh"
14 #include "global-translator.hh"
17 Top level engraver. Puts elements into appropriate columns.
19 class Score_engraver :
20 public Engraver_group_engraver, public Global_translator
23 int breaks_; // used for stat printing
25 Link_array<Grob> elems_;
26 Paper_column* command_column_;
27 Paper_column* musical_column_;
28 Paper_score * pscore_;
31 void set_columns (Paper_column*,Paper_column*);
34 /* Global_translator */
35 virtual void prepare (Moment);
36 virtual void finish ();
37 virtual void one_time_step ();
39 /* Engraver_group_engraver interface */
40 virtual void acknowledge_grob (Grob_info);
41 virtual bool try_music (Music*);
42 virtual void initialize ();
43 virtual void finalize ();
44 virtual void announce_grob (Grob_info);
45 virtual void typeset_grob (Grob*elem);
46 virtual void stop_translation_timestep ();
49 TRANSLATOR_DECLARATIONS(Score_engraver);
50 void forbid_breaks ();
51 virtual Music_output *get_output ();
54 #endif /* SCORE_ENGRAVER_HH */