]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-engraver.hh
* lily/score.cc (Score): unprotect copy of Output_def. Plugs
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef SCORE_ENGRAVER_HH
10 #define SCORE_ENGRAVER_HH
11
12 #include "engraver-group-engraver.hh"
13 #include "score-translator.hh"
14
15 class Score_engraver : public virtual Score_translator,
16                        public virtual Engraver_group_engraver
17 {
18   System *system_;
19   int breaks_;                  // used for stat printing
20
21   Link_array<Grob> elems_;
22   Paper_column *command_column_;
23   Paper_column *musical_column_;
24   Paper_score *pscore_;
25
26   void make_columns ();
27   void set_columns (Paper_column *, Paper_column *);
28   void typeset_all ();
29 protected:
30   /* Score_translator */
31   virtual void finish ();
32   virtual void prepare (Moment);
33   virtual void one_time_step ();
34
35   
36   /* Engraver_group_engraver interface */
37   virtual void acknowledge_grob (Grob_info);
38   virtual bool try_music (Music *);
39   virtual void initialize ();
40   virtual void finalize ();
41   virtual void announce_grob (Grob_info);
42   virtual void stop_translation_timestep ();
43
44   /*
45     Translator interface
46    */
47   virtual void derived_mark () const;
48 public:
49   TRANSLATOR_DECLARATIONS (Score_engraver);
50   void forbid_breaks ();
51   virtual SCM get_output ();
52 };
53
54 #endif /* SCORE_ENGRAVER_HH */