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 *)
60 Translator::now_mom () const
62 return daddy_context_->now_mom ();
66 Translator::get_output_def () const
68 return daddy_context_->get_output_def ();
72 Translator::get_daddy_translator () const
74 return daddy_context_->implementation ();
78 Translator::internal_get_property (SCM sym) const
80 return daddy_context_->internal_get_property (sym);
84 Translator::stop_translation_timestep ()
89 this function has 2 properties
91 - It is called before try_music ()
93 - It is called before any user information enters the translators.
94 (i.e. any \property or event is not processed yet.)
97 Translator::start_translation_timestep ()
102 Translator::initialize ()
107 Translator::finalize ()
115 Translator::mark_smob (SCM sm)
117 Translator *me = (Translator *) SCM_CELL_WORD_1 (sm);
123 Translator::translator_description () const
129 Translator::get_global_context () const
131 return daddy_context_ ->get_global_context ();
135 Translator::get_score_context () const
137 return daddy_context_->get_score_context ();
141 Translator::static_translator_description ()const
146 IMPLEMENT_SMOBS (Translator);
147 IMPLEMENT_DEFAULT_EQUAL_P (Translator);
148 IMPLEMENT_TYPE_P (Translator, "ly:translator?");
151 Translator::must_be_last () const
153 return must_be_last_;
157 Translator::derived_mark () const