]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/clef-engraver.hh
release: 1.3.0
[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 "array.hh"
14 #include "engraver.hh"
15 #include "direction.hh"
16
17 /// where is c-0 in the staff?
18 class Clef_engraver : public  Engraver {
19   Clef_item * clef_p_;
20   Clef_change_req * clef_req_l_;
21   void create_clef();
22   bool set_type (String);
23 protected:
24   virtual void do_process_requests();
25   virtual void do_pre_move_processing();
26   virtual void do_removal_processing();
27   virtual void do_creation_processing();
28   virtual void do_post_move_processing();
29   virtual bool do_try_music (Music*);
30   virtual void acknowledge_element (Score_element_info);
31 public:
32   VIRTUAL_COPY_CONS(Translator);
33   int c0_position_i_;
34   int clef_position_i_;
35   Direction octave_dir_;
36   String clef_type_str_;
37   bool create_default_b_;
38    
39   Clef_engraver();
40   
41    
42 };
43 #endif