aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
Commit message (Collapse)AuthorAgeFilesLines
* Applied white-space handling to leaders as well...Andreas L. Delmelle2005-12-301-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@360142 13f79535-47bb-0310-9956-ffa450edef68
* Revision of refinement white-space handling (cfr. Bugzilla 37639)Andreas L. Delmelle2005-12-307-190/+316
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@360083 13f79535-47bb-0310-9956-ffa450edef68
* Block Knuth sequences in inline content are properly joined, takingSimon Pepping2005-12-307-133/+133
| | | | | | | keeps into account. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@360073 13f79535-47bb-0310-9956-ffa450edef68
* Added support for the white-space shorthandAndreas L. Delmelle2005-12-302-0/+78
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359945 13f79535-47bb-0310-9956-ffa450edef68
* Tweak page-break-* shorthands; keeps now working properlyAndreas L. Delmelle2005-12-301-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359939 13f79535-47bb-0310-9956-ffa450edef68
* Added a few missing constants...Andreas L. Delmelle2005-12-301-15/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359938 13f79535-47bb-0310-9956-ffa450edef68
* 1) Added support for the page-break-* shorthandsAndreas L. Delmelle2005-12-293-4/+153
| | | | | | | 2) Minor tweak: added validity check for reference-orientation git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359890 13f79535-47bb-0310-9956-ffa450edef68
* Each block in inline content now appears in its own line area.Simon Pepping2005-12-281-202/+191
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359451 13f79535-47bb-0310-9956-ffa450edef68
* Fix for NPE reported in bugzilla 38053. Unfortunately I have not been able ↵Manuel Mall2005-12-281-1/+3
| | | | | | to construct a small testcase for it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359383 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug 37743 and part of 38053Manuel Mall2005-12-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359368 13f79535-47bb-0310-9956-ffa450edef68
* LineArea had a finalize method which caused a NPE when called from the ↵Manuel Mall2005-12-282-3/+14
| | | | | | garbage collector. I assume it was never intended for this method to be an override of the Java Object finalize method. Renamed the method to finalise. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359364 13f79535-47bb-0310-9956-ffa450edef68
* RTF: If there is no background-color specified for a table-cell, then try to ↵Peter Herweg2005-12-271-0/+16
| | | | | | read it from table-row or table-header. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359308 13f79535-47bb-0310-9956-ffa450edef68
* RTF: Don't set \brsp at tables, because it makes them look quite broken.Peter Herweg2005-12-271-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359302 13f79535-47bb-0310-9956-ffa450edef68
* I generalized several casts from KnuthElement to ListElement. ThisSimon Pepping2005-12-277-22/+27
| | | | | | | | removes a number of ClassCastExceptions in some files with inline block content. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@359189 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Branch fop-0_91:Jeremias Maerki2005-12-231-2/+2
| | | | | | Relaxed validation for empty static-content for compatibility with 0.20.5. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358884 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Branch fop-0_91:Jeremias Maerki2005-12-231-1/+1
| | | | | | Fixed a small oversight. Code is not even in use. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358883 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Branch fop-0_91:Jeremias Maerki2005-12-232-95/+3
| | | | | | Deprecated Fop constructors that use the integer constants for output format selection removed as discussed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358882 13f79535-47bb-0310-9956-ffa450edef68
* Changed use of the lineLayouts member to a local variable as much asSimon Pepping2005-12-231-69/+90
| | | | | | | possible. A few style corrections. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358858 13f79535-47bb-0310-9956-ffa450edef68
* Fixed problem with linefeed-treatment=preserve not being correctly handled ↵Manuel Mall2005-12-232-5/+17
| | | | | | for text-align=center git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358792 13f79535-47bb-0310-9956-ffa450edef68
* As announced, I brought FontTriplet to more life by making it Serializable ↵Jeremias Maerki2005-12-2216-157/+310
| | | | | | and using it to transport the information about the font in use through the area tree. This has small effects on the test cases as the values in the generated XML are slightly different. While refactoring I saw that there's some room for optimization. Too many objects are still created. It should be quite easy now with the FontTriplet to create a small cache. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358613 13f79535-47bb-0310-9956-ffa450edef68
* 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