]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-engraver.hh
*** empty log message ***
[lilypond.git] / lily / include / score-engraver.hh
1 /*
2   score-engraver.hh -- declare Score_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef SCORE_ENGRAVER_HH
11 #define SCORE_ENGRAVER_HH
12
13 #include "engraver-group-engraver.hh"
14 #include "global-translator.hh"
15
16 /**
17   Top level engraver. Puts elements into appropriate columns.
18  */
19 class Score_engraver : 
20   public Engraver_group_engraver, public Global_translator 
21 {
22   System *system_;
23   int breaks_;                  // used for stat printing
24   
25   Link_array<Grob> elems_;
26   Paper_column* command_column_;
27   Paper_column* musical_column_;
28   Paper_score * pscore_;
29
30   void make_columns ();
31   void set_columns (Paper_column*,Paper_column*);
32   void typeset_all ();
33 protected:
34   /* Global_translator */
35   virtual void prepare (Moment);
36   virtual void finish ();
37   virtual void one_time_step ();
38
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 ();
47
48 public:
49   TRANSLATOR_DECLARATIONS(Score_engraver);
50   void forbid_breaks ();
51   virtual Music_output *get_output ();  
52 };
53
54 #endif /* SCORE_ENGRAVER_HH */