aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* XMLHandler interface changed so it reports whether it supports a particular ↵Jeremias Maerki2005-12-1621-583/+779
| | | | | | | | | | | | | | Renderer instead of reporting the MIME type. One MIME type could be implemented by multiple Renderer implementations so conflicts could occur. Almost all XMLHandler implementations will have a dependency on a particular Renderer implementation. XMLHandlers are now configurable. Standard XMLHandlers now get registered through service lookup. Simplification: XMLHandlers don't need nested classes for the handling functionality anymore. If Batik, for example, is not in the classpath it will already be detected while registering the XMLHandlers. The RendererContextConstants interface now standardizes some of the keys used in the RendererContext and helps with actually decoupling the XMLHandler implementations from the renderers. This is one step towards making Batik an optional dependency and making it possible to move the SVG functionality to a separate place later. Extracted the SVG XMLHandler functionality from the sandbox SVGRenderer into a separate class following the example of the other renderers. Bugfix in PSSVGHandler: Fixed a copy/paste error which could lead to wrong clipping of an SVG image for PostScript output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357166 13f79535-47bb-0310-9956-ffa450edef68
* NOTE: API changes in a backwards-incompatible way: ↵Jeremias Maerki2005-12-1520-69/+135
| | | | | | | | | | FOUserAgent.setResolution() -> FOUserAgent.setSourceResolution() and FOUserAgent.setTargetResolution() Resolution parameter to the user agent is split into: - a source resolution used to determine the pixel size in SVG images and bitmap without resolution information - a target resolution used to specify the output resolution of bitmap images generated by bitmap renderers and bitmaps generated by Batik for filter effects. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357081 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37877:Jeremias Maerki2005-12-151-1/+1
| | | | | | Bug fixed in the evaluation of the resolution value in the XML configuration. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357063 13f79535-47bb-0310-9956-ffa450edef68
* Debug optimizationJeremias Maerki2005-12-151-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357061 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37875:Jeremias Maerki2005-12-153-9/+89
| | | | | | | Some content inside a table-header may not have been renderered on pages n > 1 in certain conditions. LineLM kept state between calls to addAreas which can have ugly side-effects in case of table-headers, for example, where the same positions are rendered more than once. I don't know why the bug only manifests if there's an overflow in the second line of the table-header in the test case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357045 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a problem where a block containing only a nbsp was not rendered at allManuel Mall2005-12-153-0/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357034 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug where the area for a finished cell that is broken over pages was ↵Jeremias Maerki2005-12-153-1/+97
| | | | | | created once for each row it was spanned over instead of only once. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357008 13f79535-47bb-0310-9956-ffa450edef68
* Attempt at providing context information about the element causing an ↵Jeremias Maerki2005-12-152-5/+39
| | | | | | endless loop because of an area overflow in b-p-direction. This should make the error message more helpful. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357002 13f79535-47bb-0310-9956-ffa450edef68
* Added checks that warn about tables and block-containers that are wider than ↵Jeremias Maerki2005-12-153-0/+22
| | | | | | the available content area. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357000 13f79535-47bb-0310-9956-ffa450edef68
* Corrected info.Jeremias Maerki2005-12-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356807 13f79535-47bb-0310-9956-ffa450edef68
* Don't hyphenate when wrap is set to "no-wrap".Jeremias Maerki2005-12-144-1/+109
| | | | | | | Hack: Work around an NPE in hyphenation when preserved line feeds are found. Documenting a bug where linefeeds are painted as "#" and content is painted multiple times when hyphenation is on and linefeed-treatment="preserve". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356804 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: addAnchor didn't find the anchor for empty inline elements in a ↵Jeremias Maerki2005-12-141-3/+19
| | | | | | | | footnote after the latest bugfix. Fixes footnote_footnote-separator. Javadocs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356792 13f79535-47bb-0310-9956-ffa450edef68
* Restored PNG support for RTF output and fixed two bugs related to image ↵Jeremias Maerki2005-12-138-14/+74
| | | | | | | | handling (an NPE and an invalid "==" comparison on Strings). Added a default implementation for loading the raw image. Used by most FopImage implementations. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356612 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37880:Jeremias Maerki2005-12-134-3/+94
| | | | | | | Bugfix for lost footnotes in centered text. Skip elements with no Position in TextLayoutManager. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356594 13f79535-47bb-0310-9956-ffa450edef68
* startVPArea() and endVPArea() made abstract in AbstractRenderer so ↵Jeremias Maerki2005-12-139-153/+306
| | | | | | | | | implementors are forced to deal with the topic. startVPArea() in Renderers now takes an additional parameter for an optional clipping rectangle. PDF, PS and Java2D renderers now perform proper clipping on viewports if requested. Fixed various problems in the Java2D renderer and added border and background painting where still missing. Note that there are several code parts that could be easily shared with the AbstractPathOrientedRenderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356593 13f79535-47bb-0310-9956-ffa450edef68
* New method: FONode.decorateWithContextInfo() adds context information to an ↵Jeremias Maerki2005-12-139-19/+149
| | | | | | | | | | | error or log message by either providing the locator information or by gathering context information from the context FOs. Improved log and error messages in a number of places by adding additional context information that should make it easier to find the location in the source files. Added a check to detect inline overflows (LineLayoutManager). Added a check to detect in-page overflows (PageBreakingAlgorithm). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356592 13f79535-47bb-0310-9956-ffa450edef68
* Removed a method call that is not yet available in the repository. Sorry guys.Jeremias Maerki2005-12-121-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356397 13f79535-47bb-0310-9956-ffa450edef68
* Add checkstyle variable to the header path. This is required by theSimon Pepping2005-12-121-1/+1
| | | | | | | eclipse plugin git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356377 13f79535-47bb-0310-9956-ffa450edef68
* Quick fix to get the size of images right in RTF output. It looks like ↵Jeremias Maerki2005-12-123-21/+95
| | | | | | | | \picwgoalN|\pichgoalN should not be used together with \picscalexN|\pixscaleyN. Some problems remain with uniform scaling and such. Added support for SVG in external-graphic. SVG images are converted to JPEG through Batik at 300 dpi. Note that instream-foreign-object is not supported, yet. It might be good to reuse code from external-graphic for that. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356345 13f79535-47bb-0310-9956-ffa450edef68
* New download locationChristian Geisert2005-12-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356325 13f79535-47bb-0310-9956-ffa450edef68
* XSL 1.1 Bookmarks added to the compliance page.Jeremias Maerki2005-12-112-4/+82
| | | | | | Some more details on the upgrading page. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355950 13f79535-47bb-0310-9956-ffa450edef68
* The result of some practice with CheckstyleSimon Pepping2005-12-094-14/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355471 13f79535-47bb-0310-9956-ffa450edef68
* Made the locator variable on FONode protected.Jeremias Maerki2005-12-096-13/+38
| | | | | | | Locator information is duplicated using SAX's LocatorImpl. Otherwise, the info returned by the Locator information is only valid during FO tree building and validation. If desired code could be added to disable storing locator information even if it is available to use less memory (one LocatorImpl instance per FO tree node) in FOTreeBuilder. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355428 13f79535-47bb-0310-9956-ffa450edef68
* The command-line now automatically sets two parameters for any XSLT ↵Jeremias Maerki2005-12-092-6/+16
| | | | | | | | transformation: "fop-output-format" contains the MIME type of the currently selected output format, "fop-version" contains FOP's version number. Suggested by: Roland Neilands git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355411 13f79535-47bb-0310-9956-ffa450edef68
* The output file is now deleted when an exception occurs when calling FOP ↵Jeremias Maerki2005-12-092-0/+7
| | | | | | from the command-line. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355401 13f79535-47bb-0310-9956-ffa450edef68
* Better approach for enforcing the overflow property on block-containers.Jeremias Maerki2005-12-083-20/+68
| | | | | | Fixed a bug in the PDF and PS renderers concerning the clipping of viewport areas. The order of clipping and establishing the new coordinate system was wrong. Removed an unnecessary save/restoreGraphicsState() pair. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355131 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Areas for table-cells that are broken over more than one page are ↵Jeremias Maerki2005-12-086-18/+41
| | | | | | | | now generated even if all its content is already painted on a previous page. This fixes strange effects like a table grid that is not completely painted. Some check in the test cases had to be adjusted because the indices weren't correct anymore, since now some previously missing areas are generated. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355105 13f79535-47bb-0310-9956-ffa450edef68
* Looks like the 2-column situation has to be handled differently than the ↵Jeremias Maerki2005-12-084-4/+173
| | | | | | | | 3-column approach. The 4-column example shows that my current approach is not good enough and needs to be revisited. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355063 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37828:Jeremias Maerki2005-12-083-1/+82
| | | | | | Bugfix for column balancing with large amounts of text. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355042 13f79535-47bb-0310-9956-ffa450edef68
* Alternative set of rules for text indent calculation (start-indent and ↵Jeremias Maerki2005-12-078-6/+543
| | | | | | | | | end-indent) which tries to mimic many commercial FO implementation that have chosen to break the specification in this aspect. I think I have found the behaviour for most cases. But I'm operating in reverse-engineering mode here and not all FO implementations behave in the same way! This is an optional feature that has to be explicitely enabled through the user agent. Otherwise, FOP will behave like before. In the FO tree tests a processing instruction is used to enable the feature/bug ;-) in the user agent so I can test both cases. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354763 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37815:Jeremias Maerki2005-12-073-2/+61
| | | | | | | Bugfix: The combination of content-width="scale-to-fit" and content-height="100%" did not work as expected due to a datatype conversion bug. Submitted by: Tom <tom.at.craddock.id.au> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354757 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37813:Jeremias Maerki2005-12-075-1/+71
| | | | | | | Fixed a bug that occurred if the first block was span="all". A page break was inserted in this situation, the first span was calculated as if it were span="none". Code added to remove empty span areas. This is a lot easier and cleaner than trying not to instantiate the first span right from the beginning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354752 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: OutputStreams created by the PNG Renderer were not properly closed.Jeremias Maerki2005-12-063-27/+79
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354537 13f79535-47bb-0310-9956-ffa450edef68
* The border-collapse property on fo:table is now forced to the value ↵Jeremias Maerki2005-12-052-2/+9
| | | | | | "separate" until the collapsing border has been implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354075 13f79535-47bb-0310-9956-ffa450edef68
* Better not use something derived from "fantasy" since it's a keyword in the ↵Jeremias Maerki2005-12-021-1/+1
| | | | | | spec. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@351744 13f79535-47bb-0310-9956-ffa450edef68
* font-family list still not fully supported but a comma-separated list is now ↵Jeremias Maerki2005-12-0211-20/+196
| | | | | | properly tokenized. FOP will now go through all fonts in the list to find one that is available, but it doesn't do so per character, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@351734 13f79535-47bb-0310-9956-ffa450edef68
* Implemented 5.3.4 overconstrained geometry without handling the case when ↵Jeremias Maerki2005-12-0211-95/+314
| | | | | | the content IPD is zero. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@351655 13f79535-47bb-0310-9956-ffa450edef68
* Fixing two NPEs occurring with a completely empty table where not even the ↵Jeremias Maerki2005-12-012-2/+4
| | | | | | table-cell has at least one block element and relaxed validation is enabled. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@351491 13f79535-47bb-0310-9956-ffa450edef68
* Test case for Bugzilla #37743, reduced to the absolute minimum.Jeremias Maerki2005-12-012-0/+71
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@351460 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Relatively positioned BlockViewports (from block-containers) caused ↵Jeremias Maerki2005-12-012-9/+5
| | | | | | the paint cursor not be be properly advanced when space-before or space-after were present. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@350269 13f79535-47bb-0310-9956-ffa450edef68
* Added Amin Ahmad's FOP Bridge to the list of tools.Jeremias Maerki2005-12-011-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@350199 13f79535-47bb-0310-9956-ffa450edef68
* Some news sites point to this page as primary link and there's no "download" ↵Jeremias Maerki2005-11-301-0/+6
| | | | | | link visible from here. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349951 13f79535-47bb-0310-9956-ffa450edef68
* Changing the debug level of a not so interesting message.Jeremias Maerki2005-11-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349911 13f79535-47bb-0310-9956-ffa450edef68
* Test case for conditionality notification in table-cell content (Belongs to ↵Jeremias Maerki2005-11-301-0/+73
| | | | | | rev 349909). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349910 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Added missing conditionality notification for table-cell content.Jeremias Maerki2005-11-305-26/+47
| | | | | | | | | Extracted functionality to find a previous break into a helper method in ElementListUtils. Fixed misguided german->english translation on parameter names (last != previous). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349909 13f79535-47bb-0310-9956-ffa450edef68
* Negative widths on inline-progression-dimension and ↵Jeremias Maerki2005-11-293-0/+88
| | | | | | block-progression-dimension should be treated as 0pt but they are currently not. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349743 13f79535-47bb-0310-9956-ffa450edef68
* Support checking for the subcomponents of length-range properties in the FO ↵Jeremias Maerki2005-11-291-0/+5
| | | | | | Tree tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349742 13f79535-47bb-0310-9956-ffa450edef68
* Relaxed validation for border and padding on region-*.Jeremias Maerki2005-11-291-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349740 13f79535-47bb-0310-9956-ffa450edef68
* Looks like font-variant works in 0.20.5. I didn't know.Jeremias Maerki2005-11-291-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349738 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for "/ by zero" ArithmeticExceptions when an URL to a non-existing ↵Jeremias Maerki2005-11-292-13/+79
| | | | | | image is used and content-width and/or content-height is used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349698 13f79535-47bb-0310-9956-ffa450edef68