]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/translator-group.hh
* lily/ various: Introduce stream events of types Prepare,
[lilypond.git] / lily / include / translator-group.hh
index b4872698b04d064d8ecbb22cb0fe018fa040b1a2..1c8f91ce454370eeb92377949dec337b986d74f6 100644 (file)
@@ -3,14 +3,15 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef TRANSLATOR_GROUP_HH
 #define TRANSLATOR_GROUP_HH
 
+#include "listener.hh"
 #include "translator.hh"
-#include "parray.hh"
+#include "std-vector.hh"
 
 typedef void (Translator:: *Translator_method) (void);
 typedef void (Translator_group:: *Translator_group_method) (void);
@@ -40,17 +41,22 @@ class Translator_group
 {
 private:
   void precompute_method_bindings ();
-  Array<Translator_method_binding>
+  vector<Translator_method_binding>
   precomputed_method_bindings_[TRANSLATOR_METHOD_PRECOMPUTE_COUNT];
 
   Translator_group_void_method
   precomputed_self_method_bindings_[TRANSLATOR_METHOD_PRECOMPUTE_COUNT];
 
+  DECLARE_LISTENER (create_child_translator);
+  DECLARE_LISTENER (eat_event);
+
 public:
   VIRTUAL_COPY_CONSTRUCTOR (Translator_group, Translator_group);
   DECLARE_SMOBS (Translator_group, dummy);
 
 public:
+  virtual void connect_to_context (Context *c);
+  virtual void disconnect_from_context ();
   virtual Translator_group *get_daddy_translator ()const;
   virtual SCM get_simple_trans_list ();
   virtual bool try_music (Music *req);