]> git.donarmstrong.com Git - lilypond.git/blob - lily/lyric-item.cc
1a54f12bcaa118bb62dd28b6cd7ece7caf676b2b
[lilypond.git] / lily / lyric-item.cc
1 #include "musical-request.hh"
2 #include "paper-def.hh"
3 #include "lyric-item.hh"
4 #include "stem.hh"
5 #include "molecule.hh"
6 #include "lookup.hh"
7 #include "text-def.hh"
8 #include "source-file.hh"
9 #include "source.hh"
10 #include "debug.hh"
11
12 Lyric_item::Lyric_item(Lyric_req* lreq_l, int voice_count_i)
13     : Text_item(lreq_l,0)
14 {
15     pos_i_ = -voice_count_i * 4 ;       // 4 fontsize dependant. TODO
16     dir_i_ = -1;
17 }
18
19 void
20 Lyric_item::do_pre_processing()
21 {
22
23     // test context-error
24     if ( tdef_l()->text_str_.index_i( "Gates" ) >=0)// :-)
25         warning( "foul word", tdef_l()->defined_ch_C_ );
26 }