]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
patch::: 1.1.23.ms2
[lilypond.git] / lily / include / lookup.hh
1 /*
2   lookup.hh -- declare Lookup
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   Jan Nieuwenhuizen <janneke@gnu.org>
8 */
9
10 #ifndef LOOKUP_HH
11 #define LOOKUP_HH
12
13 #include "atom.hh"
14 #include "molecule.hh"
15 #include "fproto.hh"
16 #include "scalar.hh"
17 #include "direction.hh"
18 #include "curve.hh"
19 #include "symtable.hh"
20 #include "box.hh"
21
22 /** handy interface to symbol table
23  */
24 class Lookup
25 {
26 public:
27   Lookup ();
28   Lookup (Lookup const&);
29   Lookup (Symtables const&);
30   ~Lookup ();
31   
32   Molecule accidental (int, bool cautionary) const;
33   void add (String, Symtable*);
34   Atom afm_find (String, bool warn=true) const;
35   Atom ball (int) const;
36   //
37   Atom special_ball (int, String) const;
38   //
39   Atom bar (String, Real height) const;
40   Atom beam (Real, Real, Real) const;
41   Atom clef (String) const;
42   Atom dashed_slur (Array<Offset> controls, Real thick, Real dash) const;
43   Atom dots () const;
44   Atom dynamic (String) const;
45   Atom extender (Real) const;
46   Atom fill (Box b) const;
47   Atom flag (int, Direction) const;
48   Atom hairpin (Real width, bool decresc, bool continued) const;
49   Atom plet (Real dy, Real dx, Direction dir) const;
50   void print () const;
51   Atom rest (int, bool outside) const;
52   Atom rule_symbol (Real height, Real width) const;
53   Atom script (String idx) const;
54   Atom stem (Real y1_pos, Real y2_pos) const;
55   Atom slur (Array<Offset> controls) const;
56   Atom streepje (int type) const;
57   Atom text (String style, String text) const;
58   Atom vbrace (Real &dy) const;
59   Atom vbracket (Real &dy) const;
60   Atom volta (Real w, bool last_b) const;
61   Atom special_time_signature (String, Array<int>) const;
62   Atom time_signature (Array<int>) const;
63
64   Paper_def * paper_l_;
65   Symtables *symtables_p_;
66
67   String font_name_;
68   Adobe_font_metric * afm_l_;
69 };
70
71 #endif // LOOKUP_HH