]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-def.hh
06b9761e7978243f0c805b3da08c25581ce6f2db
[lilypond.git] / lily / include / paper-def.hh
1 /*
2   paper-def.hh -- declare Paper_def
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef PAPER_DEF_HH
11 #define PAPER_DEF_HH
12
13
14 #include "lily-proto.hh"
15 #include "lily-guile.hh"
16 #include "real.hh"
17 #include "array.hh"
18 #include "interval.hh"
19 #include "music-output-def.hh"
20
21
22 /** 
23
24   Symbols, dimensions and constants pertaining to visual output.
25
26   This struct takes care of all kinds of symbols, dimensions and
27   constants. Most of them are related to the point-size of the fonts,
28   so therefore, the lookup table for symbols is also in here.
29
30   TODO: 
31   
32   add support for multiple fontsizes 
33
34   remove all utility funcs 
35   
36
37   add support for other len->wid conversions.
38
39
40   Interesting variables:
41   
42   /// The distance between lines
43   interline
44   
45 */
46 class Paper_def : public Music_output_def 
47 {
48 protected:
49   VIRTUAL_COPY_CONSTRUCTOR (Music_output_def, Paper_def);
50
51 public:    
52   static int score_count_;
53   
54   Paper_def ();
55   Paper_def (Paper_def const&);
56   virtual ~Paper_def ();
57   
58   Paper_outputter* get_paper_outputter (String) const;
59   SCM font_descriptions () const;
60   void reinit ();
61   Interval line_dimensions_int (int) const;
62   void output_settings (Paper_outputter*) const;
63   Font_metric *find_font (SCM name, Real mag);
64   
65   /* JUNKME   */
66   Real get_realvar (SCM symbol) const;
67   
68   SCM smobbed_copy () const;
69   
70   friend int yyparse (void*);
71 };
72
73 Paper_def * unsmob_paper (SCM x);
74 Font_metric *select_font (Paper_def *paper, SCM chain);
75
76 #endif /* PAPER_DEF_HH */