2 translator.cc -- implement Translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "translator.hh"
12 #include "translator-group.hh"
13 #include "context-def.hh"
14 #include "global-context.hh"
16 #include "ly-smobs.icc"
18 Translator::~Translator ()
25 must_be_last_ = false;
32 Translator::do_announces ()
37 Translator::process_music ()
42 Translator::Translator ()
47 Translator::Translator (Translator const &src)
50 must_be_last_ = src.must_be_last_;
54 Translator::try_music (Music *)
61 Translator::now_mom () const
63 return daddy_context_->now_mom ();
67 Translator::get_output_def () const
69 return daddy_context_->get_output_def ();
74 Translator::get_daddy_translator () const
76 return daddy_context_->implementation ();
81 Translator::internal_get_property (SCM sym) const
83 return daddy_context_->internal_get_property (sym);
87 Translator::stop_translation_timestep ()
92 this function has 2 properties
94 - It is called before try_music ()
96 - It is called before any user information enters the translators.
97 (i.e. any \property or event is not processed yet.)
101 Translator::start_translation_timestep ()
106 Translator::initialize ()
111 Translator::finalize ()
122 Translator::mark_smob (SCM sm)
124 Translator * me = (Translator*) SCM_CELL_WORD_1 (sm);
130 Translator::translator_description () const
137 Translator::get_global_context () const
139 return daddy_context_ ->get_global_context ();
144 Translator::get_score_context () const
146 return daddy_context_->get_score_context ();
151 Translator::static_translator_description ()const
157 IMPLEMENT_SMOBS (Translator);
158 IMPLEMENT_DEFAULT_EQUAL_P (Translator);
159 IMPLEMENT_TYPE_P (Translator, "ly:translator?");
162 Translator::must_be_last () const
164 return must_be_last_;
168 Translator::derived_mark () const