source file of the GNU LilyPond music typesetter
- (c) 1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "molecule.hh"
-#include "boxes.hh"
+#include "box.hh"
#include "text-spanner.hh"
#include "text-def.hh"
#include "debug.hh"
}
-IMPLEMENT_IS_TYPE_B1(Text_spanner,Spanner);
+
void
Text_spanner::do_print() const
}
Molecule*
-Text_spanner::brew_molecule_p() const
+Text_spanner::do_brew_molecule_p() const
{
Atom tsym (spec_p_->get_atom (paper(),CENTER));
tsym.translate (text_off_);
Molecule*output = new Molecule;
- output->add (tsym);
+ output->add_atom (tsym);
return output;
}
Interval
Text_spanner::height() const
{
- return brew_molecule_p()->extent ().y ();
+ return do_brew_molecule_p()->extent ().y ();
}
void
-Text_spanner::do_substitute_dependency (Score_elem* o, Score_elem*n)
+Text_spanner::do_substitute_dependency (Score_element* o, Score_element*n)
{
if (support_span_l_ == o)
- support_span_l_ = (Directional_spanner*) (n?n->spanner():0);
+ support_span_l_ = (Directional_spanner*) (n?dynamic_cast <Spanner *> (n):0);
}