]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
* scm/music-functions.scm (def-grace-function): move macros from
[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   Glue between the backend (grobs, systems, pages) and the output file.
21   proxy for Scheme backends.
22 */
23 class Paper_outputter
24 {
25   SCM output_module_;
26   SCM file_;
27   String filename_;
28
29 public:
30   DECLARE_SMOBS(Paper_outputter,);
31
32 public:
33   SCM dump_string (SCM);
34   void output_scheme (SCM scm);
35   Paper_outputter (String nm, String format);
36   SCM scheme_to_string (SCM);
37   void output_stencil (Stencil);
38 };
39
40 Paper_outputter* get_paper_outputter (String,String);
41 DECLARE_UNSMOB(Paper_outputter, outputter);
42
43 #endif /* PAPER_OUTPUTTER_HH */