X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Foutput-def.hh;h=8c188f2707872e0d8ea62bf8d5d71e41fca0b6bc;hb=3af0951f9a11677240efa6228683dd4fcea13eaf;hp=8b4dfe943f216cb3c37f2e5c9665ddbe69e250a9;hpb=b37e3f652677ae0298423db9fa0e552e5fce0c92;p=lilypond.git diff --git a/lily/include/output-def.hh b/lily/include/output-def.hh index 8b4dfe943f..8c188f2707 100644 --- a/lily/include/output-def.hh +++ b/lily/include/output-def.hh @@ -1,15 +1,25 @@ /* - music-output-def.hh -- declare Output_def + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2015 Han-Wen Nienhuys - (c) 1997--2006 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ -#ifndef MUSIC_OUTPUT_DEF_HH -#define MUSIC_OUTPUT_DEF_HH +#ifndef OUTPUT_DEF_HH +#define OUTPUT_DEF_HH -#include "std-string.hh" #include "lily-proto.hh" #include "virtual-methods.hh" #include "smobs.hh" @@ -36,53 +46,49 @@ one coming from score at markup level) */ -class Output_def +class Output_def : public Smob { - public: + int print_smob (SCM, scm_print_state *) const; + SCM mark_smob () const; + static const char * const type_p_name_; + virtual ~Output_def (); VIRTUAL_COPY_CONSTRUCTOR (Output_def, Output_def); - DECLARE_SMOBS (Output_def, ); -public: + SCM scope_; Output_def *parent_; Input input_origin_; - std::string user_key_; - Lily_parser *parser_; - Lily_parser *get_parser () const; - Output_def (Output_def const&); Output_def (); /* variables. */ - SCM c_variable (std::string id) const; + SCM c_variable (const string &id) const; SCM lookup_variable (SCM sym) const; void set_variable (SCM sym, SCM val); + void normalize (); Real get_dimension (SCM symbol) const; }; SCM get_font_table (Output_def *def); void assign_context_def (Output_def *m, SCM transdef); SCM find_context_def (Output_def const *m, SCM name); -int get_tempo (Output_def*def, Moment moment); -void set_tempo (Output_def*def, Moment moment, int count_per_minute_i); - -Interval line_dimensions_int (Output_def*def, int); +Interval line_dimensions_int (Output_def *def, int); Font_metric *select_encoded_font (Output_def *layout, SCM chain); Font_metric *select_font (Output_def *layout, SCM chain); -DECLARE_UNSMOB (Output_def, output_def); Font_metric* find_pango_font (Output_def *layout, SCM descr, Real factor); -Font_metric *find_scaled_font (Output_def *od, Font_metric *f, Real magnification); +Font_metric *find_scaled_font (Output_def *od, Font_metric *f, + Real magnification); Output_def *scale_output_def (Output_def *def, Real scale); Real output_scale (Output_def*); -#endif /* MUSIC_OUTPUT_DEF_HH */ +#endif /* OUTPUT_DEF_HH */