]> source.dussan.org Git - xmlgraphics-fop.git/log
xmlgraphics-fop.git
18 years agoEnsure a consistent Fop object in the constructor
Simon Pepping [Tue, 7 Mar 2006 20:36:14 +0000 (20:36 +0000)]
Ensure a consistent Fop object in the constructor

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

18 years agoEnsure the consistency of the created Fop object
Simon Pepping [Tue, 7 Mar 2006 19:33:32 +0000 (19:33 +0000)]
Ensure the consistency of the created Fop object

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

18 years agoHeight is not Width
Simon Pepping [Mon, 6 Mar 2006 21:51:05 +0000 (21:51 +0000)]
Height is not Width

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

18 years agoAdd Fop constructor and corresponding FopFactory methods with an
Simon Pepping [Sun, 5 Mar 2006 20:47:00 +0000 (20:47 +0000)]
Add Fop constructor and corresponding FopFactory methods with an
output stream. Adapt MultipleFO2PDF example.

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

18 years agoPorted the latest bugfix in FOUserAgent to branch:
Jeremias Maerki [Wed, 1 Mar 2006 10:41:04 +0000 (10:41 +0000)]
Ported the latest bugfix in FOUserAgent to branch:
Fix bug in the construction of a base URL when it's specified as a file system path.

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

18 years agoAn example of a FopFactory managing multiple rendering runs
Simon Pepping [Thu, 23 Feb 2006 21:17:17 +0000 (21:17 +0000)]
An example of a FopFactory managing multiple rendering runs

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

18 years agoAdapted this example to the new API.
Simon Pepping [Wed, 22 Feb 2006 20:50:56 +0000 (20:50 +0000)]
Adapted this example to the new API.

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

18 years agoDeprecated PDFEncryptionParams on FOUserAgent in factor of the more generic solution...
Jeremias Maerki [Wed, 15 Feb 2006 13:06:44 +0000 (13:06 +0000)]
Deprecated PDFEncryptionParams on FOUserAgent in factor of the more generic solution using FOUserAgent.getRendererOptions().

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

18 years agoCleanup
Jeremias Maerki [Tue, 14 Feb 2006 10:25:51 +0000 (10:25 +0000)]
Cleanup

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

18 years agoAttaching the ImageFactory to the FopFactory. To have a cache effect between multiple...
Jeremias Maerki [Tue, 14 Feb 2006 10:02:11 +0000 (10:02 +0000)]
Attaching the ImageFactory to the FopFactory. To have a cache effect between multiple rendering runs the FopFactory would have to be reused after this change. Multiple FopFactories = Multiple image caches.

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

18 years agoHooking the ContentHandlerFactoryRegistry into the FopFactor.
Jeremias Maerki [Tue, 14 Feb 2006 09:11:27 +0000 (09:11 +0000)]
Hooking the ContentHandlerFactoryRegistry into the FopFactor.

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

18 years agoMost of the API finalization proposal is implemented now. No deprecations, yet, and...
Jeremias Maerki [Mon, 13 Feb 2006 16:08:26 +0000 (16:08 +0000)]
Most of the API finalization proposal is implemented now. No deprecations, yet, and the image cache and a couple of nits are not addressed, yet.

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

18 years agoTemporary branch for API finalization
Jeremias Maerki [Mon, 13 Feb 2006 13:01:33 +0000 (13:01 +0000)]
Temporary branch for API finalization

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

18 years agoRTF: length of leveltext has to be specified as two-digit hex-value
Peter Herweg [Sun, 12 Feb 2006 22:31:02 +0000 (22:31 +0000)]
RTF: length of leveltext has to be specified as two-digit hex-value

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

18 years agotrivial update
Andreas L. Delmelle [Sun, 12 Feb 2006 21:40:19 +0000 (21:40 +0000)]
trivial update

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

18 years agoSlight correction: single quoted font-family names not properly handled
Andreas L. Delmelle [Sun, 12 Feb 2006 21:07:19 +0000 (21:07 +0000)]
Slight correction: single quoted font-family names not properly handled

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

18 years agoExtra constants needed for the font shorthand
Andreas L. Delmelle [Sun, 12 Feb 2006 19:39:29 +0000 (19:39 +0000)]
Extra constants needed for the font shorthand

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

18 years agoAdded implementation for the font shorthand property (+ some checkstyle cleanup)
Andreas L. Delmelle [Sun, 12 Feb 2006 19:37:22 +0000 (19:37 +0000)]
Added implementation for the font shorthand property (+ some checkstyle cleanup)

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

18 years agoBugfix for Bug 38041: correct handling of different list-item-label's
Peter Herweg [Sun, 12 Feb 2006 19:24:08 +0000 (19:24 +0000)]
Bugfix for Bug 38041: correct handling of different list-item-label's

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

18 years agoRTF: fix a few checkstyle warnings
Peter Herweg [Sun, 12 Feb 2006 19:19:03 +0000 (19:19 +0000)]
RTF: fix a few checkstyle warnings

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

18 years agoBugzilla #38618:
Jeremias Maerki [Sat, 11 Feb 2006 20:23:47 +0000 (20:23 +0000)]
Bugzilla #38618:
cleanup of rgb() and implementation of system-color()
Submitted by: Max Berger <max.at.berger.name>

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

18 years agoCreation of Font instances centralized in FontInfo and added a cache for them. This...
Jeremias Maerki [Fri, 10 Feb 2006 14:39:34 +0000 (14:39 +0000)]
Creation of Font instances centralized in FontInfo and added a cache for them. This removes duplicate code in a number of places, improves speed a little and saves memory.

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

18 years agoReworked area building in AreaTreeParser to match the scheme that the FOTreeBuilder...
Jeremias Maerki [Thu, 9 Feb 2006 13:48:48 +0000 (13:48 +0000)]
Reworked area building in AreaTreeParser to match the scheme that the FOTreeBuilder uses. Cuts away another 10-15% processing time. Too many String.equals() calls and a minor optimization in setTraits().

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

18 years agoDecorate warning with location info.
Jeremias Maerki [Thu, 9 Feb 2006 10:34:17 +0000 (10:34 +0000)]
Decorate warning with location info.

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

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