]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/music-output-def.hh
c923fcab3689246b059d3b7bf94c757efc8d67b7
[lilypond.git] / lily / include / music-output-def.hh
1 /*
2   music-output-def.hh -- declare Music_output_def
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef Music_output_DEF_HH
11 #define Music_output_DEF_HH
12
13 #include "string.hh"
14 #include "lily-proto.hh"
15 #include "lily-guile.hh"
16 #include "virtual-methods.hh"
17 #include "smobs.hh"
18
19 /**
20   Definition of how to output lilypond.
21  */
22 class Music_output_def  
23 {
24 public:
25   Scheme_hash_table * translator_tab_;
26
27   SCM scope_;
28   SCM scaled_fonts_;
29   
30   VIRTUAL_COPY_CONS (Music_output_def);
31   Music_output_def (Music_output_def const&);
32   Music_output_def ();
33
34   Global_translator *get_global_translator ();
35   Translator_group *get_group_translator (String type) const;
36   void assign_translator (SCM transdef);
37   SCM find_translator (SCM name) const;
38   String outname_string () ;
39   SCM get_scmvar (String id)const;
40   SCM lookup_variable  (SCM sym) const;
41   void set_variable  (SCM, SCM sym);
42   
43   DECLARE_SMOBS (Music_output_def,);
44
45   
46 };
47
48 DECLARE_UNSMOB(Music_output_def,music_output_def);
49 #endif // Music_output_DEF_HH