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) 2009--2012 Joe Neeman <joeneeman@gmail.com> | 4 Copyright (C) 2009--2012 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 | 532 |
533 void | 533 void |
534 Page_layout_problem::set_footer_height (Real height) | 534 Page_layout_problem::set_footer_height (Real height) |
535 { | 535 { |
536 footer_height_ = height; | 536 footer_height_ = height; |
537 } | 537 } |
538 | 538 |
539 void | 539 void |
540 Page_layout_problem::append_system (System *sys, Spring const &spring, Real inde
nt, Real padding) | 540 Page_layout_problem::append_system (System *sys, Spring const &spring, Real inde
nt, Real padding) |
541 { | 541 { |
542 Grob *align = sys->get_vertical_alignment (); | 542 Grob *align = unsmob_grob (sys->get_object ("vertical-alignment")); |
543 if (!align) | 543 if (!align) |
544 return; | 544 return; |
545 | 545 |
546 align->set_property ("positioning-done", SCM_BOOL_T); | 546 align->set_property ("positioning-done", SCM_BOOL_T); |
547 | 547 |
548 extract_grob_set (align, "elements", all_elts); | 548 extract_grob_set (align, "elements", all_elts); |
549 vector<Grob *> elts = filter_dead_elements (all_elts); | 549 vector<Grob *> elts = filter_dead_elements (all_elts); |
550 vector<Real> minimum_offsets = Align_interface::get_minimum_translations_witho
ut_min_dist (align, elts, Y_AXIS); | 550 vector<Real> minimum_offsets = Align_interface::get_minimum_translations_witho
ut_min_dist (align, elts, Y_AXIS); |
551 vector<Real> minimum_offsets_with_min_dist = Align_interface::get_minimum_tran
slations (align, elts, Y_AXIS); | 551 vector<Real> minimum_offsets_with_min_dist = Align_interface::get_minimum_tran
slations (align, elts, Y_AXIS); |
552 | 552 |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 { | 1234 { |
1235 if (Hara_kiri_group_spanner::has_interface (input[i])) | 1235 if (Hara_kiri_group_spanner::has_interface (input[i])) |
1236 Hara_kiri_group_spanner::consider_suicide (input[i]); | 1236 Hara_kiri_group_spanner::consider_suicide (input[i]); |
1237 | 1237 |
1238 if (input[i]->is_live ()) | 1238 if (input[i]->is_live ()) |
1239 output.push_back (input[i]); | 1239 output.push_back (input[i]); |
1240 } | 1240 } |
1241 | 1241 |
1242 return output; | 1242 return output; |
1243 } | 1243 } |
OLD | NEW |