2 score-engraver.hh -- declare Score_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2002 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
26 Link_array<Grob> elems_;
28 Paper_column* command_column_;
29 Paper_column* musical_column_;
31 void set_columns (Paper_column*,Paper_column*);
35 TRANSLATOR_DECLARATIONS(Score_engraver);
36 Paper_score * pscore_;
38 void forbid_breaks ();
40 virtual Music_output *get_output ();
42 virtual void prepare (Moment);
43 virtual void finish ();
44 virtual void one_time_step ();
45 virtual int get_depth () const { return Global_translator::get_depth ();}
48 /* Engraver_group_engraver interface */
49 virtual void acknowledge_grob (Grob_info);
51 virtual bool try_music (Music*);
52 virtual void initialize ();
53 virtual void finalize ();
54 virtual void announce_grob (Grob_info);
55 virtual void typeset_grob (Grob*elem);
57 virtual void stop_translation_timestep ();
60 #endif /* SCORE_ENGRAVER_HH */