]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/clef-engraver.hh
35ae82c19b5a8c3c603b4a0f88e97cf258e76365
[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--1999 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   bool set_type (String);
24 protected:
25   virtual void do_process_requests();
26   virtual void do_pre_move_processing();
27   virtual void do_removal_processing();
28   virtual void do_creation_processing();
29   virtual void do_post_move_processing();
30   virtual bool do_try_music (Music*);
31   virtual void acknowledge_element (Score_element_info);
32 public:
33   VIRTUAL_COPY_CONS(Translator);
34   int c0_position_i_;
35   int clef_position_i_;
36   Direction octave_dir_;
37   String clef_type_str_;
38   bool create_default_b_;
39    
40   Clef_engraver();
41   
42    
43 };
44 #endif