![Jeremias Maerki](https://secure.gravatar.com/avatar/7e0393eaef26065d612909513ec19196?d=identicon) Merged revisions 636407-637074,637076-637118,637120-637790,637792-637856,637858-637992,637994-638047,638049-638307,638309-638315,638318-638936,638938-640888,640890-642905,642907-647402,647404-647536,647538-648983,648985-649005,649007-649013,649015-650549,650551-651301,651303-653536,653538-654452,654454-656285,656287-656523,656525-657519,657521-661579,661581-663481,663483-664691,664693-681285,681287-681290,681292-681298 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
........
r666635 | jeremias | 2008-06-11 14:18:53 +0200 (Mi, 11 Jun 2008) | 1 line
Fixed resolution handling inside AWT preview dialog.
........
r666662 | jeremias | 2008-06-11 15:33:20 +0200 (Mi, 11 Jun 2008) | 1 line
Some notes on RTF and print output.
........
r668533 | jeremias | 2008-06-17 09:57:55 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45151:
Note on the "compiling" page that Ant 1.7 is required. The README file already points to this page.
........
r668534 | jeremias | 2008-06-17 09:58:40 +0200 (Di, 17 Jun 2008) | 2 lines
Update known issues.
Remove ApacheConEU logo.
........
r668550 | jeremias | 2008-06-17 10:05:22 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45146:
Removed duplicate LICENSE.txt and Notice.txt from the JAR.
........
r668570 | jeremias | 2008-06-17 10:54:07 +0200 (Di, 17 Jun 2008) | 1 line
Wrong line number reported in the case of a line overflow.
........
r668641 | jeremias | 2008-06-17 14:59:25 +0200 (Di, 17 Jun 2008) | 1 line
Fixed potential NPE.
........
r669118 | jeremias | 2008-06-18 11:02:45 +0200 (Mi, 18 Jun 2008) | 4 lines
Bugzilla #44412:
Regression fix for empty pages caused by multiple collapsible breaks.
No more empty block areas if a break-before occurs on the first child of an FO to match the behaviour of tables and other FO implementations (clarification by XSL WG pending).
Added an accessor interface for break-before/-after to avoid long if..else lists in BlockStackingLayoutManager.
........
r669173 | jeremias | 2008-06-18 16:07:27 +0200 (Mi, 18 Jun 2008) | 7 lines
Bugzilla #44887:
Fixed potential multi-threading problem concerning the use of DecimalFormat.
Results from performance measurements in a separate test (operation repeated 100'000 times, exemplary):
shared static variable: ~220ms (old choice, problematic!)
always create new instance: ~480ms
ThreadLocal: ~220ms (new choice)
........
r669478 | jeremias | 2008-06-19 15:03:57 +0200 (Do, 19 Jun 2008) | 4 lines
Bugzilla #44412:
Improvements after Vincent's feedback:
Removal of the somewhat ugly Reference.
getBreakBefore() reduced to private visibility.
........
r670551 | jeremias | 2008-06-23 14:54:27 +0200 (Mo, 23 Jun 2008) | 3 lines
Use configured source and target resolution for foreign objects in RTF output.
Fixed intrinsic size calculation for SVG images when source resolution is not 72 dpi.
Fixed calculation of px2mm values in the SVG to G2D converter (used by RTF output).
........
r673750 | adelmelle | 2008-07-03 20:25:01 +0200 (Do, 03 Jul 2008) | 1 line
Fix for Bugzilla 45295 (already committed to the trunk with r672010, r672495 and r672496)
........
r674304 | jeremias | 2008-07-06 17:09:10 +0200 (So, 06 Jul 2008) | 18 lines
Bugzilla #43606:
column-width accepts percent values (proportional-column-width and % working)
Table width accepts percent values (100% of the page width as standard)
Nested tables are working
It is also possible to make nested tables with a higher depth than 3 without causing word to crash
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Patch simplified (reuse of ColumnSetup from the layoutmgr package)
- Percentages and proportional-column-width didn't work properly in my tests -> fixed
- Adjustments for FOP code conventions
Bugzilla #43824:
page-number-citation working but has to be refreshed inside word to show the correct values
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674314 | jeremias | 2008-07-06 18:40:08 +0200 (So, 06 Jul 2008) | 7 lines
Bugzilla #43825:
leader supports fixed percent values for leader-length, most other properties
use-content, leader-pattern-width not implemented
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674317 | jeremias | 2008-07-06 18:44:43 +0200 (So, 06 Jul 2008) | 1 line
Doc update after RTF changes.
........
r675106 | jeremias | 2008-07-09 09:03:46 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #45366:
Document missing feature.
........
r675150 | jeremias | 2008-07-09 14:56:41 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #39980:
Fixed image scaling for RTF output.
........
r675151 | jeremias | 2008-07-09 14:57:06 +0200 (Mi, 09 Jul 2008) | 1 line
Removed unused code.
........
r675152 | jeremias | 2008-07-09 14:58:18 +0200 (Mi, 09 Jul 2008) | 1 line
Don't generate commands for default values.
........
r675707 | jeremias | 2008-07-10 21:58:27 +0200 (Do, 10 Jul 2008) | 1 line
Bugfix: -imagein didn't work because the stylesheet didn't get copied into fop.jar.
........
r680715 | jeremias | 2008-07-29 16:37:10 +0200 (Di, 29 Jul 2008) | 1 line
Found a surplus "pop state" which somehow causes a regression (fill color doesn't get properly reset) between 0.94 and 0.95. Shows in Barcode4J's fop-extension-demo.fo. The line has already been there in 0.94 but only shows in 0.95 probably due to an additional save/restore state pair added in PDFRenderer for reference areas after the block-container area refactoring.
........
r680820 | jeremias | 2008-07-29 22:02:14 +0200 (Di, 29 Jul 2008) | 2 lines
Bugzilla #41306:
The AWT Renderer is really not out-of-order capable.
........
r681284 | jeremias | 2008-07-31 08:47:49 +0200 (Do, 31 Jul 2008) | 1 line
Some updates to status.xml (I was not the only one working on the final release).
........
r681290 | jeremias | 2008-07-31 09:44:51 +0200 (Do, 31 Jul 2008) | 2 lines
Website updates for the 0.95 release.
The projectInfo plug-in of Forrest is not ideal for doing a bugfix release. It's not possible to combine the changes for two releases.
........
r681292 | jeremias | 2008-07-31 09:47:13 +0200 (Do, 31 Jul 2008) | 1 line
Disabling the ApacheCon ad for the release build.
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@681307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago ![Jeremias Maerki](https://secure.gravatar.com/avatar/7e0393eaef26065d612909513ec19196?d=identicon) Merged revisions 636407-637074,637076-637118,637120-637790,637792-637856,637858-637992,637994-638047,638049-638307,638309-638315,638318-638936,638938-640888,640890-642905,642907-647402,647404-647536,647538-648983,648985-649005,649007-649013,649015-650549,650551-651301,651303-653536,653538-654452,654454-656285,656287-656523,656525-657519,657521-661579,661581-663481,663483-664691,664693-681285,681287-681290,681292-681298 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
........
r666635 | jeremias | 2008-06-11 14:18:53 +0200 (Mi, 11 Jun 2008) | 1 line
Fixed resolution handling inside AWT preview dialog.
........
r666662 | jeremias | 2008-06-11 15:33:20 +0200 (Mi, 11 Jun 2008) | 1 line
Some notes on RTF and print output.
........
r668533 | jeremias | 2008-06-17 09:57:55 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45151:
Note on the "compiling" page that Ant 1.7 is required. The README file already points to this page.
........
r668534 | jeremias | 2008-06-17 09:58:40 +0200 (Di, 17 Jun 2008) | 2 lines
Update known issues.
Remove ApacheConEU logo.
........
r668550 | jeremias | 2008-06-17 10:05:22 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45146:
Removed duplicate LICENSE.txt and Notice.txt from the JAR.
........
r668570 | jeremias | 2008-06-17 10:54:07 +0200 (Di, 17 Jun 2008) | 1 line
Wrong line number reported in the case of a line overflow.
........
r668641 | jeremias | 2008-06-17 14:59:25 +0200 (Di, 17 Jun 2008) | 1 line
Fixed potential NPE.
........
r669118 | jeremias | 2008-06-18 11:02:45 +0200 (Mi, 18 Jun 2008) | 4 lines
Bugzilla #44412:
Regression fix for empty pages caused by multiple collapsible breaks.
No more empty block areas if a break-before occurs on the first child of an FO to match the behaviour of tables and other FO implementations (clarification by XSL WG pending).
Added an accessor interface for break-before/-after to avoid long if..else lists in BlockStackingLayoutManager.
........
r669173 | jeremias | 2008-06-18 16:07:27 +0200 (Mi, 18 Jun 2008) | 7 lines
Bugzilla #44887:
Fixed potential multi-threading problem concerning the use of DecimalFormat.
Results from performance measurements in a separate test (operation repeated 100'000 times, exemplary):
shared static variable: ~220ms (old choice, problematic!)
always create new instance: ~480ms
ThreadLocal: ~220ms (new choice)
........
r669478 | jeremias | 2008-06-19 15:03:57 +0200 (Do, 19 Jun 2008) | 4 lines
Bugzilla #44412:
Improvements after Vincent's feedback:
Removal of the somewhat ugly Reference.
getBreakBefore() reduced to private visibility.
........
r670551 | jeremias | 2008-06-23 14:54:27 +0200 (Mo, 23 Jun 2008) | 3 lines
Use configured source and target resolution for foreign objects in RTF output.
Fixed intrinsic size calculation for SVG images when source resolution is not 72 dpi.
Fixed calculation of px2mm values in the SVG to G2D converter (used by RTF output).
........
r673750 | adelmelle | 2008-07-03 20:25:01 +0200 (Do, 03 Jul 2008) | 1 line
Fix for Bugzilla 45295 (already committed to the trunk with r672010, r672495 and r672496)
........
r674304 | jeremias | 2008-07-06 17:09:10 +0200 (So, 06 Jul 2008) | 18 lines
Bugzilla #43606:
column-width accepts percent values (proportional-column-width and % working)
Table width accepts percent values (100% of the page width as standard)
Nested tables are working
It is also possible to make nested tables with a higher depth than 3 without causing word to crash
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Patch simplified (reuse of ColumnSetup from the layoutmgr package)
- Percentages and proportional-column-width didn't work properly in my tests -> fixed
- Adjustments for FOP code conventions
Bugzilla #43824:
page-number-citation working but has to be refreshed inside word to show the correct values
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674314 | jeremias | 2008-07-06 18:40:08 +0200 (So, 06 Jul 2008) | 7 lines
Bugzilla #43825:
leader supports fixed percent values for leader-length, most other properties
use-content, leader-pattern-width not implemented
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674317 | jeremias | 2008-07-06 18:44:43 +0200 (So, 06 Jul 2008) | 1 line
Doc update after RTF changes.
........
r675106 | jeremias | 2008-07-09 09:03:46 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #45366:
Document missing feature.
........
r675150 | jeremias | 2008-07-09 14:56:41 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #39980:
Fixed image scaling for RTF output.
........
r675151 | jeremias | 2008-07-09 14:57:06 +0200 (Mi, 09 Jul 2008) | 1 line
Removed unused code.
........
r675152 | jeremias | 2008-07-09 14:58:18 +0200 (Mi, 09 Jul 2008) | 1 line
Don't generate commands for default values.
........
r675707 | jeremias | 2008-07-10 21:58:27 +0200 (Do, 10 Jul 2008) | 1 line
Bugfix: -imagein didn't work because the stylesheet didn't get copied into fop.jar.
........
r680715 | jeremias | 2008-07-29 16:37:10 +0200 (Di, 29 Jul 2008) | 1 line
Found a surplus "pop state" which somehow causes a regression (fill color doesn't get properly reset) between 0.94 and 0.95. Shows in Barcode4J's fop-extension-demo.fo. The line has already been there in 0.94 but only shows in 0.95 probably due to an additional save/restore state pair added in PDFRenderer for reference areas after the block-container area refactoring.
........
r680820 | jeremias | 2008-07-29 22:02:14 +0200 (Di, 29 Jul 2008) | 2 lines
Bugzilla #41306:
The AWT Renderer is really not out-of-order capable.
........
r681284 | jeremias | 2008-07-31 08:47:49 +0200 (Do, 31 Jul 2008) | 1 line
Some updates to status.xml (I was not the only one working on the final release).
........
r681290 | jeremias | 2008-07-31 09:44:51 +0200 (Do, 31 Jul 2008) | 2 lines
Website updates for the 0.95 release.
The projectInfo plug-in of Forrest is not ideal for doing a bugfix release. It's not possible to combine the changes for two releases.
........
r681292 | jeremias | 2008-07-31 09:47:13 +0200 (Do, 31 Jul 2008) | 1 line
Disabling the ApacheCon ad for the release build.
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@681307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago New line breaking algorithm, patch 29124, submitted by Luca
Furini. This patch implements the algorithm for most but not yet all
inline layout managers.
For the algorithm, see D.E. Knuth and M.F. Plass, "Breaking paragraphs
into lines", Software, Practice and Experience 11 (1981) 1119-1184;
reprinted in: D. E. Knuth, "Digital typography", CSLI Lecture Notes
Number 78 (CLSI Publications, Stanford, CA, USA) pp. 67-155.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197907 13f79535-47bb-0310-9956-ffa450edef68
20 years ago ![Jeremias Maerki](https://secure.gravatar.com/avatar/7e0393eaef26065d612909513ec19196?d=identicon) Merged revisions 636407-637074,637076-637118,637120-637790,637792-637856,637858-637992,637994-638047,638049-638307,638309-638315,638318-638936,638938-640888,640890-642905,642907-647402,647404-647536,647538-648983,648985-649005,649007-649013,649015-650549,650551-651301,651303-653536,653538-654452,654454-656285,656287-656523,656525-657519,657521-661579,661581-663481,663483-664691,664693-681285,681287-681290,681292-681298 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
........
r666635 | jeremias | 2008-06-11 14:18:53 +0200 (Mi, 11 Jun 2008) | 1 line
Fixed resolution handling inside AWT preview dialog.
........
r666662 | jeremias | 2008-06-11 15:33:20 +0200 (Mi, 11 Jun 2008) | 1 line
Some notes on RTF and print output.
........
r668533 | jeremias | 2008-06-17 09:57:55 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45151:
Note on the "compiling" page that Ant 1.7 is required. The README file already points to this page.
........
r668534 | jeremias | 2008-06-17 09:58:40 +0200 (Di, 17 Jun 2008) | 2 lines
Update known issues.
Remove ApacheConEU logo.
........
r668550 | jeremias | 2008-06-17 10:05:22 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45146:
Removed duplicate LICENSE.txt and Notice.txt from the JAR.
........
r668570 | jeremias | 2008-06-17 10:54:07 +0200 (Di, 17 Jun 2008) | 1 line
Wrong line number reported in the case of a line overflow.
........
r668641 | jeremias | 2008-06-17 14:59:25 +0200 (Di, 17 Jun 2008) | 1 line
Fixed potential NPE.
........
r669118 | jeremias | 2008-06-18 11:02:45 +0200 (Mi, 18 Jun 2008) | 4 lines
Bugzilla #44412:
Regression fix for empty pages caused by multiple collapsible breaks.
No more empty block areas if a break-before occurs on the first child of an FO to match the behaviour of tables and other FO implementations (clarification by XSL WG pending).
Added an accessor interface for break-before/-after to avoid long if..else lists in BlockStackingLayoutManager.
........
r669173 | jeremias | 2008-06-18 16:07:27 +0200 (Mi, 18 Jun 2008) | 7 lines
Bugzilla #44887:
Fixed potential multi-threading problem concerning the use of DecimalFormat.
Results from performance measurements in a separate test (operation repeated 100'000 times, exemplary):
shared static variable: ~220ms (old choice, problematic!)
always create new instance: ~480ms
ThreadLocal: ~220ms (new choice)
........
r669478 | jeremias | 2008-06-19 15:03:57 +0200 (Do, 19 Jun 2008) | 4 lines
Bugzilla #44412:
Improvements after Vincent's feedback:
Removal of the somewhat ugly Reference.
getBreakBefore() reduced to private visibility.
........
r670551 | jeremias | 2008-06-23 14:54:27 +0200 (Mo, 23 Jun 2008) | 3 lines
Use configured source and target resolution for foreign objects in RTF output.
Fixed intrinsic size calculation for SVG images when source resolution is not 72 dpi.
Fixed calculation of px2mm values in the SVG to G2D converter (used by RTF output).
........
r673750 | adelmelle | 2008-07-03 20:25:01 +0200 (Do, 03 Jul 2008) | 1 line
Fix for Bugzilla 45295 (already committed to the trunk with r672010, r672495 and r672496)
........
r674304 | jeremias | 2008-07-06 17:09:10 +0200 (So, 06 Jul 2008) | 18 lines
Bugzilla #43606:
column-width accepts percent values (proportional-column-width and % working)
Table width accepts percent values (100% of the page width as standard)
Nested tables are working
It is also possible to make nested tables with a higher depth than 3 without causing word to crash
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Patch simplified (reuse of ColumnSetup from the layoutmgr package)
- Percentages and proportional-column-width didn't work properly in my tests -> fixed
- Adjustments for FOP code conventions
Bugzilla #43824:
page-number-citation working but has to be refreshed inside word to show the correct values
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674314 | jeremias | 2008-07-06 18:40:08 +0200 (So, 06 Jul 2008) | 7 lines
Bugzilla #43825:
leader supports fixed percent values for leader-length, most other properties
use-content, leader-pattern-width not implemented
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674317 | jeremias | 2008-07-06 18:44:43 +0200 (So, 06 Jul 2008) | 1 line
Doc update after RTF changes.
........
r675106 | jeremias | 2008-07-09 09:03:46 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #45366:
Document missing feature.
........
r675150 | jeremias | 2008-07-09 14:56:41 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #39980:
Fixed image scaling for RTF output.
........
r675151 | jeremias | 2008-07-09 14:57:06 +0200 (Mi, 09 Jul 2008) | 1 line
Removed unused code.
........
r675152 | jeremias | 2008-07-09 14:58:18 +0200 (Mi, 09 Jul 2008) | 1 line
Don't generate commands for default values.
........
r675707 | jeremias | 2008-07-10 21:58:27 +0200 (Do, 10 Jul 2008) | 1 line
Bugfix: -imagein didn't work because the stylesheet didn't get copied into fop.jar.
........
r680715 | jeremias | 2008-07-29 16:37:10 +0200 (Di, 29 Jul 2008) | 1 line
Found a surplus "pop state" which somehow causes a regression (fill color doesn't get properly reset) between 0.94 and 0.95. Shows in Barcode4J's fop-extension-demo.fo. The line has already been there in 0.94 but only shows in 0.95 probably due to an additional save/restore state pair added in PDFRenderer for reference areas after the block-container area refactoring.
........
r680820 | jeremias | 2008-07-29 22:02:14 +0200 (Di, 29 Jul 2008) | 2 lines
Bugzilla #41306:
The AWT Renderer is really not out-of-order capable.
........
r681284 | jeremias | 2008-07-31 08:47:49 +0200 (Do, 31 Jul 2008) | 1 line
Some updates to status.xml (I was not the only one working on the final release).
........
r681290 | jeremias | 2008-07-31 09:44:51 +0200 (Do, 31 Jul 2008) | 2 lines
Website updates for the 0.95 release.
The projectInfo plug-in of Forrest is not ideal for doing a bugfix release. It's not possible to combine the changes for two releases.
........
r681292 | jeremias | 2008-07-31 09:47:13 +0200 (Do, 31 Jul 2008) | 1 line
Disabling the ApacheCon ad for the release build.
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@681307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago ![Vincent Hennebert](https://secure.gravatar.com/avatar/0dc17c4113f58608edc160eb7136c1f6?d=identicon) Merged revisions 636400-636405,636407-638388 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
........
r636403 | vhennebert | 2008-03-12 16:24:48 +0000 (Wed, 12 Mar 2008) | 2 lines
Updated copyright years
........
r637075 | vhennebert | 2008-03-14 12:19:45 +0000 (Fri, 14 Mar 2008) | 4 lines
Bugzilla #44412:
Bugfix: When there was a forced break after a block with (conditional) borders the border-after wasn't painted.
Changes made by Jeremias
........
r637119 | jeremias | 2008-03-14 14:41:03 +0000 (Fri, 14 Mar 2008) | 2 lines
Bugzilla #44412:
Bugfix: The before border of a block is no longer swallowed if its first child issues a break-before.
........
r637791 | jeremias | 2008-03-17 08:59:51 +0000 (Mon, 17 Mar 2008) | 3 lines
Removed old image adapters.
Removed support for Java 1.3 building as it didn't work anymore anyway.
Added a check to require Java 1.4 for building.
........
r637857 | jeremias | 2008-03-17 12:24:33 +0000 (Mon, 17 Mar 2008) | 3 lines
Partially reverted revision 637791:
Restored JAI as a required dependency for distribution builds (used for error diffusion dithering in the PCL Renderer). It is optional otherwise.
Updated the licensing info and release notes to make the changes clear.
........
r637993 | vhennebert | 2008-03-17 17:48:44 +0000 (Mon, 17 Mar 2008) | 3 lines
Bugzilla #44621: when the after border of a cell, in the trailing case, is bigger than in the normal case, the generated sequence of Knuth elements was wrong, leading to content being swallowed
This is a partial fix only: the content is no longer swallowed, but the penalty is wrong (shorter than it should be). This will lead to the table overflowing the region-body without warning.
........
r638048 | vhennebert | 2008-03-17 20:00:36 +0000 (Mon, 17 Mar 2008) | 2 lines
Changed the documentation to reflect the move to Java 1.4 as a minimum requirement
........
r638308 | vhennebert | 2008-03-18 10:26:32 +0000 (Tue, 18 Mar 2008) | 2 lines
Simplified the getNextKnuthElements method a little bit
........
r638316 | vhennebert | 2008-03-18 11:06:59 +0000 (Tue, 18 Mar 2008) | 2 lines
Removed the 'jdk1.4' suffix appended to the binary artifacts. There's no point in making the distinction anymore since there is only one binary now
........
r638317 | vhennebert | 2008-03-18 11:08:29 +0000 (Tue, 18 Mar 2008) | 2 lines
Updated the probable date of the release
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@638396 13f79535-47bb-0310-9956-ffa450edef68
16 years ago ![Jeremias Maerki](https://secure.gravatar.com/avatar/7e0393eaef26065d612909513ec19196?d=identicon) Merged revisions 636407-637074,637076-637118,637120-637790,637792-637856,637858-637992,637994-638047,638049-638307,638309-638315,638318-638936,638938-640888,640890-642905,642907-647402,647404-647536,647538-648983,648985-649005,649007-649013,649015-650549,650551-651301,651303-653536,653538-654452,654454-656285,656287-656523,656525-657519,657521-661579,661581-663481,663483-664691,664693-681285,681287-681290,681292-681298 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
........
r666635 | jeremias | 2008-06-11 14:18:53 +0200 (Mi, 11 Jun 2008) | 1 line
Fixed resolution handling inside AWT preview dialog.
........
r666662 | jeremias | 2008-06-11 15:33:20 +0200 (Mi, 11 Jun 2008) | 1 line
Some notes on RTF and print output.
........
r668533 | jeremias | 2008-06-17 09:57:55 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45151:
Note on the "compiling" page that Ant 1.7 is required. The README file already points to this page.
........
r668534 | jeremias | 2008-06-17 09:58:40 +0200 (Di, 17 Jun 2008) | 2 lines
Update known issues.
Remove ApacheConEU logo.
........
r668550 | jeremias | 2008-06-17 10:05:22 +0200 (Di, 17 Jun 2008) | 2 lines
Bugzilla #45146:
Removed duplicate LICENSE.txt and Notice.txt from the JAR.
........
r668570 | jeremias | 2008-06-17 10:54:07 +0200 (Di, 17 Jun 2008) | 1 line
Wrong line number reported in the case of a line overflow.
........
r668641 | jeremias | 2008-06-17 14:59:25 +0200 (Di, 17 Jun 2008) | 1 line
Fixed potential NPE.
........
r669118 | jeremias | 2008-06-18 11:02:45 +0200 (Mi, 18 Jun 2008) | 4 lines
Bugzilla #44412:
Regression fix for empty pages caused by multiple collapsible breaks.
No more empty block areas if a break-before occurs on the first child of an FO to match the behaviour of tables and other FO implementations (clarification by XSL WG pending).
Added an accessor interface for break-before/-after to avoid long if..else lists in BlockStackingLayoutManager.
........
r669173 | jeremias | 2008-06-18 16:07:27 +0200 (Mi, 18 Jun 2008) | 7 lines
Bugzilla #44887:
Fixed potential multi-threading problem concerning the use of DecimalFormat.
Results from performance measurements in a separate test (operation repeated 100'000 times, exemplary):
shared static variable: ~220ms (old choice, problematic!)
always create new instance: ~480ms
ThreadLocal: ~220ms (new choice)
........
r669478 | jeremias | 2008-06-19 15:03:57 +0200 (Do, 19 Jun 2008) | 4 lines
Bugzilla #44412:
Improvements after Vincent's feedback:
Removal of the somewhat ugly Reference.
getBreakBefore() reduced to private visibility.
........
r670551 | jeremias | 2008-06-23 14:54:27 +0200 (Mo, 23 Jun 2008) | 3 lines
Use configured source and target resolution for foreign objects in RTF output.
Fixed intrinsic size calculation for SVG images when source resolution is not 72 dpi.
Fixed calculation of px2mm values in the SVG to G2D converter (used by RTF output).
........
r673750 | adelmelle | 2008-07-03 20:25:01 +0200 (Do, 03 Jul 2008) | 1 line
Fix for Bugzilla 45295 (already committed to the trunk with r672010, r672495 and r672496)
........
r674304 | jeremias | 2008-07-06 17:09:10 +0200 (So, 06 Jul 2008) | 18 lines
Bugzilla #43606:
column-width accepts percent values (proportional-column-width and % working)
Table width accepts percent values (100% of the page width as standard)
Nested tables are working
It is also possible to make nested tables with a higher depth than 3 without causing word to crash
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Patch simplified (reuse of ColumnSetup from the layoutmgr package)
- Percentages and proportional-column-width didn't work properly in my tests -> fixed
- Adjustments for FOP code conventions
Bugzilla #43824:
page-number-citation working but has to be refreshed inside word to show the correct values
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674314 | jeremias | 2008-07-06 18:40:08 +0200 (So, 06 Jul 2008) | 7 lines
Bugzilla #43825:
leader supports fixed percent values for leader-length, most other properties
use-content, leader-pattern-width not implemented
Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
Changes to the patch by Jeremias:
- Adjustments for FOP code conventions
........
r674317 | jeremias | 2008-07-06 18:44:43 +0200 (So, 06 Jul 2008) | 1 line
Doc update after RTF changes.
........
r675106 | jeremias | 2008-07-09 09:03:46 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #45366:
Document missing feature.
........
r675150 | jeremias | 2008-07-09 14:56:41 +0200 (Mi, 09 Jul 2008) | 2 lines
Bugzilla #39980:
Fixed image scaling for RTF output.
........
r675151 | jeremias | 2008-07-09 14:57:06 +0200 (Mi, 09 Jul 2008) | 1 line
Removed unused code.
........
r675152 | jeremias | 2008-07-09 14:58:18 +0200 (Mi, 09 Jul 2008) | 1 line
Don't generate commands for default values.
........
r675707 | jeremias | 2008-07-10 21:58:27 +0200 (Do, 10 Jul 2008) | 1 line
Bugfix: -imagein didn't work because the stylesheet didn't get copied into fop.jar.
........
r680715 | jeremias | 2008-07-29 16:37:10 +0200 (Di, 29 Jul 2008) | 1 line
Found a surplus "pop state" which somehow causes a regression (fill color doesn't get properly reset) between 0.94 and 0.95. Shows in Barcode4J's fop-extension-demo.fo. The line has already been there in 0.94 but only shows in 0.95 probably due to an additional save/restore state pair added in PDFRenderer for reference areas after the block-container area refactoring.
........
r680820 | jeremias | 2008-07-29 22:02:14 +0200 (Di, 29 Jul 2008) | 2 lines
Bugzilla #41306:
The AWT Renderer is really not out-of-order capable.
........
r681284 | jeremias | 2008-07-31 08:47:49 +0200 (Do, 31 Jul 2008) | 1 line
Some updates to status.xml (I was not the only one working on the final release).
........
r681290 | jeremias | 2008-07-31 09:44:51 +0200 (Do, 31 Jul 2008) | 2 lines
Website updates for the 0.95 release.
The projectInfo plug-in of Forrest is not ideal for doing a bugfix release. It's not possible to combine the changes for two releases.
........
r681292 | jeremias | 2008-07-31 09:47:13 +0200 (Do, 31 Jul 2008) | 1 line
Disabling the ApacheCon ad for the release build.
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@681307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago |
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- /*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
- /* $Id$ */
-
- package org.apache.fop.layoutmgr;
-
- import java.util.Collections;
- import java.util.List;
-
- import org.apache.fop.fo.Constants;
- import org.apache.fop.layoutmgr.inline.AlignmentContext;
- import org.apache.fop.layoutmgr.inline.HyphContext;
- import org.apache.fop.traits.MinOptMax;
-
-
- /**
- * This class is used to pass information to the getNextKnuthElements()
- * method. It is set up by higher level LM and used by lower level LM.
- */
- public class LayoutContext {
- /**
- * Values for flags.
- */
- public static final int LINEBREAK_AT_LF_ONLY = 0x01;
- /** Generated break possibility is first in a new area */
- public static final int NEW_AREA = 0x02;
- public static final int IPD_UNKNOWN = 0x04;
- /** Signal to a Line LM that a higher level LM may provoke a change
- * in the reference area, thus ref area IPD. The LineLM should return
- * without looking for a line break.
- */
- public static final int CHECK_REF_AREA = 0x08;
-
- /**
- * If this flag is set, it indicates that any break-before values other than "auto" should
- * not cause a mandatory break as this break was already handled by a parent layout manager.
- */
- public static final int SUPPRESS_BREAK_BEFORE = 0x10;
- public static final int FIRST_AREA = 0x20;
- public static final int TRY_HYPHENATE = 0x40;
- public static final int LAST_AREA = 0x80;
-
- public static final int RESOLVE_LEADING_SPACE = 0x100;
-
- /**
- * This flag indicates that there's a keep-with-next that hasn't
- * been processed, yet.
- */
- //public static final int KEEP_WITH_NEXT_PENDING = 0x200;
- /**
- * This flag indicates that there's a keep-with-previous that hasn't
- * been processed, yet.
- */
- //public static final int KEEP_WITH_PREVIOUS_PENDING = 0x400;
-
-
- private int flags; // Contains some set of flags defined above
- /**
- * Total available stacking dimension for a "galley-level" layout
- * manager in block-progression-direction. It is passed by the
- * parent LM.
- * These LM <b>may</b> wish to pass this information down to lower
- * level LM to allow them to optimize returned break possibilities.
- */
- private MinOptMax stackLimitBP;
-
- /** to keep track of spanning in multi-column layout */
- private int currentSpan = Constants.NOT_SET;
- private int nextSpan = Constants.NOT_SET;
-
- /** inline-progression-dimension of nearest ancestor reference area */
- private int refIPD;
- //TODO After the split of stackLimit into stackLimitBP and stackLimitIP there's now some
- //overlap with refIPD. Need to investigate how best to refactor that.
-
- /** the writing mode established by the nearest ancestor reference area */
- private int writingMode = Constants.EN_LR_TB;
-
- /** Current pending space-after or space-end from preceding area */
- private SpaceSpecifier trailingSpace;
-
- /** Current pending space-before or space-start from ancestor areas */
- private SpaceSpecifier leadingSpace;
-
- /**
- * A list of pending marks (border and padding) on the after edge when a page break occurs.
- * May be null.
- */
- private List pendingAfterMarks;
-
- /**
- * A list of pending marks (border and padding) on the before edge when a page break occurs.
- * May be null.
- */
- private List pendingBeforeMarks;
-
- /** Current hyphenation context. May be null. */
- private HyphContext hyphContext = null;
-
- /** Alignment in BP direction */
- private int bpAlignment = Constants.EN_START;
-
- /** Stretch or shrink value when making areas. */
- private double ipdAdjust = 0.0;
-
- /** Stretch or shrink value when adding spaces. */
- private double dSpaceAdjust = 0.0;
-
- private AlignmentContext alignmentContext = null;
-
- /** Amount of space before / start */
- private int spaceBefore = 0;
- /** Amount of space after / end */
- private int spaceAfter = 0;
-
- /** Amount of space to reserve at the beginning of each line */
- private int lineStartBorderAndPaddingWidth = 0;
- /** Amount of space to reserve at the end of each line */
- private int lineEndBorderAndPaddingWidth = 0;
-
- private int breakBefore;
- private int breakAfter;
-
- private Keep pendingKeepWithNext = Keep.KEEP_AUTO;
- private Keep pendingKeepWithPrevious = Keep.KEEP_AUTO;
-
- private int disableColumnBalancing;
-
- /**
- * Copy constructor for creating child layout contexts.
- * @param parentLC the parent layout context to copy from
- */
- public LayoutContext(LayoutContext parentLC) {
- this.flags = parentLC.flags;
- this.refIPD = parentLC.refIPD;
- this.writingMode = parentLC.writingMode;
- setStackLimitBP(parentLC.getStackLimitBP());
- this.leadingSpace = parentLC.leadingSpace; //???
- this.trailingSpace = parentLC.trailingSpace; //???
- this.hyphContext = parentLC.hyphContext;
- this.bpAlignment = parentLC.bpAlignment;
- this.dSpaceAdjust = parentLC.dSpaceAdjust;
- this.ipdAdjust = parentLC.ipdAdjust;
- this.alignmentContext = parentLC.alignmentContext;
- this.lineStartBorderAndPaddingWidth = parentLC.lineStartBorderAndPaddingWidth;
- this.lineEndBorderAndPaddingWidth = parentLC.lineEndBorderAndPaddingWidth;
- copyPendingMarksFrom(parentLC);
- this.pendingKeepWithNext = parentLC.pendingKeepWithNext;
- this.pendingKeepWithPrevious = parentLC.pendingKeepWithPrevious;
- // Copy other fields as necessary.
- this.disableColumnBalancing = parentLC.disableColumnBalancing;
- }
-
- /**
- * Main constructor.
- * @param flags the initial flags
- */
- public LayoutContext(int flags) {
- this.flags = flags;
- this.refIPD = 0;
- stackLimitBP = new MinOptMax(0);
- leadingSpace = null;
- trailingSpace = null;
- }
-
- public void copyPendingMarksFrom(LayoutContext source) {
- if (source.pendingAfterMarks != null) {
- this.pendingAfterMarks = new java.util.ArrayList(source.pendingAfterMarks);
- }
- if (source.pendingBeforeMarks != null) {
- this.pendingBeforeMarks = new java.util.ArrayList(source.pendingBeforeMarks);
- }
- }
-
- public void setFlags(int flags) {
- setFlags(flags, true);
- }
-
- public void setFlags(int flags, boolean bSet) {
- if (bSet) {
- this.flags |= flags;
- } else {
- this.flags &= ~flags;
- }
- }
-
- public void unsetFlags(int flags) {
- setFlags(flags, false);
- }
-
- public boolean isStart() {
- return ((this.flags & NEW_AREA) != 0);
- }
-
- public boolean startsNewArea() {
- return ((this.flags & NEW_AREA) != 0 && leadingSpace != null);
- }
-
- public boolean isFirstArea() {
- return ((this.flags & FIRST_AREA) != 0);
- }
-
- public boolean isLastArea() {
- return ((this.flags & LAST_AREA) != 0);
- }
-
- public boolean suppressBreakBefore() {
- return ((this.flags & SUPPRESS_BREAK_BEFORE) != 0);
- }
-
- /**
- * Returns the strength of a keep-with-next currently pending.
- * @return the keep-with-next strength
- */
- public Keep getKeepWithNextPending() {
- return this.pendingKeepWithNext;
- }
-
- /**
- * Returns the strength of a keep-with-previous currently pending.
- * @return the keep-with-previous strength
- */
- public Keep getKeepWithPreviousPending() {
- return this.pendingKeepWithPrevious;
- }
-
- /**
- * Clears any pending keep-with-next strength.
- */
- public void clearKeepWithNextPending() {
- this.pendingKeepWithNext = Keep.KEEP_AUTO;
- }
-
- /**
- * Clears any pending keep-with-previous strength.
- */
- public void clearKeepWithPreviousPending() {
- this.pendingKeepWithPrevious = Keep.KEEP_AUTO;
- }
-
- /**
- * Clears both keep-with-previous and keep-with-next strengths.
- */
- public void clearKeepsPending() {
- clearKeepWithPreviousPending();
- clearKeepWithNextPending();
- }
-
- /**
- * Updates the currently pending keep-with-next strength.
- * @param keep the new strength to consider
- */
- public void updateKeepWithNextPending(Keep keep) {
- this.pendingKeepWithNext = this.pendingKeepWithNext.compare(keep);
- }
-
- /**
- * Updates the currently pending keep-with-previous strength.
- * @param keep the new strength to consider
- */
- public void updateKeepWithPreviousPending(Keep keep) {
- this.pendingKeepWithPrevious = this.pendingKeepWithPrevious.compare(keep);
- }
-
- /**
- * Indicates whether a keep-with-next constraint is pending.
- * @return true if a keep-with-next constraint is pending
- */
- public boolean isKeepWithNextPending() {
- return !getKeepWithNextPending().isAuto();
- }
-
- /**
- * Indicates whether a keep-with-previous constraint is pending.
- * @return true if a keep-with-previous constraint is pending
- */
- public boolean isKeepWithPreviousPending() {
- return !getKeepWithPreviousPending().isAuto();
- }
-
- public void setLeadingSpace(SpaceSpecifier space) {
- leadingSpace = space;
- }
-
- public SpaceSpecifier getLeadingSpace() {
- return leadingSpace;
- }
-
- public boolean resolveLeadingSpace() {
- return ((this.flags & RESOLVE_LEADING_SPACE) != 0);
- }
-
- public void setTrailingSpace(SpaceSpecifier space) {
- trailingSpace = space;
- }
-
- public SpaceSpecifier getTrailingSpace() {
- return trailingSpace;
- }
-
- /**
- * Adds a border or padding element to the pending list which will be used to generate
- * the right element list for break possibilities. Conditionality resolution will be done
- * elsewhere.
- * @param element the border, padding or space element
- */
- public void addPendingAfterMark(UnresolvedListElementWithLength element) {
- if (this.pendingAfterMarks == null) {
- this.pendingAfterMarks = new java.util.ArrayList();
- }
- this.pendingAfterMarks.add(element);
- }
-
- /**
- * @return the pending border and padding elements at the after edge
- * @see #addPendingAfterMark(UnresolvedListElementWithLength)
- */
- public List getPendingAfterMarks() {
- if (this.pendingAfterMarks != null) {
- return Collections.unmodifiableList(this.pendingAfterMarks);
- } else {
- return null;
- }
- }
-
- /**
- * Clears all pending marks on the LayoutContext.
- */
- public void clearPendingMarks() {
- this.pendingBeforeMarks = null;
- this.pendingAfterMarks = null;
- }
-
- /**
- * Adds a border or padding element to the pending list which will be used to generate
- * the right element list for break possibilities. Conditionality resolution will be done
- * elsewhere.
- * @param element the border, padding or space element
- */
- public void addPendingBeforeMark(UnresolvedListElementWithLength element) {
- if (this.pendingBeforeMarks == null) {
- this.pendingBeforeMarks = new java.util.ArrayList();
- }
- this.pendingBeforeMarks.add(element);
- }
-
- /**
- * @return the pending border and padding elements at the before edge
- * @see #addPendingBeforeMark(UnresolvedListElementWithLength)
- */
- public List getPendingBeforeMarks() {
- if (this.pendingBeforeMarks != null) {
- return Collections.unmodifiableList(this.pendingBeforeMarks);
- } else {
- return null;
- }
- }
-
- /**
- * Sets the stack limit in block-progression-dimension.
- * @param limit the stack limit
- */
- public void setStackLimitBP(MinOptMax limit) {
- stackLimitBP = limit;
- }
-
- /**
- * Returns the stack limit in block-progression-dimension.
- * @return the stack limit
- */
- public MinOptMax getStackLimitBP() {
- return stackLimitBP;
- }
-
- /**
- * Sets the inline-progression-dimension of the nearest ancestor reference area.
- */
- public void setRefIPD(int ipd) {
- refIPD = ipd;
- }
-
- /**
- * Returns the inline-progression-dimension of the nearest ancestor reference area.
- *
- * @return the inline-progression-dimension of the nearest ancestor reference area
- */
- public int getRefIPD() {
- return refIPD;
- }
-
- public void setHyphContext(HyphContext hyph) {
- hyphContext = hyph;
- }
-
- public HyphContext getHyphContext() {
- return hyphContext;
- }
-
- public boolean tryHyphenate() {
- return ((this.flags & TRY_HYPHENATE) != 0);
- }
-
- /**
- * Sets the currently applicable alignment in BP direction.
- * @param alignment one of EN_START, EN_JUSTIFY etc.
- */
- public void setBPAlignment(int alignment) {
- this.bpAlignment = alignment;
- }
-
- /** @return the currently applicable alignment in BP direction (EN_START, EN_JUSTIFY...) */
- public int getBPAlignment() {
- return this.bpAlignment;
- }
-
- public void setSpaceAdjust(double adjust) {
- dSpaceAdjust = adjust;
- }
-
- public double getSpaceAdjust() {
- return dSpaceAdjust;
- }
-
- public void setIPDAdjust(double ipdA) {
- ipdAdjust = ipdA;
- }
-
- public double getIPDAdjust() {
- return ipdAdjust;
- }
-
- public void setAlignmentContext(AlignmentContext alignmentContext) {
- this.alignmentContext = alignmentContext;
- }
-
- public AlignmentContext getAlignmentContext() {
- return this.alignmentContext;
- }
-
- public void resetAlignmentContext() {
- if (this.alignmentContext != null) {
- this.alignmentContext = this.alignmentContext.getParentAlignmentContext();
- }
- }
-
- /**
- * Get the width to be reserved for border and padding at the start of the line.
- * @return the width to be reserved
- */
- public int getLineStartBorderAndPaddingWidth() {
- return lineStartBorderAndPaddingWidth;
- }
-
- /**
- * Set the width to be reserved for border and padding at the start of the line.
- * @param lineStartBorderAndPaddingWidth the width to be reserved
- */
- public void setLineStartBorderAndPaddingWidth(int lineStartBorderAndPaddingWidth) {
- this.lineStartBorderAndPaddingWidth = lineStartBorderAndPaddingWidth;
- }
-
- /**
- * Get the width to be reserved for border and padding at the end of the line.
- * @return the width to be reserved
- */
- public int getLineEndBorderAndPaddingWidth() {
- return lineEndBorderAndPaddingWidth;
- }
-
- /**
- * Set the width to be reserved for border and padding at the end of the line.
- * @param lineEndBorderAndPaddingWidth the width to be reserved
- */
- public void setLineEndBorderAndPaddingWidth(int lineEndBorderAndPaddingWidth) {
- this.lineEndBorderAndPaddingWidth = lineEndBorderAndPaddingWidth;
- }
-
- /**
- * @return one of: {@link Constants#NOT_SET}, {@link Constants#EN_NONE}
- * {@link Constants#EN_ALL}
- */
- public int getNextSpan() {
- return nextSpan;
- }
-
- /**
- * @return one of: {@link Constants#NOT_SET}, {@link Constants#EN_NONE}
- * {@link Constants#EN_ALL}
- */
- public int getCurrentSpan() {
- return (currentSpan == Constants.NOT_SET)
- ? Constants.EN_NONE : currentSpan;
- }
-
- /**
- * Used to signal the PSLM that the element list ends early because of a span change in
- * multi-column layout.
- * @param span the new span value (legal values: NOT_SET, EN_NONE, EN_ALL)
- */
- public void signalSpanChange(int span) {
- switch (span) {
- case Constants.NOT_SET:
- case Constants.EN_NONE:
- case Constants.EN_ALL:
- this.currentSpan = this.nextSpan;
- this.nextSpan = span;
- break;
- default:
- assert false;
- throw new IllegalArgumentException("Illegal value on signalSpanChange() for span: "
- + span);
- }
- }
-
- /**
- * Get the writing mode of the relevant reference area.
- * @return the applicable writing mode
- */
- public int getWritingMode() {
- return writingMode;
- }
-
- /**
- * Set the writing mode.
- * @param writingMode the writing mode
- */
- public void setWritingMode(int writingMode) {
- this.writingMode = writingMode;
- }
-
- /**
- * Get the current amount of space before / start
- * @return the space before / start amount
- */
- public int getSpaceBefore() {
- return spaceBefore;
- }
-
- /**
- * Set the amount of space before / start
- * @param spaceBefore the amount of space before / start
- */
- public void setSpaceBefore(int spaceBefore) {
- this.spaceBefore = spaceBefore;
- }
-
- /**
- * Get the current amount of space after / end
- * @return the space after / end amount
- */
- public int getSpaceAfter() {
- return spaceAfter;
- }
-
- /**
- * Set the amount of space after / end
- * @param spaceAfter the amount of space after / end
- */
- public void setSpaceAfter(int spaceAfter) {
- this.spaceAfter = spaceAfter;
- }
-
- /**
- * Returns the value of the break before the element whose
- * {@link LayoutManager#getNextKnuthElements(LayoutContext, int)} method has just been
- * called.
- *
- * @return one of {@link Constants#EN_AUTO}, {@link Constants#EN_COLUMN},
- * {@link Constants#EN_PAGE}, {@link Constants#EN_EVEN_PAGE}, or
- * {@link Constants#EN_ODD_PAGE}
- */
- public int getBreakBefore() {
- return breakBefore;
- }
-
- /**
- * Sets the value of the break before the current element.
- *
- * @param breakBefore the value of the break-before
- * @see #getBreakBefore()
- */
- public void setBreakBefore(int breakBefore) {
- this.breakBefore = breakBefore;
- }
-
- /**
- * Returns the value of the break after the element whose
- * {@link LayoutManager#getNextKnuthElements(LayoutContext, int)} method has just been
- * called.
- *
- * @return one of {@link Constants#EN_AUTO}, {@link Constants#EN_COLUMN},
- * {@link Constants#EN_PAGE}, {@link Constants#EN_EVEN_PAGE}, or
- * {@link Constants#EN_ODD_PAGE}
- */
- public int getBreakAfter() {
- return breakAfter;
- }
-
-
- /**
- * Sets the value of the break after the current element.
- *
- * @param breakAfter the value of the break-after
- * @see #getBreakAfter()
- */
- public void setBreakAfter(int breakAfter) {
- this.breakAfter = breakAfter;
- }
-
- /** {@inheritDoc} */
- public String toString() {
- return "Layout Context:"
- + "\nStack Limit BPD: \t"
- + (getStackLimitBP() == null ? "null" : getStackLimitBP().toString())
- + "\nTrailing Space: \t"
- + (getTrailingSpace() == null ? "null" : getTrailingSpace().toString())
- + "\nLeading Space: \t"
- + (getLeadingSpace() == null ? "null" : getLeadingSpace().toString())
- + "\nReference IPD: \t" + getRefIPD()
- + "\nSpace Adjust: \t" + getSpaceAdjust()
- + "\nIPD Adjust: \t" + getIPDAdjust()
- + "\nResolve Leading Space: \t" + resolveLeadingSpace()
- + "\nSuppress Break Before: \t" + suppressBreakBefore()
- + "\nIs First Area: \t" + isFirstArea()
- + "\nStarts New Area: \t" + startsNewArea()
- + "\nIs Last Area: \t" + isLastArea()
- + "\nTry Hyphenate: \t" + tryHyphenate()
- + "\nKeeps: \t[keep-with-next=" + getKeepWithNextPending()
- + "][keep-with-previous=" + getKeepWithPreviousPending() + "] pending"
- + "\nBreaks: \tforced [" + (breakBefore != Constants.EN_AUTO ? "break-before" : "") + "]["
- + (breakAfter != Constants.EN_AUTO ? "break-after" : "") + "]";
- }
-
- /**
- * Returns whether the column balancer should be disabled before a spanning block
- *
- * @return one of {@link Constants#EN_TRUE}, {@link Constants#EN_FALSE}
- */
- public int getDisableColumnBalancing() {
- return disableColumnBalancing;
- }
-
- /**
- * Sets whether the column balancer should be disabled before a spanning block
- *
- * @param disableColumnBalancing the value of the fox:disable-column-balancing property
- * @see #getDisableColumnBalancing()
- */
- public void setDisableColumnBalancing(int disableColumnBalancing) {
- this.disableColumnBalancing = disableColumnBalancing;
- }
- }
-
|