]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/tex-outputter.hh
release: 1.0.1
[lilypond.git] / lily / include / tex-outputter.hh
1 /*
2   outputter.hh -- declare Outputter
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef OUTPUTTER_HH
11 #define OUTPUTTER_HH
12
13 #include "lily-proto.hh"
14 #include "array.hh"
15 #include "string.hh"
16
17 /**
18   Abstract interface for a Score_element to output itself.
19  */
20 struct Outputter
21 {
22   virtual ~Outputter(){}
23   virtual void start_line ()=0;
24   virtual void output_molecule (Molecule const *, Offset, char const *)=0;
25   virtual void stop_line ()=0;
26 };
27
28 /**
29   Output a line of score using  TeX strings
30  */
31 struct Tex_outputter : Outputter
32 {
33   Array<String> font_arr_;
34   String current_font_;
35   
36   Tex_outputter (Tex_stream *);
37   Tex_stream * outstream_l_;
38   void switch_to_font (String);
39   virtual void output_molecule (Molecule const*, Offset, char const*);
40   virtual void start_line ();
41   virtual void stop_line ();
42 };
43
44 #endif // OUTPUTTER_HH