2 context.hh -- declare Context
4 source file of the GNU LilyPond music typesetter
6 (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
13 #include "lily-proto.hh"
18 Scheme_hash_table *properties_dict () const;
19 Context (Context const &src);
21 DECLARE_SMOBS (Context, dummy);
26 friend class Interpretation_context_handle;
31 Context * daddy_context_;
39 friend class Context_def;
41 SCM children_contexts () const { return context_list_; }
42 SCM default_child_context_name () const;
43 Translator_group* implementation () const;
45 Context * get_parent_context () const;
48 void execute_pushpop_property (SCM prop, SCM sym, SCM val);
49 SCM internal_get_property (SCM name_sym) const;
51 Context *remove_context (Context*trans);
52 void check_removal ();
54 SCM properties_as_alist () const;
55 void unset_property (SCM var_sym);
56 void internal_set_property (SCM var_sym, SCM value);
58 Context *where_defined (SCM name_sym) const;
59 String context_name () const;
60 Global_context * get_global_context () const;
62 virtual Score_context * get_score_context () const;
63 bool is_alias (SCM) const;
65 void add_context (Context *trans);
66 bool is_bottom_context () const;
67 bool is_removable () const;
68 bool try_music (Music *);
70 virtual Music_output_def *get_output_def () const;
71 virtual Moment now_mom () const;
72 Context *find_create_context (SCM context_name,
74 Link_array<Context> path_to_acceptable_context (SCM alias,
75 Music_output_def*) const;
76 virtual Context *get_default_interpreter ();
84 void apply_property_operations (Context*tg, SCM pre_init_ops);
85 void execute_pushpop_property (Context * trg, SCM prop, SCM eltprop, SCM val);
86 SCM updated_grob_properties (Context* tg, SCM sym);
87 Context * find_context_below (Context * where,
88 SCM type_sym, String id);
89 bool melisma_busy (Context*);
91 Context *get_voice_to_lyrics (Context *lyrics);
92 Grob *get_current_note_head (Context * voice);
93 Context *unsmob_context (SCM);
95 DECLARE_UNSMOB(Context,context);
97 #endif /* CONTEXT_HH */