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);
29 Context * daddy_context_;
32 void execute_pushpop_property (SCM prop, SCM sym, SCM val);
33 SCM internal_get_property (SCM name_sym) const;
35 Context *remove_context (Context*trans);
36 void check_removal ();
38 SCM properties_as_alist () const;
39 void unset_property (SCM var_sym);
40 void internal_set_property (SCM var_sym, SCM value);
42 Context *where_defined (SCM name_sym) const;
43 String context_name () const;
44 Global_context * get_global_context () const;
46 virtual Score_context * get_score_context () const;
47 bool is_alias (SCM) const;
48 void add_context (Context *trans);
49 bool is_bottom_context () const;
50 bool is_removable () const;
51 bool try_music (Music *);
53 virtual Music_output_def *get_output_def () const;
54 virtual Moment now_mom () const;
55 Context *find_existing_context (SCM context_name, String id);
56 Context *find_create_context (SCM context_name,
58 Link_array<Context> path_to_acceptable_context (SCM alias,
59 Music_output_def*) const;
60 Context *get_default_interpreter ();
65 friend class Interpretation_context_handle;
74 void apply_property_operations (Context*tg, SCM pre_init_ops);
75 void execute_pushpop_property (Context * trg, SCM prop, SCM eltprop, SCM val);
76 SCM updated_grob_properties (Context* tg, SCM sym);
77 Context * find_context_below (Context * where,
78 String type, String id);
79 bool melisma_busy (Context*);
81 Context *get_voice_to_lyrics (Context *lyrics);
82 Grob *get_current_note_head (Context * voice);
83 Context *unsmob_context (SCM);
85 DECLARE_UNSMOB(Context,context);
87 #endif /* CONTEXT_HH */