]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
release: 1.5.47
[lilypond.git] / lily / include / paper-outputter.hh
1 /*
2   paper-outputter.hh -- declare Paper_outputter
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef PAPER_OUTPUTTER_HH
11 #define PAPER_OUTPUTTER_HH
12
13 #include "lily-proto.hh"
14 #include "array.hh"
15 #include "string.hh"
16 #include "lily-guile.hh"
17 #include "protected-scm.hh"
18
19 /**
20    Interface for a Grob to output itself; The Paper_score contains a
21    pointer to a Paper_outputter, and this enables every grob to output
22    itself.
23
24    The Paper_outputter contains a reference to an output stream
25  (Paper_stream).  */
26
27 class Paper_outputter
28 {
29   bool verbatim_scheme_b_;
30
31   
32 public:
33
34   SCM output_func_ ;
35   Protected_scm file_;
36   
37   String basename_;
38   Paper_outputter (String nm);
39   ~Paper_outputter ();
40   
41   void dump_scheme (SCM);
42
43   void output_int_def (String k, int v);
44   void output_Real_def (String k, Real v);
45   void output_String_def (String k, String v);
46   void output_scope (Scheme_hash_table*, String prefix);
47   void output_version ();
48   void output_font_def (int i, String str);
49   void output_font_switch (int i);
50   void output_header ();
51   void output_comment (String s);
52   void output_string (SCM s);
53   void output_scheme (SCM scm);
54
55   void write_header_field_to_file (String filename, SCM, SCM);
56   void write_header_fields_to_file (Scheme_hash_table *);
57 };
58
59 #endif // PAPER_OUTPUTTER_HH