]> git.donarmstrong.com Git - lilypond.git/blob - src/spanner.cc
release: 0.0.9
[lilypond.git] / src / spanner.cc
1 #include "pstaff.hh"
2 #include "debug.hh"
3 #include "pscore.hh"
4 #include "spanner.hh"
5 #include "symbol.hh"
6 #include "molecule.hh"
7 #include "pcol.hh"
8
9 String
10 Spanner::TeXstring() const
11 {
12     
13     assert(output);
14     return output->TeXstring();
15 }
16
17 Spanner::Spanner()
18 {
19     pstaff_=0;
20     left = right = 0;
21 }
22
23 void
24 Spanner::process()
25 {
26 }
27
28 void
29 Spanner::preprocess()
30 {
31 }
32
33 Interval
34 Spanner::width()const
35 {
36     return Interval(0,right->hpos - left->hpos);
37 }
38
39 Paperdef*
40 Spanner::paper()const
41 {
42     assert(pstaff_);
43     return pstaff_->pscore_->paper_;
44 }
45 void
46 Spanner::print()const
47 {
48 #ifndef NPRINT
49     mtor << "Spanner { Output ";
50     output->print();
51     
52     mtor << "}\n";
53 #endif
54 }