2 ps-def.cc -- implement Ps_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "assoc-iter.hh"
11 #include "identifier.hh"
13 #include "ps-lookup.hh"
14 #include "ps-score.hh"
17 IMPLEMENT_IS_TYPE_B1 (Ps_def, Paper_def);
20 Ps_def::lookup_p (Lookup const& l) const
22 return new Ps_lookup (l);
26 Ps_def::lookup_p (Symtables const& s) const
28 return new Ps_lookup (s);
32 Ps_def::output_settings_str () const
35 for (Assoc_iter<String,Identifier*> i (*scope_p_); i.ok (); i++)
36 s += String ("/mudelapaper") + i.key ()
37 + "{" + i.val ()->str () + "} bind def\n";
38 s += *scope_p_->elem ("pssetting")->access_String ();
43 Ps_def::paper_score_p () const
45 return new Ps_score ();
49 Ps_def::unknown_str () const