]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
release: 1.1.53
[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 public:
28   Paper_outputter (Paper_stream *);
29   ~Paper_outputter ();
30
31   void output_int_def (String k, int v);
32   void output_Real_def (String k, Real v);
33   void output_String_def (String k, String v);
34   void output_scope (Scope*, String prefix);
35   void output_version ();
36   void output_font_def (int i, String str);
37   void output_font_switch (int i);
38   void output_header ();
39   void output_molecule (Molecule const *, Offset, char const *);
40   void output_comment (String s);
41   void output_scheme (SCM scm);
42   void start_line (Real height);
43   void stop_line ();
44   void stop_last_line ();
45   void switch_to_font (String fontname);
46
47   Paper_stream* outstream_l_;
48 };
49
50 #endif // PAPER_OUTPUTTER_HH