class Grob {
public:
SCM immutable_property_alist_;
-
- // rename me to ``property_alist_''
SCM mutable_property_alist_;
Grob *original_l_;
0 means ORPHAN,
*/
char status_c_;
- String name () const;
+
/*
IDEA: make this a global variable. This is the same for all
scores being formatted multithreadedly.
*/
Paper_score *pscore_l_;
+ Dimension_cache dim_cache_[NO_AXES];
Grob (SCM basic_props);
Grob (Grob const&);
-
+ String name () const;
+
/*
properties
*/
SCM internal_get_grob_property (SCM) const;
void internal_set_grob_property (SCM, SCM val);
-#if 0
- void set_immutable_grob_property (const char * , SCM val);
- void set_immutable_grob_property (SCM key, SCM val);
-#endif
-
- void warning (String);
+ void warning (String)const;
+ void programming_error (String)const;
void set_elt_pointer (const char*, SCM val);
friend class Property_engraver; // UGHUGHUGH.
#funcptr# is the function to call to update this element.
*/
void calculate_dependencies (int final, int busy, SCM funcname);
- static SCM handle_broken_grobs(SCM, SCM criterion);
+
virtual void do_break_processing ();
virtual Grob *find_broken_piece (System*) const;
DECLARE_SCHEME_CALLBACK (point_dimension_callback, (SCM smob, SCM axis));
DECLARE_SCHEME_CALLBACK (molecule_extent, (SCM smob, SCM axis));
-
static SCM ly_set_grob_property (SCM, SCM,SCM);
static SCM ly_get_grob_property (SCM, SCM);
virtual void handle_broken_dependencies ();
virtual void handle_prebroken_dependencies ();
-
DECLARE_SMOBS (Grob,foo);
void init ();
-
- Dimension_cache dim_cache_[NO_AXES];
-
public:
-
bool empty_b (Axis a) const;
Interval extent (Grob * refpoint, Axis) const;
- /**
- translate in one direction
- */
-
void translate_axis (Real, Axis);
-
- /**
- Find the offset relative to D. If D equals THIS, then it is 0.
- Otherwise, it recursively defd as
-
- OFFSET_ + PARENT_L_->relative_coordinate (D)
- */
Real relative_coordinate (Grob const* refp, Axis) const;
- /**
- Find the group-element which has both #this# and #s#
- */
Grob*common_refpoint (Grob const* s, Axis a) const;
void add_offset_callback (SCM callback, Axis);
bool has_extent_callback_b (SCM, Axis)const;
void set_extent (SCM , Axis);
-
-
- /**
- Invoke callbacks to get offset relative to parent.
- */
Real get_offset (Axis a) const;
- /**
- Set the parent refpoint of THIS to E
- */
+
void set_parent (Grob* e, Axis);
Grob *get_parent (Axis a) const { return dim_cache_[a].parent_l_; }
Grob*common_refpoint_of_list (SCM elt_list, Grob * , Axis a);
Grob*common_refpoint_of_array (Link_array<Grob> const&, Grob * , Axis a);
+void set_break_subsititution (SCM criterion);
+SCM do_break_substitution (SCM);
+
#endif // STAFFELEM_HH