]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/staff-symbol-referencer.hh
release: 1.3.56
[lilypond.git] / lily / include / staff-symbol-referencer.hh
index f768269c5b90d57e33d1b532c50054a846de00a0..20311c8abb53fcd4f280b5a360e6d9d845fd7be0 100644 (file)
@@ -1,37 +1,48 @@
 /*   
-  staff-sym-referencer.hh -- declare Staff_sym_referencer
+  staff-sym-referencer.hh -- declare staff_symbol_referencer
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
-#ifndef STAFF_SYM_REFERENCER_HH
-#define STAFF_SYM_REFERENCER_HH
+#ifndef STAFF_SYMBOL_REFERENCER_HH
+#define STAFF_SYMBOL_REFERENCER_HH
 
 #include "score-element.hh"
 
+
 /**
    A notation object that needs access to variables of the staff (no
    lines, leading).
    
  */
-class Staff_symbol_referencer : public virtual Score_element
+class Staff_symbol_referencer_interface 
 {
-protected:
-  Staff_symbol * staff_sym_l_;
-
 public:
-  Staff_symbol_referencer ();
-  void set_staff_symbol (Staff_symbol*);
-  Real staff_line_leading_f () const;
-  Staff_symbol * staff_symbol_l () const;
-  int lines_i () const;
-  virtual void do_substitute_element_pointer (Score_element*,Score_element*);
+  Score_element * elt_l_;
+  Staff_symbol_referencer_interface (Score_element const*);
+  void set_interface ();
+  bool has_interface_b ();
+  void set_position (Real);
+  static Real callback (Score_element const*, Axis a);
 
-  virtual Real position_f () const;
+  /**
+     Leading are the lead strips between the sticks (lines) of
+     typeface. ie. leading is vertical space.
+   */
+  
+  Real staff_space () const;
+  Staff_symbol * staff_symbol_l () const;
+  int line_count () const;
+  Real position_f () const;
 };
 
-#endif /* STAFF_SYM_REFERENCER_HH */
+int compare_position (Score_element *const&,Score_element *const&); 
+
+
+Staff_symbol_referencer_interface staff_symbol_referencer  (Score_element const*);
+
+#endif /* STAFF_SYMBOL_REFERENCER_HH */