]> source.dussan.org Git - xmlgraphics-fop.git/log
xmlgraphics-fop.git
18 years agoBugfix: Fixed two causes for ClassCastExceptions in BlockContainerLayoutManager.
Jeremias Maerki [Thu, 9 Feb 2006 09:20:02 +0000 (09:20 +0000)]
Bugfix: Fixed two causes for ClassCastExceptions in BlockContainerLayoutManager.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376235 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: padding-top and padding-bottom on list-items could lead to wrong page break...
Jeremias Maerki [Thu, 9 Feb 2006 08:54:06 +0000 (08:54 +0000)]
Bugfix: padding-top and padding-bottom on list-items could lead to wrong page break decisions and thus to overlapping text.
Bugfix: break-before and break-after were ignored on list-items.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376226 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded missing values in area tree XML for PageViewport (simple-page-master-name and...
Jeremias Maerki [Wed, 8 Feb 2006 15:42:03 +0000 (15:42 +0000)]
Added missing values in area tree XML for PageViewport (simple-page-master-name and blank).
Performance improvement of about 10% for a simple document inside the AreaTreeParser (Hotspot: setTraits())
Changed the way that trait info lookup is done in Trait.java. Should be just a little faster now.
Unused traits disabled.
Commented unused methods.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375983 13f79535-47bb-0310-9956-ffa450edef68

18 years agoStyle fixes
Jeremias Maerki [Tue, 7 Feb 2006 14:27:04 +0000 (14:27 +0000)]
Style fixes

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375605 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNon-SVG XML got loaded into a non-namespace-aware node which caused problems later...
Jeremias Maerki [Tue, 7 Feb 2006 14:18:38 +0000 (14:18 +0000)]
Non-SVG XML got loaded into a non-namespace-aware node which caused problems later when serializing the foreign XML to the intermediate format. Fixes a problem with serializing barcodes (Barcode4J) to the intermediate format.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375604 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix for bug 38507: the elements representing a non-breaking space were not always...
Luca Furini [Tue, 7 Feb 2006 12:29:19 +0000 (12:29 +0000)]
Fix for bug 38507: the elements representing a non-breaking space were not always correct, sometimes allowing a break.

This also solves another bug concerning the incorrect suppression of a nbsp at the beginning of a line.

A bit of clean-up in TextLayoutManager

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375585 13f79535-47bb-0310-9956-ffa450edef68

18 years agocorrect line endings for fop commands
Christian Geisert [Tue, 7 Feb 2006 10:51:38 +0000 (10:51 +0000)]
correct line endings for fop commands

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375575 13f79535-47bb-0310-9956-ffa450edef68

18 years agoweb form as requested by David Reid.
Jeremias Maerki [Mon, 6 Feb 2006 13:59:02 +0000 (13:59 +0000)]
web form as requested by David Reid.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375280 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF: fix a few checkstyle warnings
Peter Herweg [Sun, 5 Feb 2006 18:05:45 +0000 (18:05 +0000)]
RTF: fix a few checkstyle warnings

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375067 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF: remove usage of TableLayoutManager; use SimplePercentBaseContext instead
Peter Herweg [Sun, 5 Feb 2006 17:39:47 +0000 (17:39 +0000)]
RTF: remove usage of TableLayoutManager; use SimplePercentBaseContext instead

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@375060 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTest case for Bugzilla #38507.
Jeremias Maerki [Sat, 4 Feb 2006 17:35:43 +0000 (17:35 +0000)]
Test case for Bugzilla #38507.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374892 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCorrection of the issue raised on the WhiteSpace Wiki (see accompanying change)
Andreas L. Delmelle [Fri, 3 Feb 2006 17:30:34 +0000 (17:30 +0000)]
Correction of the issue raised on the WhiteSpace Wiki (see accompanying change)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374712 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFile missing from http://svn.apache.org/viewcvs?rev=374174&view=rev... Thanks, Manuel...
Andreas L. Delmelle [Thu, 2 Feb 2006 23:25:53 +0000 (23:25 +0000)]
File missing from http://svn.apache.org/viewcvs?rev=374174&view=rev... Thanks, Manuel! :-)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374541 13f79535-47bb-0310-9956-ffa450edef68

18 years agoWe forgot to update the header and footer of the download mirror page.
Jeremias Maerki [Thu, 2 Feb 2006 21:34:49 +0000 (21:34 +0000)]
We forgot to update the header and footer of the download mirror page.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374512 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38453:
Jeremias Maerki [Thu, 2 Feb 2006 16:20:22 +0000 (16:20 +0000)]
Bugzilla #38453:
Bugfix: Text-decoration was not promoted if no text-decoration attribute was specified on a nested element.
Nice side-effect: more efficient evaluation of text-decoration.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374425 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDon't swallow characters if the handler does not implement LexicalHandler.
Jeremias Maerki [Thu, 2 Feb 2006 09:01:29 +0000 (09:01 +0000)]
Don't swallow characters if the handler does not implement LexicalHandler.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374312 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBetter naming of the relases.
Jeremias Maerki [Thu, 2 Feb 2006 08:20:40 +0000 (08:20 +0000)]
Better naming of the relases.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374300 13f79535-47bb-0310-9956-ffa450edef68

18 years agofo:wrapper has restrictions.
Jeremias Maerki [Thu, 2 Feb 2006 08:16:43 +0000 (08:16 +0000)]
fo:wrapper has restrictions.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374298 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDemonstrating the problem reported by Jan Kohnert.
Jeremias Maerki [Thu, 2 Feb 2006 08:12:14 +0000 (08:12 +0000)]
Demonstrating the problem reported by Jan Kohnert.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374297 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRenaming test case as it doesn't properly describe what it does.
Jeremias Maerki [Thu, 2 Feb 2006 08:06:29 +0000 (08:06 +0000)]
Renaming test case as it doesn't properly describe what it does.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374296 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFurther fine-tuning of white-space-handling during refinement
Andreas L. Delmelle [Wed, 1 Feb 2006 21:13:42 +0000 (21:13 +0000)]
Further fine-tuning of white-space-handling during refinement

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374174 13f79535-47bb-0310-9956-ffa450edef68

18 years agoForgot to commit the failing testcase...
Andreas L. Delmelle [Tue, 31 Jan 2006 22:10:56 +0000 (22:10 +0000)]
Forgot to commit the failing testcase...

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373925 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImplementation for from-table-column(). See: bugzilla 38282
Andreas L. Delmelle [Tue, 31 Jan 2006 22:09:36 +0000 (22:09 +0000)]
Implementation for from-table-column(). See: bugzilla 38282

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373922 13f79535-47bb-0310-9956-ffa450edef68

18 years agoHere's why forcing to border-collapse="separate" on fo:table didn't work. D'oh!
Jeremias Maerki [Tue, 31 Jan 2006 08:43:01 +0000 (08:43 +0000)]
Here's why forcing to border-collapse="separate" on fo:table didn't work. D'oh!

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373761 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38434:
Jeremias Maerki [Mon, 30 Jan 2006 08:28:05 +0000 (08:28 +0000)]
Bugzilla #38434:
Restore JDK 1.3.1 compatibility.
Submitted by: Jelka Kosir <jelka.kosir.at.atol.si>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373469 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAn addition to FOP that can be used to render a hyphenation tree in
Simon Pepping [Sat, 28 Jan 2006 15:57:59 +0000 (15:57 +0000)]
An addition to FOP that can be used to render a hyphenation tree in
various ways, among which a complete tree representation. And
correction of a few typos in HyphenationTree.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373170 13f79535-47bb-0310-9956-ffa450edef68

18 years agoChange TransformerHandler to ContentHandler. Use comment method when
Simon Pepping [Fri, 27 Jan 2006 20:24:15 +0000 (20:24 +0000)]
Change TransformerHandler to ContentHandler. Use comment method when
available.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372971 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImplement new interface method
Simon Pepping [Fri, 27 Jan 2006 20:22:17 +0000 (20:22 +0000)]
Implement new interface method

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372970 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF: testcase 'tableunits.fo' failed because there was no PercentBaseContext passed.
Peter Herweg [Fri, 27 Jan 2006 17:10:31 +0000 (17:10 +0000)]
RTF: testcase 'tableunits.fo' failed because there was no PercentBaseContext passed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372916 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTransformerHandler changed to ContentHandler to allow easier integration of XML Rende...
Chris Bowditch [Fri, 27 Jan 2006 17:08:32 +0000 (17:08 +0000)]
TransformerHandler changed to ContentHandler to allow easier integration of XML Renderer to a SAX Events chain

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372915 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTransformerHandler changed to ContentHandler to allow easier integration of XML Rende...
Chris Bowditch [Fri, 27 Jan 2006 17:06:16 +0000 (17:06 +0000)]
TransformerHandler changed to ContentHandler to allow easier integration of XML Renderer to a SAX Events chain

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372914 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded safe-guard against reuse to avoid problems with the renderers.
Jeremias Maerki [Fri, 27 Jan 2006 15:34:10 +0000 (15:34 +0000)]
Added safe-guard against reuse to avoid problems with the renderers.
Removed reset() method. Compared to the many hundred object instances that get created by the FO tree and layout engine, the Fop and FOTreeBuilder instance are negligible. Better keep the API as simple as possible and create an environmental class in the long run.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372880 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDon't swallow the stack trace.
Jeremias Maerki [Thu, 26 Jan 2006 12:37:32 +0000 (12:37 +0000)]
Don't swallow the stack trace.
Handle the case when the image cannot be found and don't throw an NPE in that case.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372518 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38397:
Jeremias Maerki [Thu, 26 Jan 2006 11:05:43 +0000 (11:05 +0000)]
Bugzilla #38397:
Bugfix: Spanned cells could lead to an false error message about overlapping cells and ultimately a NullPointerException.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372504 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #37506:
Jeremias Maerki [Wed, 25 Jan 2006 21:16:26 +0000 (21:16 +0000)]
Bugzilla #37506:
Extracted a base class for both PFMReader and TTFReader to remove duplicate code.
Submitted by: Kev Jackson <kevin.jackson.at.it.fts-vn.com>
(Patch applied with changes: escape method removed, tabs removed, javadocs added)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372317 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCorrected the about of the project and some XML and URI errors, and
Simon Pepping [Wed, 25 Jan 2006 20:26:37 +0000 (20:26 +0000)]
Corrected the about of the project and some XML and URI errors, and
added the unstable version.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372307 13f79535-47bb-0310-9956-ffa450edef68

18 years agoadded support for number-columns-spanned and number-rows-spanned in the same cell
Peter Herweg [Wed, 25 Jan 2006 19:11:15 +0000 (19:11 +0000)]
added support for number-columns-spanned and number-rows-spanned in the same cell

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372292 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTo avoid NPEs due to my latest fix, use the default simple-page-master from the page...
Jeremias Maerki [Wed, 25 Jan 2006 14:08:37 +0000 (14:08 +0000)]
To avoid NPEs due to my latest fix, use the default simple-page-master from the page-sequence-master if one is used.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372220 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: Regions with non-standard names got ignored in RTF output leading to missing...
Jeremias Maerki [Wed, 25 Jan 2006 13:48:32 +0000 (13:48 +0000)]
Bugfix: Regions with non-standard names got ignored in RTF output leading to missing headers and footers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372214 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAvoid NPE when a malformed command-line is specified.
Jeremias Maerki [Wed, 25 Jan 2006 10:09:01 +0000 (10:09 +0000)]
Avoid NPE when a malformed command-line is specified.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372180 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMy last change broke the test suite. Fix included. The start-indent should not be...
Jeremias Maerki [Wed, 25 Jan 2006 09:57:01 +0000 (09:57 +0000)]
My last change broke the test suite. Fix included. The start-indent should not be added to the area tree XML when it is zero.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372175 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemoved old doap.xml file.
Clay Leeds [Tue, 24 Jan 2006 21:06:28 +0000 (21:06 +0000)]
Removed old doap.xml file.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372018 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFollowing the model of Graphics2DAdapter, added a new interface ImageAdapter which...
Jeremias Maerki [Tue, 24 Jan 2006 20:02:30 +0000 (20:02 +0000)]
Following the model of Graphics2DAdapter, added a new interface ImageAdapter which can optionally be implemented by Renderers to support painting of RenderedImage or BufferedImage instances from inside XMLHandler implementations. First implementation by the PSRenderer. Barcode4J is going to be extended to use this interface so barcode support can easily be added to the AFP Renderer without having a Graphics2D implementation at first.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372004 13f79535-47bb-0310-9956-ffa450edef68

18 years agoadd support for rtf test files
Peter Herweg [Tue, 24 Jan 2006 19:36:09 +0000 (19:36 +0000)]
add support for rtf test files

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371992 13f79535-47bb-0310-9956-ffa450edef68

18 years agojust a few changes in order to satisfy checkstyle
Peter Herweg [Tue, 24 Jan 2006 19:25:44 +0000 (19:25 +0000)]
just a few changes in order to satisfy checkstyle

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371989 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCommand-line support for the intermediate format: Use "-atin" to specify an area...
Jeremias Maerki [Tue, 24 Jan 2006 14:21:46 +0000 (14:21 +0000)]
Command-line support for the intermediate format: Use "-atin" to specify an area tree XML file.
Refactoring of the InputHandler to accomodate the IF as input format and to make responsibilities clearer in general.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371922 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix for NPE when the AWT Viewer is used with an area tree file as input.
Jeremias Maerki [Tue, 24 Jan 2006 14:15:36 +0000 (14:15 +0000)]
Fix for NPE when the AWT Viewer is used with an area tree file as input.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371919 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: LineArea used a private field instead of the start-indent trait which caused...
Jeremias Maerki [Tue, 24 Jan 2006 13:45:56 +0000 (13:45 +0000)]
Bugfix: LineArea used a private field instead of the start-indent trait which caused problems for centered and right-aligned text when rendering is done from the intermediate format. The AreaTreeParser parses and sets the trait but not the startIndent field on LineArea, so I removed the startIndent field.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371912 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDocumented the special configuration options for the PDF and PS renderers.
Jeremias Maerki [Tue, 24 Jan 2006 08:42:02 +0000 (08:42 +0000)]
Documented the special configuration options for the PDF and PS renderers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371865 13f79535-47bb-0310-9956-ffa450edef68

18 years agoHint at the auto-rotate-landscape option.
Jeremias Maerki [Tue, 24 Jan 2006 08:01:35 +0000 (08:01 +0000)]
Hint at the auto-rotate-landscape option.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371861 13f79535-47bb-0310-9956-ffa450edef68

18 years agoResurrect the getter/setter for the "auto-rotate-landscape" setting.
Jeremias Maerki [Tue, 24 Jan 2006 07:56:28 +0000 (07:56 +0000)]
Resurrect the getter/setter for the "auto-rotate-landscape" setting.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371860 13f79535-47bb-0310-9956-ffa450edef68

18 years agonumber-columns-spanned did not work in last row of a cell. Fixed.
Peter Herweg [Mon, 23 Jan 2006 22:07:24 +0000 (22:07 +0000)]
number-columns-spanned did not work in last row of a cell. Fixed.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371684 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded categories for FOP
Clay Leeds [Sat, 21 Jan 2006 01:59:48 +0000 (01:59 +0000)]
Added categories for FOP

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370954 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThe resolution of the bounding box (pts as integers) is too low for barcodes. Once...
Jeremias Maerki [Fri, 20 Jan 2006 14:43:26 +0000 (14:43 +0000)]
The resolution of the bounding box (pts as integers) is too low for barcodes. Once the EPSReader can load the HiResBoundingBox this is also useful.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370821 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded samedir property, to allow Checkstyle 4 to run
Chris Bowditch [Fri, 20 Jan 2006 14:15:11 +0000 (14:15 +0000)]
Added samedir property, to allow Checkstyle 4 to run

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370811 13f79535-47bb-0310-9956-ffa450edef68

18 years ago(Re?)added integer page number to the PageViewport.
Jeremias Maerki [Fri, 20 Jan 2006 13:09:05 +0000 (13:09 +0000)]
(Re?)added integer page number to the PageViewport.
Serializing both the integer and the formatted value to the area tree XML. In the XML "nr" is now "formatted-nr" and "nr" is now the integer value. This doesn't have any impact on our layout engine tests as we don't seem to use a non-default for page numbers.
Make the current PageViewport available to XMLHandler through the RenderContext.
I need this for Barcode4J so the current page number can be used as part of a barcode message.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370801 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF output did not generate the "\landscape" tag when necessary.
Jeremias Maerki [Fri, 20 Jan 2006 12:52:50 +0000 (12:52 +0000)]
RTF output did not generate the "\landscape" tag when necessary.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370798 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFollowing a clarification by the XSL FO SG, space traits are only set on the first...
Jeremias Maerki [Thu, 19 Jan 2006 15:10:14 +0000 (15:10 +0000)]
Following a clarification by the XSL FO SG, space traits are only set on the first and last area generated by an FO, and not on every area anymore.
For details, see: http://wiki.apache.org/xmlgraphics-fop/XslFoSpecificationUncertainties/SpaceTraits

Note: this change brings another issue in column balancing to light. That's the reason for disabling one of the tests. I wasn't able to find a quick fix there.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370494 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed a few omissions after the API change.
Jeremias Maerki [Thu, 19 Jan 2006 09:55:17 +0000 (09:55 +0000)]
Fixed a few omissions after the API change.
Thanks to Sébastien Devaux for the hint.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370454 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNew interface XMLizable (copied from Apache Excalibur) to mark classes that can seria...
Jeremias Maerki [Thu, 19 Jan 2006 09:46:44 +0000 (09:46 +0000)]
New interface XMLizable (copied from Apache Excalibur) to mark classes that can serialize themselves to XML (SAX stream).
New interface ContentHandlerFactory (plus associated Factory with Service discovery) for sub-document parsing plug-ins. Used by the area tree but could be used independently.
ExtensionAttachments are now part of the area tree and are written by XMLRenderer and parsed by AreaTreeParser.
The PS Extensions are extended to support serialization to and deserialization from XML.
Added a test case that tests the PS Extension WRT the handling in the area tree XML.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370452 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded an example for the intermediate format the demonstrates stamping a document...
Jeremias Maerki [Tue, 17 Jan 2006 20:28:35 +0000 (20:28 +0000)]
Added an example for the intermediate format the demonstrates stamping a document using XSLT.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369908 13f79535-47bb-0310-9956-ffa450edef68

18 years agoInitial documentation for the intermediate format.
Jeremias Maerki [Tue, 17 Jan 2006 14:10:39 +0000 (14:10 +0000)]
Initial documentation for the intermediate format.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369781 13f79535-47bb-0310-9956-ffa450edef68

18 years agoNew feature: "Intermediate format" (IF). The IF is basically the XML dialect written...
Jeremias Maerki [Tue, 17 Jan 2006 11:07:10 +0000 (11:07 +0000)]
New feature: "Intermediate format" (IF). The IF is basically the XML dialect written by the area tree renderer (XMLRenderer). A new parser for this format allows reparsing a serialized and possibly modified area tree and rendering it to the final target format. More details on the Wiki at http://wiki.apache.org/xmlgraphics-fop/AreaTreeIntermediateXml. No advanced features have been implemented, yet, only the basic functionality. The whole change should be fully backwards-compatible WRT the outer FOP API except maybe for FOTreeBuilder.addElementMapping(), and the area tree XML which got small changes.

The area tree has been cleaned up. The serializability has been restored. The CachedRenderPagesModel works again and can, in certain situations, decrease the maximum amount of memory held at one point in time. Some adjustments were necessary in the area tree to help the work of the AreaTreeParser.

The AreaTreeParser is new and is responsible for parsing area tree XML files and adding pages to a RenderPagesModel instance. It is SAX-based and should be pretty efficient.

XMLUnit (http://xmlunit.sourceforge.net, BSD license) is a new dependency for the test code. It is used to verify the correctness of the intermediate format code. It doesn't have to be installed for the build to run through, though.

ElementMapping got a new method getDOMImplementation() which provides the DOMImplementation used to handle a subdocument of a particular namespace. For example, SVG uses Batik's SVG DOM. The AreaTreeParser needs that to properly recreate foreign objects because it can't use the mechanism of the FO tree. The default implementation returns null.

The ElementMapping instances are no longer maintained by the FOTreeBuilder, but by the newly created ElementMappingRegistry class. It is expected that the instance of this class is moved from the FOTreeBuilder and the AreaTreeParser's Handler class to the "environment class" once it is created to cut down on the startup time for each processed document.

The XMLRenderer has been slightly modified to improve the serialization/deserialization qualities of the area tree XML format.

The XMLRenderer can now mimic another renderer (see mimicRenderer(Renderer)) in order to use its font setup. That way it is made certain that the reparsed area tree will render to the final target format exactly as expected.

Fixed a bug in the XMLHandlerRegistry which did not always return the right XMLHandler for every situation.

Added a DefaultErrorListener to the util package. I've had problems with Xalan-J swallowing exceptions with its default ErrorListener, so I added a simple one for convenience and use in AreaTreeParser.

Example code for working with the AreaTreeParser can be found in examples/embedding. Documentation will follow.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369753 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed a small mistake on the servlet page.
Jeremias Maerki [Mon, 16 Jan 2006 17:55:33 +0000 (17:55 +0000)]
Fixed a small mistake on the servlet page.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369534 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCode conventions please! No tab characters, spacing etc.
Jeremias Maerki [Mon, 16 Jan 2006 09:50:28 +0000 (09:50 +0000)]
Code conventions please! No tab characters, spacing etc.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369410 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: Floating point numbers were not properly formatted in the PDF renderer which...
Jeremias Maerki [Mon, 16 Jan 2006 09:18:11 +0000 (09:18 +0000)]
Bugfix: Floating point numbers were not properly formatted in the PDF renderer which could lead to error messages while opening a PDF in Acrobat Reader.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369407 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFAQ entry for the "indent inheritance problem".
Jeremias Maerki [Mon, 16 Jan 2006 08:37:51 +0000 (08:37 +0000)]
FAQ entry for the "indent inheritance problem".

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369400 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF: call startListBody and endListBody
Peter Herweg [Sun, 15 Jan 2006 17:51:19 +0000 (17:51 +0000)]
RTF: call startListBody and endListBody

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369239 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRTF: support for nested tables
Peter Herweg [Sun, 15 Jan 2006 17:37:58 +0000 (17:37 +0000)]
RTF: support for nested tables

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369237 13f79535-47bb-0310-9956-ffa450edef68

18 years agosupport for background-color at fo:table
Peter Herweg [Sun, 15 Jan 2006 17:34:33 +0000 (17:34 +0000)]
support for background-color at fo:table

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369235 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRemove 2005 from the copyright years of appropriate files committed in
Simon Pepping [Sat, 14 Jan 2006 18:46:42 +0000 (18:46 +0000)]
Remove 2005 from the copyright years of appropriate files committed in
revision 368462. Update the changes document with the change of that
commit.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369078 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome svn properties housekeeping: propset svn:keywords, propset svn:eol
Simon Pepping [Thu, 12 Jan 2006 20:49:26 +0000 (20:49 +0000)]
Some svn properties housekeeping: propset svn:keywords, propset svn:eol

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@368464 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAllow some xsl-function calls with omitted args, patch contributed by
Simon Pepping [Thu, 12 Jan 2006 20:40:08 +0000 (20:40 +0000)]
Allow some xsl-function calls with omitted args, patch contributed by
Gerhard Oettl, bug 38098.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@368462 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThe last page sequence should also follow its force-page-count trait.
Simon Pepping [Tue, 10 Jan 2006 20:18:13 +0000 (20:18 +0000)]
The last page sequence should also follow its force-page-count trait.
Replace one test case with two leaner test cases, submitted by Gerhard
Oettl, see bug 38087.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367775 13f79535-47bb-0310-9956-ffa450edef68

18 years agoLIST_INDENT never found; write 360 as default
Peter Herweg [Tue, 10 Jan 2006 18:52:35 +0000 (18:52 +0000)]
LIST_INDENT never found; write 360 as default

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367729 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed ugly NPE (with no message) when a malconfigured font was processed by the PS...
Jeremias Maerki [Tue, 10 Jan 2006 13:19:54 +0000 (13:19 +0000)]
Fixed ugly NPE (with no message) when a malconfigured font was processed by the PS Renderer (even when that font is not used). When the font is used we don't get an NPE anymore but a Runtime exception. Not ideal, but a little better, especially because of the error message. I hope that at some point someone finds time to clean up the whole exception handling in FOP.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367593 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDocumented the missing feature for internal basic-links as described on fop-users.
Jeremias Maerki [Tue, 10 Jan 2006 06:51:51 +0000 (06:51 +0000)]
Documented the missing feature for internal basic-links as described on fop-users.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367511 13f79535-47bb-0310-9956-ffa450edef68

18 years agofix error with lists: listIdGenerator must not be a local variable, in order to retur...
Peter Herweg [Mon, 9 Jan 2006 22:35:33 +0000 (22:35 +0000)]
fix error with lists: listIdGenerator must not be a local variable, in order to return different random numbers

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367420 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSlight enhancement to white-space-handling: removal of trailing white-space for trail...
Andreas L. Delmelle [Mon, 9 Jan 2006 21:20:07 +0000 (21:20 +0000)]
Slight enhancement to white-space-handling: removal of trailing white-space for trailing inlines

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367395 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38054:
Jeremias Maerki [Mon, 9 Jan 2006 10:16:45 +0000 (10:16 +0000)]
Bugzilla #38054:
Bugfix: Spans that end up with a negative height don't get swallowed anymore.

MainReference.getWidth() removed as it's not used anywhere.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367262 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMainRefrence.getWidth() is never set, preparing to remove this method.
Jeremias Maerki [Mon, 9 Jan 2006 09:43:25 +0000 (09:43 +0000)]
MainRefrence.getWidth() is never set, preparing to remove this method.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367255 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAlso let the last page sequence notify its listeners. Add a check for
Simon Pepping [Sun, 8 Jan 2006 11:47:38 +0000 (11:47 +0000)]
Also let the last page sequence notify its listeners. Add a check for
the page count to the test case.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367020 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCreate a new check type for the formatting results. For now only
Simon Pepping [Sun, 8 Jan 2006 11:45:37 +0000 (11:45 +0000)]
Create a new check type for the formatting results. For now only
checking the pagecount property is implemented.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367019 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugZilla #38161:
Manuel Mall [Sat, 7 Jan 2006 15:23:32 +0000 (15:23 +0000)]
BugZilla #38161:
Added XSL-FO functions to compliance page
Submitted by: Gerhard Oettl <gerhard.oettle.at.oesoft.at>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366774 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded support for relative font config URLs (metrics-url and embed-url). These URLs...
Manuel Mall [Sat, 7 Jan 2006 13:15:53 +0000 (13:15 +0000)]
Added support for relative font config URLs (metrics-url and embed-url). These URLs are now resolved through the FOP config URI resolver. A new configuration item font-base has been added which defines the base URL to be used for resolution of the font URLs. If it is not given the normal FOP base URL is used. Unrelated to this feature the patch also contains a new image class (java 1.4 specific) for JPEG images. This is for renderers (e.g. AFP) which require access to the decoded JPEG.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366718 13f79535-47bb-0310-9956-ffa450edef68

18 years agoImplementation of force-page-count property, patch by Gerhard Oettl,
Simon Pepping [Fri, 6 Jan 2006 21:31:02 +0000 (21:31 +0000)]
Implementation of force-page-count property, patch by Gerhard Oettl,
somewhat rearranged by me. See bug 38087.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366569 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38135:
Jeremias Maerki [Thu, 5 Jan 2006 14:00:50 +0000 (14:00 +0000)]
Bugzilla #38135:
Added support for RFC 2397 "data" URLs.
Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366184 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38132:
Jeremias Maerki [Thu, 5 Jan 2006 10:24:18 +0000 (10:24 +0000)]
Bugzilla #38132:
Bugfix: Certain border styles could lead to a NullPointerException.
inset and groove are now mapped to RTF's "engrave", outset and ridge to "emboss". If no mapping can be found the "solid" style is used. Before null was returned which was the cause for the NPE.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366148 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38102:
Jeremias Maerki [Wed, 4 Jan 2006 19:30:24 +0000 (19:30 +0000)]
Bugzilla #38102:
Bugfix: Space was not adjusted if the space was on a nested block inside an auto-height block-container. This could lead to content overflowing the bottom of a page.

Note: Tables and lists currently don't offer space adjustments due to the current limits of the element list combination process. Once the stretch/shrink components are handled during element list combination, this will have to be rechecked.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365971 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugzilla #38102:
Jeremias Maerki [Wed, 4 Jan 2006 15:52:07 +0000 (15:52 +0000)]
Bugzilla #38102:
Bugfix: Space was not adjusted if the space was on a nested block. This could lead to content overflowing the bottom of a page.

I guess I will need to check if other addArea() methods suffer from the same defect.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365928 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGot caught with the wrong year in the license header again!
Manuel Mall [Wed, 4 Jan 2006 13:39:19 +0000 (13:39 +0000)]
Got caught with the wrong year in the license header again!

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365907 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded testcases for recently identified problems with markers
Manuel Mall [Wed, 4 Jan 2006 13:33:23 +0000 (13:33 +0000)]
Added testcases for recently identified problems with markers

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365906 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBugfix: TableCell did not properly report that it generates reference-areas which...
Jeremias Maerki [Tue, 3 Jan 2006 17:35:23 +0000 (17:35 +0000)]
Bugfix: TableCell did not properly report that it generates reference-areas which could lead to wrong inherited values for start-indent and end-indent.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365689 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded an example for the Symbol font embedding tip.
Jeremias Maerki [Tue, 3 Jan 2006 16:40:21 +0000 (16:40 +0000)]
Added an example for the Symbol font embedding tip.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365677 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDocumented the change made in revision 365623.
Jeremias Maerki [Tue, 3 Jan 2006 15:34:31 +0000 (15:34 +0000)]
Documented the change made in revision 365623.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365664 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThe font loading code now reads the encoding value from the XML font metrics file...
Jeremias Maerki [Tue, 3 Jan 2006 13:08:45 +0000 (13:08 +0000)]
The font loading code now reads the encoding value from the XML font metrics file so that Type 1 fonts like Symbol and ZapfDingbats can be embedded explicitely (Required by PDF/A).

Note that it is necessary to set the encoding value in the font metrics file manually since it cannot be extracted from the PFM file reliably, i.e. for "Symbol" use "SymbolEncoding" and for "ZapfDingbats" use "ZapfDingbatsEncoding".

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365623 13f79535-47bb-0310-9956-ffa450edef68

18 years agoA short summary of my changes over the past two weeks
Simon Pepping [Mon, 2 Jan 2006 20:31:43 +0000 (20:31 +0000)]
A short summary of my changes over the past two weeks

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365426 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSome more properties housekeeping: propset svn:keywords 'Id', propset
Simon Pepping [Mon, 2 Jan 2006 20:12:11 +0000 (20:12 +0000)]
Some more properties housekeeping: propset svn:keywords 'Id', propset
svn:eol 'native'

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365419 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThe copyright fun starts again; it is 2006
Simon Pepping [Mon, 2 Jan 2006 19:44:19 +0000 (19:44 +0000)]
The copyright fun starts again; it is 2006

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365410 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCorrected simple mistake in BMP Reader which incorrectly reported the image width...
Manuel Mall [Mon, 2 Jan 2006 03:43:00 +0000 (03:43 +0000)]
Corrected simple mistake in BMP Reader which incorrectly reported the image width information as the image height

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365282 13f79535-47bb-0310-9956-ffa450edef68