2 global-context.hh -- declare Global_context
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef GLOBAL_CONTEXT_HH
11 #define GLOBAL_CONTEXT_HH
16 class Global_context : public virtual Context
18 PQueue<Moment> extra_mom_pq_;
19 Output_def* output_def_;
21 friend class Output_def;
23 Global_context (Output_def*, Moment final);
24 int get_moments_left () const;
25 Moment sneaky_insert_extra_moment (Moment);
26 void add_moment_to_process (Moment);
27 void run_iterator_on_me (Music_iterator*);
28 virtual Score_context*get_score_context () const;
30 void apply_finalizations ();
31 void add_finalization (SCM);
33 virtual Music_output *get_output ();
34 virtual void prepare (Moment);
35 virtual void one_time_step ();
36 virtual void finish ();
37 virtual Output_def* get_output_def () const;
38 virtual Moment now_mom () const;
39 virtual Context *get_default_interpreter ();
42 Moment previous_moment () const;
51 #endif // GLOBAL_CONTEXT_HH