X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbreak-algorithm.hh;h=570307b1ec2bb681bd44960741636aeba2a7920a;hb=eeb0e852589b3e90623ee589e0b6dfd2535d0688;hp=c91a00bdafa03b83d838b2305506db7d5c464391;hpb=d8691dd2c4cf8e365c544e535a6c6d08aa231c8d;p=lilypond.git diff --git a/lily/include/break-algorithm.hh b/lily/include/break-algorithm.hh index c91a00bdaf..570307b1ec 100644 --- a/lily/include/break-algorithm.hh +++ b/lily/include/break-algorithm.hh @@ -3,16 +3,14 @@ source file of the GNU LilyPond music typesetter - (c) 1996--2001 Han-Wen Nienhuys + (c) 1996--2004 Han-Wen Nienhuys */ #ifndef BREAK_HH #define BREAK_HH -#include "array.hh" #include "interval.hh" -#include "lily-proto.hh" #include "column-x-positions.hh" @@ -24,31 +22,22 @@ */ class Break_algorithm { protected: - Paper_score *pscore_l_; - Real linewidth_f_; + Paper_score *pscore_; + Real linewidth_; - /// search all pcols which are breakable. Link_array find_breaks () const; - Array find_break_indices () const; - - - /// helper: solve for the columns in #curline#. void solve_line (Column_x_positions*) const; + bool feasible (Link_array const &) const; - /// does curline fit on the paper? - bool feasible (Link_array) const; - + Simple_spacer_wrapper* generate_spacing_problem (Link_array const &, Interval) const; - Simple_spacer* generate_spacing_problem (Link_array, Interval) const; - - virtual Array do_solve () const=0; + virtual Array do_solve () const = 0; public: Simple_spacer* (*get_line_spacer) (); Break_algorithm (); void set_pscore (Paper_score*); - Array solve () const; };