]> git.donarmstrong.com Git - lilypond.git/blob - src/text-def.cc
partial: 0.0.39-1.jcn
[lilypond.git] / src / text-def.cc
1 #include "debug.hh"
2 #include "lookup.hh"
3 #include "paper-def.hh"
4 #include "molecule.hh"
5 #include "text-def.hh"
6
7 Text_def::Text_def()
8 {   
9     align_i_ = 1;                       // right
10     style_str_ = "roman";
11     defined_ch_c_l_ = 0;
12 }
13 bool
14 Text_def::compare(const Text_def&def)
15 {
16     return align_i_ == def.align_i_ && text_str_ == def.text_str_
17         && style_str_ == def.style_str_;
18 }
19
20 Atom
21 Text_def::create_atom(Paper_def*p) const
22 {
23     return p->lookup_p_->text(style_str_, text_str_, -align_i_);
24 }
25
26 void
27 Text_def::print() const
28 {
29     mtor << "Text `" << text_str_ << "\', style " <<
30         style_str_ << "align " << align_i_ << '\n';
31 }