]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/score-engraver.hh
* lily/ various: Introduce stream events of types Prepare,
[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--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SCORE_ENGRAVER_HH
10 #define SCORE_ENGRAVER_HH
11
12 #include "engraver-group.hh"
13 #include "score-translator.hh"
14
15 class Score_engraver : public virtual Score_translator,
16                        public virtual Engraver_group
17 {
18   System *system_;
19
20   vector<Grob*> elems_;
21   Paper_score *pscore_;
22
23   void typeset_all ();
24
25 protected:
26   DECLARE_LISTENER (finish);
27   DECLARE_LISTENER (prepare);
28   DECLARE_LISTENER (one_time_step);
29
30   /* Engraver_group_engraver interface */
31   virtual void connect_to_context (Context *);
32   virtual void disconnect_from_context ();
33   virtual bool try_music (Music *);
34   virtual void initialize ();
35   virtual void finalize ();
36   virtual void announce_grob (Grob_info);
37   void stop_translation_timestep ();
38
39   /*
40     Translator interface
41   */
42   virtual void derived_mark () const;
43
44 public:
45   Score_engraver ();
46   virtual SCM get_output ();
47 };
48
49 #endif /* SCORE_ENGRAVER_HH */