]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/clef-engraver.hh
release: 1.0.15
[lilypond.git] / lily / include / clef-engraver.hh
1 /*
2   clef-engraver.hh -- declare Clef_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1996,  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef CLEF_GRAV_HH
11 #define CLEF_GRAV_HH
12
13 #include "scalar.hh"
14 #include "array.hh"
15 #include "engraver.hh"
16 #include "direction.hh"
17
18 /// where is c-0 in the staff?
19 class Clef_engraver : public  Engraver {
20   Clef_item *clef_p_;
21   Clef_change_req * clef_req_l_;
22   void create_clef();
23   void read_req (Clef_change_req*);
24   bool set_type (String);
25 protected:
26   virtual void do_process_requests();
27   virtual void do_pre_move_processing();
28   virtual void do_removal_processing();
29   virtual void do_creation_processing();
30   virtual void do_post_move_processing();
31   virtual bool do_try_request (Request*);
32   virtual void acknowledge_element (Score_element_info);
33 public:
34   TRANSLATOR_CLONE(Clef_engraver);
35   int c0_position_i_;
36   int clef_position_i_;
37   Direction octave_dir_;
38   String clef_type_str_;
39
40    
41   Clef_engraver();
42   DECLARE_MY_RUNTIME_TYPEINFO;
43    
44 };
45 #endif