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--2011 Joe Neeman <joeneeman@gmail.com> | 4 Copyright (C) 2009--2011 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 if (Grob *g = unsmob_grob (scm_car (s))) | 199 if (Grob *g = unsmob_grob (scm_car (s))) |
200 { | 200 { |
201 System *sys = dynamic_cast<System *> (g); | 201 System *sys = dynamic_cast<System *> (g); |
202 if (!sys) | 202 if (!sys) |
203 { | 203 { |
204 programming_error ("got a grob for footnotes that wasn't a System"
); | 204 programming_error ("got a grob for footnotes that wasn't a System"
); |
205 continue; | 205 continue; |
206 } | 206 } |
207 Stencil mol; | 207 Stencil mol; |
208 Stencil in_note_mol; | 208 Stencil in_note_mol; |
209 for (vsize i = 0; i < sys->footnote_grobs ()->size (); i++) | 209 extract_grob_set (sys, "footnotes-after-line-breaking", footnote_grobs
); |
| 210 for (vsize i = 0; i < footnote_grobs.size (); i++) |
210 { | 211 { |
211 Grob *footnote = sys->footnote_grobs ()->at (i); | 212 Grob *footnote = footnote_grobs[i]; |
212 SCM footnote_markup = footnote->get_property ("footnote-text"); | 213 SCM footnote_markup = footnote->get_property ("footnote-text"); |
213 if (Spanner *orig = dynamic_cast<Spanner *>(footnote)) | 214 if (Spanner *orig = dynamic_cast<Spanner *>(footnote)) |
214 if (orig->is_broken ()) | 215 if (orig->is_broken ()) |
215 footnote_markup = orig->broken_intos_[0]->get_property ("footn
ote-text"); | 216 footnote_markup = orig->broken_intos_[0]->get_property ("footn
ote-text"); |
216 | 217 |
217 SCM props = scm_call_1 (ly_lily_module_constant ("layout-extract-p
age-properties"), | 218 SCM props = scm_call_1 (ly_lily_module_constant ("layout-extract-p
age-properties"), |
218 paper->self_scm ()); | 219 paper->self_scm ()); |
219 | 220 |
220 SCM footnote_stl = Text_interface::interpret_markup (paper->self_s
cm (), | 221 SCM footnote_stl = Text_interface::interpret_markup (paper->self_s
cm (), |
221 props, footno
te_markup); | 222 props, footno
te_markup); |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 { | 1155 { |
1155 if (Hara_kiri_group_spanner::has_interface (input[i])) | 1156 if (Hara_kiri_group_spanner::has_interface (input[i])) |
1156 Hara_kiri_group_spanner::consider_suicide (input[i]); | 1157 Hara_kiri_group_spanner::consider_suicide (input[i]); |
1157 | 1158 |
1158 if (input[i]->is_live ()) | 1159 if (input[i]->is_live ()) |
1159 output.push_back (input[i]); | 1160 output.push_back (input[i]); |
1160 } | 1161 } |
1161 | 1162 |
1162 return output; | 1163 return output; |
1163 } | 1164 } |
OLD | NEW |