]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/engraver-group.hh
* lily/ various: Introduce stream events of types Prepare,
[lilypond.git] / lily / include / engraver-group.hh
1 /*
2   engraver-group.hh -- declare Engraver_group
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 ENGRAVER_GROUP_HH
10 #define ENGRAVER_GROUP_HH
11
12 #include "engraver.hh"
13 #include "translator-group.hh"
14
15 class Engraver_group : public virtual Translator_group
16 {
17 protected:
18   vector<Grob_info> announce_infos_;
19   Drul_array<SCM> acknowledge_hash_table_drul_;
20   DECLARE_LISTENER (override);
21   DECLARE_LISTENER (revert);
22 public:
23   VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Engraver_group);
24   Engraver_group ();
25   virtual void derived_mark () const;
26   void do_announces ();
27   virtual void connect_to_context (Context *c);
28   virtual void disconnect_from_context ();
29   virtual void announce_grob (Grob_info);
30   int pending_grob_count () const;
31 private:
32   virtual void acknowledge_grobs ();
33 };
34
35 typedef void (Engraver:: *Engraver_method) (void);
36
37 void engraver_each (SCM list, Engraver_method method);
38
39 #endif /* ENGRAVERGROUP_HH */
40
41