/*
- 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 */