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