2 lyric-engraver.cc -- implement Lyric_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "lyric-engraver.hh"
10 #include "musical-request.hh"
11 #include "text-item.hh"
12 #include "paper-def.hh"
14 #include "paper-def.hh"
16 Lyric_engraver::Lyric_engraver()
23 Lyric_engraver::do_try_request (Request*r)
25 Musical_req * m =r->musical();
26 if (!m || ! m->lreq_l())
28 lreq_l_ = m->lreq_l();
34 Lyric_engraver::do_process_requests()
38 lyric_item_p_ = new Text_item (lreq_l_->tdef_p_);
40 lyric_item_p_->translate_axis (paper()->note_width ()/2 , X_AXIS);
41 lyric_item_p_->dir_ = DOWN;
42 lyric_item_p_->fat_b_ = true;
43 announce_element (Score_elem_info (lyric_item_p_, lreq_l_));
48 Lyric_engraver::do_post_move_processing()
54 Lyric_engraver::do_pre_move_processing()
58 typeset_element (lyric_item_p_);
64 IMPLEMENT_IS_TYPE_B1(Lyric_engraver,Engraver);
65 ADD_THIS_TRANSLATOR(Lyric_engraver);