2 ps-score.cc -- implement Ps_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "file-results.hh"
13 #include "paper-def.hh"
14 #include "ps-stream.hh"
15 #include "ps-outputter.hh"
16 #include "ps-score.hh"
19 Ps_score::paper_outputter_p (Paper_stream* os_p) const
22 *os_p << header_global_p->ps_string ();
24 *os_p << _ ("\n% outputting Score, defined at: ") << origin_str_ << '\n';
27 *os_p << header_l_->ps_string ();
28 *os_p << paper_l_->output_settings_str ();
30 if (experimental_features_global_b)
31 *os_p << "turnOnExperimentalFeatures\n";
33 return new Ps_outputter (os_p);
37 Ps_score::paper_stream_p () const
39 String outname = base_output_str ();
43 *mlog << _f ("PostScript output to %s...",
44 outname == "-" ? String ("<stdout>") : outname ) << endl;
45 target_str_global_array.push (outname);
46 return new Ps_stream (outname);