]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/output-def.hh
new file, move from
[lilypond.git] / lily / include / output-def.hh
1 /*
2   music-output-def.hh -- declare Output_def
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 #ifndef MUSIC_OUTPUT_DEF_HH
10 #define MUSIC_OUTPUT_DEF_HH
11
12 #include "string.hh"
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
15 #include "virtual-methods.hh"
16 #include "smobs.hh"
17 #include "input.hh"
18
19 /**
20   Definition of how to output lilypond.
21  */
22 class Output_def   
23 {
24 public:
25   VIRTUAL_COPY_CONSTRUCTOR (Output_def, Output_def);
26   DECLARE_SMOBS (Output_def,);
27 public:
28   Output_def * parent_;
29   Input input_origin_;
30   SCM scope_;
31
32   Output_def (Output_def const&);
33   Output_def ();
34   virtual void derived_mark ();
35   
36   /*
37     variables.
38    */
39   SCM c_variable (String id) const;
40   SCM lookup_variable (SCM sym) const;
41   void set_variable (SCM sym, SCM val);
42   Real get_dimension (SCM symbol) const;
43 };
44
45 void assign_context_def (Output_def *m, SCM transdef);
46 SCM find_context_def (Output_def const *m, SCM name);
47
48 int get_tempo (Output_def*def, Moment moment);
49 void set_tempo (Output_def*def, Moment moment, int count_per_minute_i);
50
51 Interval line_dimensions_int (Output_def*def, int);
52  
53
54 Font_metric *select_encoded_font (Output_def *paper, SCM input_encoding, SCM chain);
55 Font_metric *select_font (Output_def *paper, SCM chain);
56
57 DECLARE_UNSMOB (Output_def, output_def);
58
59 #endif /* MUSIC_OUTPUT_DEF_HH */