-Molecule*
-Extender_spanner::do_brew_molecule_p () const
+Molecule
+Extender_spanner::do_brew_molecule () const
{
- Molecule* mol_p = new Molecule;
+ Molecule mol;
Real w = spanner_length ();
Molecule a = lookup_l ()->filledbox ( Box (Interval (0,w), Interval (0,h)));
a.translate (Offset (dx_f_drul_[LEFT], 0));
- mol_p->add_molecule (a);
+ mol.add_molecule (a);
- return mol_p;
+ return mol;
}
void
-Extender_spanner::do_post_processing ()
+Extender_spanner::after_line_breaking ()
{
// UGH
Real gap = paper_l ()->get_var ("interline");
Direction d = LEFT;
do
{
- Item* t = spanned_drul_[d]
- ? spanned_drul_[d] : spanned_drul_[(Direction)-d];
+ Item* t = get_bound (d)
+ ? get_bound (d) : get_bound ((Direction)-d);
if (d == LEFT)
dx_f_drul_[d] += t->extent (X_AXIS).length ();
else
void
Extender_spanner::set_textitem (Direction d, Item* textitem_l)
{
- set_bounds (d, textitem_l);
+ set_bound (d, textitem_l);
add_dependency (textitem_l);
}