2 global-translator.hh -- declare Global_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #ifndef GLOBAL_TRANSLATOR_HH
11 #define GLOBAL_TRANSLATOR_HH
13 #include "translator.hh"
16 class Global_translator : public virtual Translator {
17 PQueue<Moment> extra_mom_pq_;
21 int moments_left_i() const;
22 void modify_next (Moment&);
23 void add_moment_to_process (Moment);
25 virtual Music_output *get_output_p ();
26 virtual void prepare (Moment);
27 virtual void process() {}
28 virtual void finish() {}
29 virtual void start() {}
31 DECLARE_MY_RUNTIME_TYPEINFO;
34 virtual Global_translator *global_l() { return this; }
35 virtual int depth_i() const;
36 virtual Translator *ancestor_l (int);
41 #endif // GLOBAL_TRANSLATOR_HH