bool
Lyric_engraver::do_try_request (Request*r)
{
- Musical_req * m =r->access_Musical_req ();
- if (!m || ! m->access_Lyric_req ())
- return false;
- lreq_l_ = m->access_Lyric_req ();
-
- return true;
+ if (Lyric_req * lr = dynamic_cast <Lyric_req *> (r))
+ {
+ lreq_l_ = lr;
+ return true;
+ }
+ return false;
}
void
{
td_p->style_str_ = style;
}
+ Scalar alignment = get_property ("textalignment");
+ if (alignment.isnum_b())
+ {
+ td_p->align_dir_= (Direction)(int)alignment;
+ }
lyric_item_p_ = new Text_item (td_p);