]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/break-algorithm.hh
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / include / break-algorithm.hh
1 /*
2   break-algorithm.hh -- declare Break_algorithm
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1996--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef BREAK_HH
10 #define BREAK_HH
11
12 #include "interval.hh"
13 #include "column-x-positions.hh"
14
15 /** Class representation of an algorithm which decides where to put
16     the column, and where to break lines.
17
18     JUNKME.
19 */
20 class Break_algorithm
21 {
22 protected:
23   Paper_score *pscore_;
24   Real linewidth_;
25
26   void solve_line (Column_x_positions *) const;
27   bool feasible (vector<Grob*> const &) const;
28
29 public:
30   virtual ~Break_algorithm ();
31   Simple_spacer *(*get_line_spacer) ();
32   Break_algorithm ();
33   void set_pscore (Paper_score *);
34   virtual vector<Column_x_positions> solve ();
35 };
36
37 #endif // BREAK_HH
38