lilypond-0.1.16
[lilypond.git] / lily / col-info.cc
blob086b7c7e3e9492a9db256872c6f4ab931755a695
1 /*
2 col-info.cc -- implement Colinfo
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "p-col.hh"
10 #include "col-info.hh"
11 #include "debug.hh"
13 void
14 Colinfo::print() const
16 #ifndef NPRINT
17 DOUT << "column { ";
18 if (fixed())
19 DOUT << "fixed at " << fixed_position()<<", ";
20 assert (pcol_l_);
21 DOUT << "[" << minleft() << ", " << minright () << "]";
22 DOUT <<"}\n";
23 #endif
26 Colinfo::Colinfo (Paper_column *col_l, Real const *fixed_C)
28 if (fixed_C)
29 fixpos_p_.set_l (fixed_C);
30 ugh_b_ = false;
31 pcol_l_ = col_l;
32 width = pcol_l_->width();
33 if (width.empty_b())
34 width = Interval(0,0);
38 Colinfo::Colinfo()
40 ugh_b_ = false;
41 pcol_l_ =0;