From 3f7898c97421c9617c0b352ca8b0f23bf82d38ef Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Wed, 28 May 2008 15:24:23 +0000 Subject: Bugzilla 37579: added support for footnotes in lists and table bodies (not header nor footer). This is /not/ to be considered a final fix: similar code is duplicated over several classes (LineLayoutManager, ListItemLayoutManager and to less extent TableStepper). Footnotes should probably be handled another way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@660979 13f79535-47bb-0310-9956-ffa450edef68 --- test/layoutengine/disabled-testcases.xml | 18 -- .../standard-testcases/footnote_in_list.xml | 2 + .../standard-testcases/footnote_in_list_2.xml | 125 ++++++++++++++ .../standard-testcases/footnote_in_table.xml | 2 + .../standard-testcases/footnote_in_table_2.xml | 185 +++++++++++++++++++++ 5 files changed, 314 insertions(+), 18 deletions(-) create mode 100644 test/layoutengine/standard-testcases/footnote_in_list_2.xml create mode 100644 test/layoutengine/standard-testcases/footnote_in_table_2.xml (limited to 'test/layoutengine') diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index 476db249e..ba985bf8d 100644 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -97,24 +97,6 @@ Space resolution does not work between footnote regions. - - Footnotes swallowed in lists - footnote_in_list.xml - Element lists for lists are created by combining the - element lists from list-item-label and list-item-body. The - footnotes contained in the KnuthBlockBoxes are not propagated to - the combined element list. - http://issues.apache.org/bugzilla/show_bug.cgi?id=37579 - - - Footnotes swallowed in tables - footnote_in_table.xml - Element lists for tables are created by combining the - element lists from the individual table-cells. The footnotes - contained in the KnuthBlockBoxes are not propagated to the combined - element list. - http://issues.apache.org/bugzilla/show_bug.cgi?id=37579 - NPE for table inside an inline inline_block_nested_3.xml diff --git a/test/layoutengine/standard-testcases/footnote_in_list.xml b/test/layoutengine/standard-testcases/footnote_in_list.xml index 13bfa2ba4..716f07fc8 100644 --- a/test/layoutengine/standard-testcases/footnote_in_list.xml +++ b/test/layoutengine/standard-testcases/footnote_in_list.xml @@ -65,5 +65,7 @@ + + diff --git a/test/layoutengine/standard-testcases/footnote_in_list_2.xml b/test/layoutengine/standard-testcases/footnote_in_list_2.xml new file mode 100644 index 000000000..a0e477d57 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_in_list_2.xml @@ -0,0 +1,125 @@ + + + + + +

+ This test checks footnotes as descendants of list-item-body elements. +

+
+ + + + + + + + + + Before the list. + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque + (1) + + + (1) First footnote from the list. + + hendrerit euismod velit. Nulla facilisi. Etiam et risus at neque ultrices + facilisis. Donec lectus est, nonummy quis, rhoncus bibendum, porta at, nisl + (2) + + + (2) Second footnote from the list. + + . + + + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque + (3) + + + (3) Third footnote from the list. + + hendrerit euismod velit. Nulla facilisi. Etiam et risus at neque ultrices + facilisis. Donec lectus est, nonummy quis, rhoncus bibendum, porta at, nisl + (4) + + + (4) Fourth footnote from the list. + + . + + + + + + + + + Before the list. + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing + elit. Pellentesque + (1) + + (1) First footnote from the list. + + hendrerit euismod velit. Nulla facilisi. Etiam et risus at neque ultrices + facilisis. Donec lectus est, nonummy quis, rhoncus bibendum, porta at, nisl + (2) + + (2) Second footnote from the list. + + . + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_in_table.xml b/test/layoutengine/standard-testcases/footnote_in_table.xml index 5011b48c6..d9e252ce6 100644 --- a/test/layoutengine/standard-testcases/footnote_in_table.xml +++ b/test/layoutengine/standard-testcases/footnote_in_table.xml @@ -69,5 +69,7 @@ + + diff --git a/test/layoutengine/standard-testcases/footnote_in_table_2.xml b/test/layoutengine/standard-testcases/footnote_in_table_2.xml new file mode 100644 index 000000000..f0514a889 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_in_table_2.xml @@ -0,0 +1,185 @@ + + + + + +

+ This test checks footnotes as descendants of table-body elements. +

+
+ + + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + (2) + + (2) Second footnote from the table. + + + Cell 1.1 + + + Cell 1.2 + Cell 1.2 + (1) + + (1) First footnote from the table. + + . + + + + + + Cell + (3) + + (3) Third footnote from the table. + + 2.2 + + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + (2) + + (2) Second footnote from the table. + + + Cell 1.1 + + + Cell 1.2 + Cell 1.2 + (1) + + (1) First footnote from the table. + + . + + + + + + Cell + (3) + + (3) Third footnote from the table. + + 2.2 + + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + (2) + + (2) Second footnote from the table. + + + Cell 1.1 + + + Cell 1.2 + Cell 1.2 + (1) + + (1) First footnote from the table. + + . + + + + + + Cell + (3) + + (3) Third footnote from the table. + + 2.2 + + + + + + + + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3