]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/paper-score.hh
Merge branch 'master' of ssh://jneem@git.sv.gnu.org/srv/git/lilypond into tmp
[lilypond.git] / lily / include / paper-score.hh
1 /*
2   paper-score.hh -- declare Paper_score
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1996--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef PAPER_SCORE_HH
10 #define PAPER_SCORE_HH
11
12 #include "column-x-positions.hh"
13 #include "music-output.hh"
14
15 /* LAYOUT output */
16 class Paper_score : public Music_output
17 {
18   Output_def *layout_;
19   System *system_;
20   SCM systems_;
21   SCM paper_systems_;
22
23   mutable vector<Grob*> cols_;
24   mutable vector<vsize> break_indices_;
25 public:
26   Paper_score (Output_def *);
27   
28   DECLARE_CLASSNAME(Paper_score);
29
30   Output_def *layout () const;
31   System *root_system () const;
32
33   void typeset_system (System *);
34   vector<Column_x_positions> calc_breaking ();
35   vector<vsize> find_break_indices () const;
36   vector<vsize> get_break_indices () const;
37   vector<Grob*> get_columns () const;
38   SCM get_paper_systems ();
39 protected:
40   virtual void process ();
41   virtual void derived_mark () const;
42
43 private:
44   Paper_score (Paper_score const &);
45 };
46
47 #endif /* PAPER_SCORE_HH */