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>
*/
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_ ;
-
- /**
- 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 announces();
- void post_move_processing();
- void removal_processing();
+ void removal_processing ();
/**
ask daddy for a feature
*/
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_pre_move_processing();
- virtual void do_post_move_processing();
- void deprecated_process_music () ;
+
+ /**
+ 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 do_creation_processing() ;
- virtual void do_removal_processing();
+ virtual void initialize () ;
+ virtual void finalize ();
};
t->type_str_ = classname (t);\
add_translator (t);\
}\
-ADD_GLOBAL_CTOR(_ ## T ## _adder);
+ADD_GLOBAL_CTOR (_ ## T ## _adder);