X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslation-property.hh;h=cedaf0d32c142e48189e18111cd93ce9147cf10a;hb=f05cfd7757b31723fe6af2f5c0e2fdbaebea3b85;hp=45651150e39e206400e608e11dc10e50bd1e4e04;hpb=615a9212789c2cb2994748c023d0e19f3a83a0fd;p=lilypond.git diff --git a/lily/include/translation-property.hh b/lily/include/translation-property.hh index 45651150e3..cedaf0d32c 100644 --- a/lily/include/translation-property.hh +++ b/lily/include/translation-property.hh @@ -1,9 +1,10 @@ +#if 0 /* translation-property.hh -- declare Translation_property source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--2002 Han-Wen Nienhuys */ @@ -11,20 +12,55 @@ #define TRANSLATION_PROPERTY_HH #include "music.hh" -#include "scalar.hh" + /** - Set a property of Translator - */ + Set a property of Translator + + value -- the value to set + symbol -- the symbol to set. + +*/ class Translation_property : public Music { public: - String var_str_; - Scalar value_; - VIRTUAL_COPY_CONS(Music); + Translation_property (); + VIRTUAL_COPY_CONS (Music); +}; + +/** + Push onto basic property list. + + symbols -- list of basic-property lists + + element-property -- element property name + + element-value -- element property value -protected: - virtual void do_print () const; + */ +class Push_translation_property : public Music +{ +public: + VIRTUAL_COPY_CONS (Music); +}; + +/** + Restore previous setting. + + symbols -- list of basic-property lists + + element-property -- element property name + */ +class Pop_translation_property : public Music +{ +public: + VIRTUAL_COPY_CONS (Music); }; + +void apply_push_property (Translator_group*trans, SCM syms, SCM eprop, SCM val); +void apply_pop_property (Translator_group*trans, SCM syms, SCM eprop); + + #endif // PROPERTY_HH +#endif