2 translator.cc -- implement Translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "translator.hh"
12 #include "translator-group.hh"
13 #include "context-def.hh"
14 #include "global-context.hh"
17 #include "ly-smobs.icc"
20 Translator::~Translator ()
28 simple_trans_list_ = SCM_BOOL_F;
34 Translator::do_announces ()
39 Translator::process_music ()
44 Translator::Translator ()
49 Translator::Translator (Translator const &)
55 Translator::try_music (Music *)
62 Translator::now_mom () const
64 return daddy_context_->now_mom ();
68 Translator::get_output_def () const
70 return daddy_context_->get_output_def ();
75 Translator::get_daddy_translator () const
77 return daddy_context_->implementation ();
82 Translator::internal_get_property (SCM sym) const
84 return daddy_context_->internal_get_property (sym);
88 Translator::stop_translation_timestep ()
93 this function has 2 properties
95 - It is called before try_music ()
97 - It is called before any user information enters the translators.
98 (i.e. any \property or event is not processed yet.)
102 Translator::start_translation_timestep ()
107 Translator::initialize ()
112 Translator::finalize ()
123 Translator::mark_smob (SCM sm)
125 Translator * me = (Translator*) SCM_CELL_WORD_1 (sm);
126 return me->simple_trans_list_;
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?");