2 global-context.hh -- declare Global_context
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #ifndef GLOBAL_CONTEXT_HH
10 #define GLOBAL_CONTEXT_HH
15 class Global_context : public virtual Context
17 PQueue<Moment> extra_mom_pq_;
18 Output_def *output_def_;
20 friend class Output_def;
22 Global_context (Output_def *, Moment final, Object_key *key);
23 int get_moments_left () const;
24 Moment sneaky_insert_extra_moment (Moment);
25 void add_moment_to_process (Moment);
26 void run_iterator_on_me (Music_iterator *);
27 virtual Score_context *get_score_context () const;
29 void apply_finalizations ();
30 void add_finalization (SCM);
32 virtual SCM get_output ();
33 virtual void prepare (Moment);
34 virtual void one_time_step ();
35 virtual void finish ();
36 virtual Output_def *get_output_def () const;
37 virtual Moment now_mom () const;
38 virtual Context *get_default_interpreter ();
40 Moment previous_moment () const;
47 SCM ly_format_output (SCM);
49 #endif // GLOBAL_CONTEXT_HH