summaryrefslogtreecommitdiff
path: root/lily/lyric-item.cc
blob: 318652393775c40f5e70089b2132af744b2f7469 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "musical-request.hh"
#include "paper-def.hh"
#include "lyric-item.hh"
#include "stem.hh"
#include "molecule.hh"
#include "lookup.hh"
#include "text-def.hh"
#include "source-file.hh"
#include "source.hh"
#include "debug.hh"

Lyric_item::Lyric_item(Lyric_req* lreq_l, int voice_count_i)
    : Text_item(lreq_l)
{
    pos_i_ = -voice_count_i * 4 ;	// 4 fontsize dependant. TODO
    dir_i_ = -1;
}

void
Lyric_item::do_pre_processing()
{

    // test context-error
    if ( tdef_l()->text_str_.index_i( "Gates" ) >=0)// :-)
    	tdef_l()->warning( "foul word");
}