OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2006--2015 Joe Neeman <joeneeman@gmail.com> | 4 Copyright (C) 2006--2015 Joe Neeman <joeneeman@gmail.com> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void set_current_breakpoints (vsize start, | 154 void set_current_breakpoints (vsize start, |
155 vsize end, | 155 vsize end, |
156 vsize system_count, | 156 vsize system_count, |
157 Line_division lower_bound = Line_division (), | 157 Line_division lower_bound = Line_division (), |
158 Line_division upper_bound = Line_division ()); | 158 Line_division upper_bound = Line_division ()); |
159 void set_to_ideal_line_configuration (vsize start, vsize end); | 159 void set_to_ideal_line_configuration (vsize start, vsize end); |
160 | 160 |
161 vsize current_configuration_count () const; | 161 vsize current_configuration_count () const; |
162 Line_division current_configuration (vsize configuration_index) const; | 162 Line_division current_configuration (vsize configuration_index) const; |
163 Page_spacing_result space_systems_on_n_pages (vsize configuration_index, | 163 Page_spacing_result space_systems_on_n_pages (vsize configuration_index, |
164 vsize n, vsize first_page_num); | 164 vsize n, int first_page_num); |
165 Page_spacing_result space_systems_on_n_or_one_more_pages (vsize configuration_
index, vsize n, | 165 Page_spacing_result space_systems_on_n_or_one_more_pages (vsize configuration_
index, vsize n, |
166 vsize first_page_num
, | 166 int first_page_num, |
167 Real penalty_for_few
er_pages); | 167 Real penalty_for_few
er_pages); |
168 Page_spacing_result space_systems_on_best_pages (vsize configuration_index, | 168 Page_spacing_result space_systems_on_best_pages (vsize configuration_index, |
169 vsize first_page_num); | 169 int first_page_num); |
170 Page_spacing_result space_systems_with_fixed_number_per_page (vsize configurat
ion_index, | 170 Page_spacing_result space_systems_with_fixed_number_per_page (vsize configurat
ion_index, |
171 vsize first_page_num); | 171 int first_page_num); |
172 Page_spacing_result pack_systems_on_least_pages (vsize configuration_index, | 172 Page_spacing_result pack_systems_on_least_pages (vsize configuration_index, |
173 vsize first_page_num); | 173 int first_page_num); |
174 vsize min_page_count (vsize configuration_index, vsize first_page_num); | 174 vsize min_page_count (vsize configuration_index, int first_page_num); |
175 bool all_lines_stretched (vsize configuration_index); | 175 bool all_lines_stretched (vsize configuration_index); |
176 Real blank_page_penalty () const; | 176 Real blank_page_penalty () const; |
177 | 177 |
178 SCM breakpoint_property (vsize breakpoint, char const *str); | 178 SCM breakpoint_property (vsize breakpoint, char const *str); |
179 | 179 |
180 vsize last_break_position () const; | 180 vsize last_break_position () const; |
181 | 181 |
182 vector<System_spec> system_specs_; | 182 vector<System_spec> system_specs_; |
183 private: | 183 private: |
184 vector<Break_position> breaks_; | 184 vector<Break_position> breaks_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 vsize *line_breaker_start, | 221 vsize *line_breaker_start, |
222 vsize *line_breaker_end); | 222 vsize *line_breaker_end); |
223 | 223 |
224 void line_divisions_rec (vsize system_count, | 224 void line_divisions_rec (vsize system_count, |
225 Line_division const &min, | 225 Line_division const &min, |
226 Line_division const &max, | 226 Line_division const &max, |
227 Line_division *cur); | 227 Line_division *cur); |
228 | 228 |
229 vector<Line_details> line_details (vsize start, vsize end, Line_division const
&div); | 229 vector<Line_details> line_details (vsize start, vsize end, Line_division const
&div); |
230 Page_spacing_result space_systems_on_1_page (vector<Line_details> const &lines
, Real page_height, bool ragged); | 230 Page_spacing_result space_systems_on_1_page (vector<Line_details> const &lines
, Real page_height, bool ragged); |
231 Page_spacing_result space_systems_on_2_pages (vsize configuration_index, vsize
first_page_num); | 231 Page_spacing_result space_systems_on_2_pages (vsize configuration_index, int f
irst_page_num); |
232 Page_spacing_result finalize_spacing_result (vsize configuration_index, Page_s
pacing_result); | 232 Page_spacing_result finalize_spacing_result (vsize configuration_index, Page_s
pacing_result); |
233 void create_system_list (); | 233 void create_system_list (); |
234 void find_chunks_and_breaks (Break_predicate, Prob_break_predicate); | 234 void find_chunks_and_breaks (Break_predicate, Prob_break_predicate); |
235 SCM make_page (int page_num, bool last) const; | 235 SCM make_page (int page_num, bool last) const; |
236 SCM get_page_configuration (SCM systems, int page_num, bool ragged, bool last)
; | 236 SCM get_page_configuration (SCM systems, int page_num, bool ragged, bool last)
; |
237 SCM draw_page (SCM systems, SCM config, int page_num, bool last); | 237 SCM draw_page (SCM systems, SCM config, int page_num, bool last); |
238 }; | 238 }; |
239 #endif /* PAGE_BREAKING_HH */ | 239 #endif /* PAGE_BREAKING_HH */ |
OLD | NEW |