do calculations for breaking problem
*/
-
+#include "paper.hh"
#include "linespace.hh"
#include "debug.hh"
#include "line.hh"
sp.add_column(curline[0], true, 0.0);
for (int i=1; i< curline.sz()-1; i++)
sp.add_column(curline[i]);
- sp.add_column(curline.last(), true, linewidth);
+ sp.add_column(curline.last(), true, paper_->linewidth);
// misschien moeven uit Spacing_problem?
for (PCursor<Idealspacing *> i(suz); i.ok(); i++) {
#include "line.hh"
#include "dimen.hh"
#include "symbol.hh"
+#include "paper.hh"
#include "pcol.hh"
#include "pscore.hh"
// the staff itself: eg lines, accolades
s += "\\hbox{";
{
- Symbol sym = pstaff_->get_stafsym(scor->score->linewidth);
+ Symbol sym = pstaff_->get_stafsym(scor->score->paper_->linewidth);
s+=sym.tex;
PCursor<const PCol *> cc(scor->cols);
Real lastpos=cc->hpos;
{
Interval y;
{
- Symbol s = pstaff_->stafsym->eval(scor->score->linewidth);
+ Symbol s = pstaff_->stafsym->eval(scor->score->paper_->linewidth);
y = s.dim.y;
}
PCursor<const PCol *> cc(scor->cols);
// utility functions for PScore
#include "debug.hh"
+#include "paper.hh"
#include "molecule.hh"
#include "dimen.hh"
#include "line.hh"
cols.bottom().add(p);
}
-PScore::PScore()
+PScore::PScore( Paperdef*p)
{
- linewidth = convert_dimen(15,"cm"); // default
+ paper_ = p;
}
void
PScore::output(Tex_stream &ts)
{
int l=1;
- ts << "% linewidth " << print_dimen(linewidth )+"\n";
+
for (PCursor<Line_of_score*> lic(lines); lic.ok(); lic++) {
ts << "% line of score no. " << l++ <<"\n";
ts << lic->TeXstring();
ic->OK();
#endif
}
+
void
PScore::print() const
{
#ifndef NPRINT
- mtor << "PScore { width "<<print_dimen(linewidth);
+ mtor << "PScore { paper ";
+ paper_->print();
mtor << "\ncolumns: ";
for (PCursor<PCol*> cc(cols); cc.ok(); cc++)
cc->print();