]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
8eeae2cf307246229d9b8a9200dfaa8f08215a7d
[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--1999 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
18 #ifdef __powerpc__
19 #include "protected-scm.hh"
20 #endif
21
22 /**
23   Abstract interface for a Score_element to output itself.
24  */
25 class Paper_outputter
26 {
27 #ifdef __powerpc__
28   Protected_scm port_;
29 #endif
30 public:
31   Paper_outputter (Paper_stream *);
32   ~Paper_outputter ();
33
34   void output_int_def (String k, int v);
35   void output_Real_def (String k, Real v);
36   void output_String_def (String k, String v);
37   void output_scope (Scope*, String prefix);
38   void output_version ();
39   void output_font_def (int i, String str);
40   void output_font_switch (int i);
41   void output_header ();
42   void output_molecule (Molecule const *, Offset, char const *);
43   void output_comment (String s);
44   void output_scheme (SCM scm);
45   void start_line (Real height);
46   void stop_line ();
47   void stop_last_line ();
48   void switch_to_font (String fontname);
49
50   Paper_stream* outstream_l_;
51 };
52
53 #endif // PAPER_OUTPUTTER_HH