]> git.donarmstrong.com Git - lilypond.git/blob - lily/score-context.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / score-context.cc
1 /*
2   score-context.cc -- implement Score_context
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "score-context.hh"
10
11 #include "score-translator.hh"
12
13 void
14 Score_context::prepare (Moment w)
15 {
16   Translator_group *t = implementation ();
17   Score_translator *s = dynamic_cast<Score_translator *> (t);
18
19   s->prepare (w);
20 }
21
22 void
23 Score_context::finish ()
24 {
25   Translator_group *t = implementation ();
26   Score_translator *s = dynamic_cast<Score_translator *> (t);
27
28   s->finish ();
29 }
30
31 void
32 Score_context::one_time_step ()
33 {
34   Translator_group *t = implementation ();
35   Score_translator *s = dynamic_cast<Score_translator *> (t);
36   s->one_time_step ();
37 }
38
39 SCM
40 Score_context::get_output ()
41 {
42   Translator_group *t = implementation ();
43   Score_translator *s = dynamic_cast<Score_translator *> (t);
44   return s->get_output ();
45 }
46
47 Score_context::Score_context (Object_key const *key)
48   : Context (key)
49 {
50 }