lilypond-0.1.56
[lilypond.git] / src / textdef.cc
blobd4e9824d1ba313cdbc822a0332b744ea9b09648c
1 #include "debug.hh"
2 #include "lookup.hh"
3 #include "paperdef.hh"
4 #include "molecule.hh"
5 #include "textdef.hh"
7 Text_def::Text_def()
8 {
9 align_i_ = 1; // right
10 style_str_ = "roman";
11 defined_ch_c_l_ = 0;
13 bool
14 Text_def::compare(const Text_def&def)
16 return align_i_ == def.align_i_ && text_str_ == def.text_str_
17 && style_str_ == def.style_str_;
20 Atom
21 Text_def::create_atom(Paperdef*p) const
23 return p->lookup_p_->text(style_str_, text_str_, -align_i_);
26 void
27 Text_def::print() const
29 mtor << "Text `" << text_str_ << "\', style " <<
30 style_str_ << "align " << align_i_ << '\n';