aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
Commit message (Collapse)AuthorAgeFilesLines
* More work on preparing for the intermediate format.Jeremias Maerki2005-12-2210-27/+69
| | | | | | | Font traits are added in a single place in TraitSetter so it will be easier to change those. Remove direct references on FObjs in the area tree for regions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358555 13f79535-47bb-0310-9956-ffa450edef68
* Add a letterspace in InlineKnuthSequenceSimon Pepping2005-12-222-34/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358552 13f79535-47bb-0310-9956-ffa450edef68
* Issue a warning when an unresolved bookmark item is received. This will be ↵Jeremias Maerki2005-12-221-0/+2
| | | | | | currently triggered by bug #37993. This is just to raise awareness of the problem. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358535 13f79535-47bb-0310-9956-ffa450edef68
* Modified the KnuthSequence system. Transferred logic from the layoutSimon Pepping2005-12-2214-295/+531
| | | | | | | managers to the KnuthSequences. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358534 13f79535-47bb-0310-9956-ffa450edef68
* Introduced a flag to tell the page breaking to operate in auto-height mode, ↵Jeremias Maerki2005-12-224-9/+29
| | | | | | i.e. no overflows can happen. This disables the overflow warnings when footnote-separators are defined. They don't have an explicit height. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358522 13f79535-47bb-0310-9956-ffa450edef68
* Further decoupling the area tree from the FO tree.Jeremias Maerki2005-12-2111-163/+230
| | | | | | | Created a new class org.apache.fop.layoutmgr.Page that holds a reference to the generating SimplePageMaster and the PageViewport. A deserialized area tree doesn't need a reference to the SimplePageMaster. Renamed PageViewportProvider to PageProvider as it now returns Page instances, not (directly) PageViewports. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358254 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add a toString() method to keep tests happy.Jeremias Maerki2005-12-211-1/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358240 13f79535-47bb-0310-9956-ffa450edef68
* First step towards reactivating CachedRenderPagesModel (helps preparing for ↵Jeremias Maerki2005-12-207-26/+146
| | | | | | | | the intermediate format). Fix some serialization problems in the area tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357982 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #37964:Jeremias Maerki2005-12-202-8/+5
| | | | | | Hard breaks with even-page or odd-page were not handled correctly when spaces were surrounding the break. The code that retrieves the break-class from the penalty assumes that the penalty is on the last element in the list, but the space resolution added additional glues after the penalty. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357942 13f79535-47bb-0310-9956-ffa450edef68
* One less lookup.Jeremias Maerki2005-12-191-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357705 13f79535-47bb-0310-9956-ffa450edef68
* Fix for width checks. They didn't take start-indent and end-indent into account.Jeremias Maerki2005-12-192-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357674 13f79535-47bb-0310-9956-ffa450edef68
* Another workaround/hack to deal with non breaking spaces. Also some minor ↵Manuel Mall2005-12-177-11/+33
| | | | | | adjustments to support the planned AFP renderer git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357298 13f79535-47bb-0310-9956-ffa450edef68
* XMLHandler interface changed so it reports whether it supports a particular ↵Jeremias Maerki2005-12-1614-535/+604
| | | | | | | | | | | | | | 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-1511-48/+80
| | | | | | | | | | 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-151-9/+9
| | | | | | | 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-151-0/+10
| | | | 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-151-1/+2
| | | | | | 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-152-0/+18
| | | | | | the available content area. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357000 13f79535-47bb-0310-9956-ffa450edef68
* Don't hyphenate when wrap is set to "no-wrap".Jeremias Maerki2005-12-141-1/+5
| | | | | | | 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-137-14/+69
| | | | | | | | 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-132-3/+7
| | | | | | | 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-137-153/+273
| | | | | | | | | 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
* 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
* 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-091-6/+11
| | | | | | | | 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-091-0/+3
| | | | | | 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-082-20/+13
| | | | | | 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-081-10/+23
| | | | | | | | 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-081-4/+10
| | | | | | | | 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-081-1/+3
| | | | | | 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-072-1/+123
| | | | | | | | | 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-071-2/+2
| | | | | | | 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-073-1/+9
| | | | | | | 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-062-27/+76
| | | | 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-051-2/+5
| | | | | | "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
* font-family list still not fully supported but a comma-separated list is now ↵Jeremias Maerki2005-12-027-18/+180
| | | | | | 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-028-95/+102
| | | | | | 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
* Bugfix: Relatively positioned BlockViewports (from block-containers) caused ↵Jeremias Maerki2005-12-011-8/+0
| | | | | | 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
* 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
* Bugfix: Added missing conditionality notification for table-cell content.Jeremias Maerki2005-11-304-26/+34
| | | | | | | | | 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
* 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
* Bugfix for "/ by zero" ArithmeticExceptions when an URL to a non-existing ↵Jeremias Maerki2005-11-291-13/+24
| | | | | | 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