]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-outputter.hh
* scm/music-functions.scm (has-request-chord): don't 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--2005 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 "protected-scm.hh"
17 #include "smobs.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   String file_name_;
27   SCM file_;
28
29
30 public:
31   DECLARE_SMOBS (Paper_outputter, );
32
33 public:
34   SCM file ();
35   SCM dump_string (SCM);
36   void output_scheme (SCM scm);
37   Paper_outputter (String nm, String format);
38   SCM scheme_to_string (SCM);
39   void output_stencil (Stencil);
40   void close();
41 };
42
43 Paper_outputter *get_paper_outputter (String, String);
44 DECLARE_UNSMOB (Paper_outputter, outputter);
45
46 #endif /* PAPER_OUTPUTTER_HH */