*/
class Score_element {
+ /**
+ The lookup, determined by the font size. Cache this value.
+ */
+ Lookup * lookup_l_;
+public:
/**
properties specific for this element. Destructor will not call
scm_unprotect, so as to allow more flexible GC arrangements. The
*/
SCM element_property_alist_;
- Link_array<Score_element> dependency_arr_;
- /**
- The lookup, determined by the font size. Cache this value.
- */
- Lookup * lookup_l_;
-public:
+
Score_element *original_l_;
/**
int status_i_;
Paper_score *pscore_l_;
- Molecule * output_p_;
+
Score_element ();
Score_element (Score_element const&);
virtual void print () const;
*/
SCM get_elt_property (String nm) const;
void set_elt_property (String, SCM val);
+
+ /**
+ UGH! JUNKME ?
+
+ This gets messy because it changes state
+
+ calling
+
+ Bar::proc ()
+ {
+ s->remove_elt_property ("foo")
+ }
+
+ twice may do weird things if Bar::foo has a default set.
+
+ */
SCM remove_elt_property (String nm);
+ void Score_element::set_real (String, Real);
+ Real Score_element::get_real (String s) const;
+
/*
related classes.
*/
static SCM handle_broken_smobs (SCM, SCM criterion);
void recurse_into_smobs (SCM s, void (Score_element::*meth_ptr)());
-
+ virtual void do_break_processing ();
virtual Score_element *find_broken_piece (Line_of_score*) const;
protected:
be handled by GUILE gc. */
virtual ~Score_element ();
- Score_element* dependency (int) const;
- int dependency_size () const;
-
virtual void output_processing ();
static Interval molecule_extent (Dimension_cache const*);
/// do printing of derived info.
virtual void do_print () const;
/// generate the molecule
- virtual Molecule* do_brew_molecule_p () const;
+ virtual Molecule do_brew_molecule () const;
///executed directly after the item is added to the Paper_score
virtual void do_add_processing ();
/// do calculations before determining horizontal spacing
- virtual void do_pre_processing ();
+ virtual void before_line_breaking ();
/// generate rods & springs
virtual void do_space_processing ();
virtual void do_breakable_col_processing ();
/// do calculations after determining horizontal spacing
- virtual void do_post_processing ();
+ virtual void after_line_breaking ();
- virtual void do_break_processing ();
-
virtual Link_array<Score_element> get_extra_dependencies () const;
static Interval dim_cache_callback (Dimension_cache const*);
public:
+ static SCM ly_set_elt_property (SCM, SCM,SCM);
+ static SCM ly_get_elt_property (SCM, SCM);
+
virtual void handle_broken_dependencies ();
virtual void handle_prebroken_dependencies ();
*/
void set_empty (Axis a);
bool empty_b (Axis a) const;
- void invalidate_cache (Axis);
Interval extent (Axis) const;
/**