]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
* lily/paper-outputter.cc (output_stencil): use
[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--2004 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   SCM output_module_;
31   Protected_scm file_;
32   String filename_;
33
34   void output_expr (SCM expr, Offset o);
35   void output_metadata (Paper_def*, SCM);
36   void output_music_output_def (Music_output_def* odef);
37
38 public:
39   Paper_outputter (String nm);
40   ~Paper_outputter ();
41
42   void dump_scheme (SCM);
43   void output_scheme (SCM scm);
44   void output_stencil (Stencil);
45   void output_header (Paper_def*, SCM, int, bool);
46   void output_line (SCM, Offset*, bool);
47   void output_page (Page*, bool);
48 };
49
50 #endif /* PAPER_OUTPUTTER_HH */