From: fred Date: Sat, 2 Nov 1996 00:45:58 +0000 (+0000) Subject: lilypond-0.0.6 X-Git-Tag: release/1.5.59~6959 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3b9319b8a0dd7abd21c86a6ea5d75dca3a9c071d;p=lilypond.git lilypond-0.0.6 --- diff --git a/paper.cc b/paper.cc index 5afee7d56f..6e5e87bda8 100644 --- a/paper.cc +++ b/paper.cc @@ -1,8 +1,57 @@ #include "paper.hh" +#include "debug.hh" +#include "lookupsyms.hh" #include "dimen.hh" +#include "textdb.hh" Paperdef::Paperdef() { - width = convert_dimen(15,"cm"); // in cm for now - whole_width= convert_dimen(5,"cm"); + linewidth = convert_dimen(15,"cm"); // in cm for now + whole_width= convert_dimen(2,"cm"); + lookup_ = new Lookup(); + parse(); + +} + +void +Paperdef::parse() +{ + Text_db symini("symbol.ini"); + + + while (!symini.eof()) { + + Text_record r( symini++); + + if (r[0] == "symboltables") + lookup_->parse(symini); + } +} + +Paperdef::~Paperdef() +{ + delete lookup_; +} + +Real +Paperdef::interline() const +{ + return lookup_->ball(4).dim.y.length(); +} + +Real +Paperdef::standard_height() const +{ + return convert_dimen(20,"pt"); +} + +void +Paperdef::print() const +{ +#ifndef NPRINT + mtor << "Paper {width: " << print_dimen(linewidth); + mtor << "whole: " << print_dimen(whole_width); + mtor << "out: " <