]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/translator.hh
release: 1.3.143
[lilypond.git] / lily / include / translator.hh
index 74a46a1fd2c503ce8986933bfb0c21741e6cd55b..112c21496f0e02d286b337dfa61de75286170e54 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -28,33 +28,19 @@ public:
   Music_output_def * output_def_l_;
   String type_str_;
   
-  virtual const char *name() const;
+  virtual const char *name () const;
   bool is_alias_b (String) const;
     
-  VIRTUAL_COPY_CONS(Translator);
+  VIRTUAL_COPY_CONS (Translator);
   Translator (Translator const &);
   Translator ();
   
   Translator_group * daddy_trans_l_ ;
  
-  void print () const;
-  
-  /**
-    try to fit the request in this engraver
-
-    @return
-    false: not noted,  not taken.
 
-    true: request swallowed. Don't try to put the request elsewhere.
+  void announces ();
 
-    */
-  bool try_music (Music*);
-  void pre_move_processing();
-  void add_processing ();
-  void creation_processing ();
-  void process_music();
-  void post_move_processing();
-  void removal_processing();
+  void removal_processing ();
   /**
     ask daddy for a feature
     */
@@ -73,35 +59,24 @@ public:
   SCM definition_;
   
   SCM properties_scm_;
-  DECLARE_SMOBS(Translator, dummy);
+  DECLARE_SMOBS (Translator, dummy);
 public:
-  /*
-    UGH. Clean this up.
-   */
-   enum { 
-    ORPHAN,
-    VIRGIN,
-    CREATION_INITED,
-    MOVE_INITED,
-    ACCEPTED_REQS,
-    PROCESSED_REQS,
-    ACKED_REQS,
-    MOVE_DONE
-  } status_;                   // junkme
-protected:
-
-  /*    
-       @see{try_request}
-       Default: always return false
-       */
-  virtual void do_add_processing ();
-  virtual bool do_try_music (Music *req_l);
-  virtual void do_print () const;
-  virtual void do_pre_move_processing();
-  virtual void do_post_move_processing();
-  virtual void do_process_music () ;
-  virtual void do_creation_processing() ;
-  virtual void do_removal_processing();
+
+    /**
+    try to fit the request in this engraver
+
+    @return
+    false: not noted,  not taken.
+
+    true: request swallowed. Don't try to put the request elsewhere.
+
+    */
+  virtual bool try_music (Music *req_l);
+  virtual void stop_translation_timestep ();
+  virtual void start_translation_timestep ();
+  virtual void do_announces () ;
+  virtual void initialize () ;
+  virtual void finalize ();
 };
 
 
@@ -114,7 +89,7 @@ static void  _ ## T ## _adder () {\
       t->type_str_ = classname (t);\
       add_translator (t);\
 }\
-ADD_GLOBAL_CTOR(_ ## T ## _adder);
+ADD_GLOBAL_CTOR (_ ## T ## _adder);