]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lookup.hh
release: 1.1.18
[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   Atom bar (String, Real height) const;
37   Atom beam (Real, Real, Real) const;
38   Atom clef (String) const;
39   Atom dashed_slur (Array<Offset> controls, Real thick, Real dash) const;
40   Atom dots () const;
41   Atom dynamic (String) const;
42   Atom extender (Real) const;
43   Atom fill (Box b) const;
44   Atom flag (int, Direction) const;
45   Atom hairpin (Real width, bool decresc, bool continued) const;
46   Atom plet (Real dy, Real dx, Direction dir) const;
47   void print () const;
48   Atom rest (int, bool outside) const;
49   Atom rule_symbol (Real height, Real width) const;
50   Atom script (String idx) const;
51   Atom stem (Real y1_pos, Real y2_pos) const;
52   Atom slur (Array<Offset> controls) const;
53   Atom streepje (int type) const;
54   Atom text (String style, String text) const;
55   Atom vbrace (Real &dy) const;
56   Atom vbracket (Real &dy) const;
57   Atom volta (Real w, bool last_b) const;
58   Atom special_time_signature (String, Array<int>) const;
59   Atom time_signature (Array<int>) const;
60
61   Paper_def * paper_l_;
62   Symtables *symtables_p_;
63
64   String font_name_;
65   Adobe_font_metric * afm_l_;
66 };
67
68 #endif // LOOKUP_HH