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 ()
41 Translator::Translator ()
46 Translator::Translator (Translator const &src)
49 must_be_last_ = src.must_be_last_;
53 Translator::try_music (Music *)
59 Translator::now_mom () const
61 return daddy_context_->now_mom ();
65 Translator::get_output_def () const
67 return daddy_context_->get_output_def ();
71 Translator::get_daddy_translator () const
73 return daddy_context_->implementation ();
77 Translator::internal_get_property (SCM sym) const
79 return daddy_context_->internal_get_property (sym);
83 Translator::stop_translation_timestep ()
88 this function has 2 properties
90 - It is called before try_music ()
92 - It is called before any user information enters the translators.
93 (i.e. any \property or event is not processed yet.)
96 Translator::start_translation_timestep ()
101 Translator::initialize ()
106 Translator::finalize ()
114 Translator::mark_smob (SCM sm)
116 Translator *me = (Translator *) SCM_CELL_WORD_1 (sm);
122 Translator::translator_description () const
128 Translator::get_global_context () const
130 return daddy_context_->get_global_context ();
134 Translator::get_score_context () const
136 return daddy_context_->get_score_context ();
140 Translator::static_translator_description ()const
145 IMPLEMENT_SMOBS (Translator);
146 IMPLEMENT_DEFAULT_EQUAL_P (Translator);
147 IMPLEMENT_TYPE_P (Translator, "ly:translator?");
150 Translator::must_be_last () const
152 return must_be_last_;
156 Translator::derived_mark () const