]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/translation-property.hh
release: 1.3.82
[lilypond.git] / lily / include / translation-property.hh
1 /*
2   translation-property.hh -- declare Translation_property
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef TRANSLATION_PROPERTY_HH
11 #define TRANSLATION_PROPERTY_HH
12
13 #include "music.hh"
14
15
16 /**
17   Set a property of Translator
18
19   value -- the value to set
20   symbol -- the symbol to set.
21
22 */
23 class Translation_property : public Music
24 {
25 public:
26   VIRTUAL_COPY_CONS(Music);
27 };
28
29 /**
30    Push onto basic property list.
31    
32   symbols -- list of basic-property lists
33
34   element-property -- element property name
35
36   element-value -- element property value
37   
38  */
39 class Push_translation_property : public Music
40 {
41 public:
42   VIRTUAL_COPY_CONS(Music);
43 };
44
45 /**
46   Restore previous setting.
47
48   symbols -- list of basic-property lists
49
50   element-property -- element property name
51  */
52 class Pop_translation_property : public Music
53 {
54 public:
55   VIRTUAL_COPY_CONS(Music);
56 };
57
58
59 void apply_push_property (Translator_group*trans, SCM syms, SCM eprop, SCM val);
60 void apply_pop_property (Translator_group*trans, SCM syms, SCM eprop);
61
62
63 #endif // PROPERTY_HH