aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merged Temp_API_Finalization branch back into FOP Trunk:Jeremias Maerki2006-03-279-57/+77
| | | | | | | | | | | Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign In addition to that: Deprecated the rest of the Fop constructors. Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet. Some further cleanup on the way. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
* ID reference in some checks were wrong.Jeremias Maerki2006-03-251-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388765 13f79535-47bb-0310-9956-ffa450edef68
* Demonstrating negative last-line-end-indent.Jeremias Maerki2006-03-241-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388577 13f79535-47bb-0310-9956-ffa450edef68
* Corrected expectation and behaviour for the text-indent property to only ↵Jeremias Maerki2006-03-241-4/+4
| | | | | | apply to the first line area generated by a block. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388565 13f79535-47bb-0310-9956-ffa450edef68
* Confirming that last-line-end-indent works as specified in XSL 1.0.Jeremias Maerki2006-03-241-0/+94
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388536 13f79535-47bb-0310-9956-ffa450edef68
* Initial support for page-position="last". Feedback requested!Jeremias Maerki2006-03-231-0/+168
| | | | | | See also: http://wiki.apache.org/xmlgraphics-fop/PagePositionLast git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388182 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: display-align did not work if the first object in a page was a table.Luca Furini2006-03-231-0/+255
| | | | | | Testcase added, now all seems ok. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388157 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: CCITT Group 4 encoded TIFF images were not properly embedded in PDF ↵Jeremias Maerki2006-03-182-1/+9
| | | | | | files. FopPDFImage always used the bits/pixel and color space of the original image although our image adapter mostly convert all images to 24bit RGB. One day, we will need to improve the image handling. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386879 13f79535-47bb-0310-9956-ffa450edef68
* Changed the way that text-align-last is calculated. Hopefully, this is it, ↵Jeremias Maerki2006-03-161-2/+24
| | | | | | now. Should fix a bug reported last week on fop-users. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386379 13f79535-47bb-0310-9956-ffa450edef68
* Looks like we already had a test for the bug I fixed in revision 386025. ↵Jeremias Maerki2006-03-161-1/+1
| | | | | | D'oh. Adjusted the space-before to force the second page again. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386341 13f79535-47bb-0310-9956-ffa450edef68
* Added support for fixed-width spaces and kerning.Jeremias Maerki2006-03-1612-71/+618
| | | | | | | | | | | | | | Note: letter-spacing is still implemented as before. Fixing this cannot be done without looking at space resolution as a whole on inline level. The Character area tree object is now deprecated. Normal Text objects should be used to keep renderers simpler. Introduced FontResolver interface to remove the dependency of FOUserAgent into the font package. Added kerning information to the base14 fonts, Helvetica and Times. By default it is not used to keep the status-quo. Enable base14 kerning through the FOUserAgent (FopFactory after the API finalization). Restored the production of EPS images in PDF output as PostScript XObjects. Restored functionality for a more compact format for the area tree renderer to save space. LayoutEngineTester slightly changed to allow for configuration values from the XML file. For now, only enabling base14 kerning is supported. Removed duplicate offset variable in SpaceArea. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386327 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed a copy/paste error in the table layout code that caused wrong ↵Jeremias Maerki2006-03-151-0/+77
| | | | | | page break decisions when table-headers and/or table-footers are used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386025 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Fixed an NPE that was thrown when a table was used inside a ↵Jeremias Maerki2006-03-151-0/+64
| | | | | | footnote-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386015 13f79535-47bb-0310-9956-ffa450edef68
* Test case which demonstrates that a footnote in a fo:inline is swallowed if ↵Jeremias Maerki2006-03-022-0/+52
| | | | | | hyphenation is active. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@382492 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in handling of text-align-last. Value "relative" was not the ↵Jeremias Maerki2006-02-281-0/+59
| | | | | | default and the resolved property was wrong when it was inherited. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381618 13f79535-47bb-0310-9956-ffa450edef68
* Activated refinement white-space-handling for fo:title and fo:bookmark-titleAndreas L. Delmelle2006-02-271-6/+0
| | | | | | | | (treating fo:title the same as fo:bookmark-title -- see XSL-FO 1.1 6.11.3 -> Trait derivation) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381409 13f79535-47bb-0310-9956-ffa450edef68
* Added support for page sequence title in AreaTreeParser (IF). Fixes problems ↵Jeremias Maerki2006-02-261-11/+14
| | | | | | | | in intermediate format test suite. Introduced a PageSequence area tree object to achieve the proper sequence of Renderer.startPageSequence() calls and Renderer.renderPage() calls. Otherwise, the pageSequence elements are not properly placed in the intermediate format. Doesn't really affect the other renderers because they don't really care. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381080 13f79535-47bb-0310-9956-ffa450edef68
* Linefeed treatment and white space collapse are not performed onSimon Pepping2006-02-252-1/+61
| | | | | | | fo:title. A test case to document this. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380918 13f79535-47bb-0310-9956-ffa450edef68
* InlineLM properly creates an AligmentContext for Title.Simon Pepping2006-02-252-1/+49
| | | | | | | Add 2006 to the copyright lines of my previous commit. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380917 13f79535-47bb-0310-9956-ffa450edef68
* block_break-after_2 seems to work. Don't know who/what fixed this. Does anybody?Jeremias Maerki2006-02-241-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380658 13f79535-47bb-0310-9956-ffa450edef68
* Avoid a NullPointerException when fo:title is empty.Simon Pepping2006-02-241-0/+45
| | | | | | | Let PSLM and ContentLM create LMs via LayoutManagerMaker. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@380646 13f79535-47bb-0310-9956-ffa450edef68
* Testcase for the background-position shorthand.Andreas L. Delmelle2006-02-141-0/+71
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377763 13f79535-47bb-0310-9956-ffa450edef68
* Slight correction: single quoted font-family names not properly handledAndreas L. Delmelle2006-02-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377242 13f79535-47bb-0310-9956-ffa450edef68
* Added implementation for the font shorthand property (+ some checkstyle cleanup)Andreas L. Delmelle2006-02-121-0/+74
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377222 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38618:Jeremias Maerki2006-02-111-0/+36
| | | | | | | 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
* Bugfix: Fixed two causes for ClassCastExceptions in BlockContainerLayoutManager.Jeremias Maerki2006-02-091-0/+48
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@376235 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: padding-top and padding-bottom on list-items could lead to wrong ↵Jeremias Maerki2006-02-092-0/+165
| | | | | | | | | 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
* Fix for bug 38507: the elements representing a non-breaking space were not ↵Luca Furini2006-02-074-79/+20
| | | | | | | | | | 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
* Test case for Bugzilla #38507.Jeremias Maerki2006-02-042-0/+86
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374892 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38453:Jeremias Maerki2006-02-021-1/+6
| | | | | | | 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
* Demonstrating the problem reported by Jan Kohnert.Jeremias Maerki2006-02-022-0/+56
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374297 13f79535-47bb-0310-9956-ffa450edef68
* Renaming test case as it doesn't properly describe what it does.Jeremias Maerki2006-02-021-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374296 13f79535-47bb-0310-9956-ffa450edef68
* Further fine-tuning of white-space-handling during refinementAndreas L. Delmelle2006-02-011-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374174 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to commit the failing testcase...Andreas L. Delmelle2006-01-311-0/+101
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373925 13f79535-47bb-0310-9956-ffa450edef68
* Implementation for from-table-column(). See: bugzilla 38282Andreas L. Delmelle2006-01-312-1/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373922 13f79535-47bb-0310-9956-ffa450edef68
* Change TransformerHandler to ContentHandler. Use comment method whenSimon Pepping2006-01-271-2/+2
| | | | | | | available. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372971 13f79535-47bb-0310-9956-ffa450edef68
* Implement new interface methodSimon Pepping2006-01-271-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@372970 13f79535-47bb-0310-9956-ffa450edef68
* TransformerHandler changed to ContentHandler to allow easier integration of ↵Chris Bowditch2006-01-272-2/+2
| | | | | | 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
* Bugzilla #38397: Jeremias Maerki2006-01-261-0/+97
| | | | | | 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
* Command-line support for the intermediate format: Use "-atin" to specify an ↵Jeremias Maerki2006-01-241-3/+1
| | | | | | | | 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
* Following a clarification by the XSL FO SG, space traits are only set on the ↵Jeremias Maerki2006-01-199-164/+39
| | | | | | | | | | 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
* New interface XMLizable (copied from Apache Excalibur) to mark classes that ↵Jeremias Maerki2006-01-191-0/+67
| | | | | | | | | | | 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
* New feature: "Intermediate format" (IF). The IF is basically the XML dialect ↵Jeremias Maerki2006-01-1711-33/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Allow some xsl-function calls with omitted args, patch contributed bySimon Pepping2006-01-121-0/+69
| | | | | | | Gerhard Oettl, bug 38098. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@368462 13f79535-47bb-0310-9956-ffa450edef68
* The last page sequence should also follow its force-page-count trait.Simon Pepping2006-01-103-399/+239
| | | | | | | | 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
* Bugzilla #38054:Jeremias Maerki2006-01-091-0/+50
| | | | | | | | Bugfix: Spans that end up with a negative height don't get swallowed anymore. MainReference.getWidth() removed as it's not used anywhere. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367262 13f79535-47bb-0310-9956-ffa450edef68
* Also let the last page sequence notify its listeners. Add a check forSimon Pepping2006-01-081-0/+2
| | | | | | | the page count to the test case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367020 13f79535-47bb-0310-9956-ffa450edef68
* Create a new check type for the formatting results. For now onlySimon Pepping2006-01-083-5/+98
| | | | | | | checking the pagecount property is implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367019 13f79535-47bb-0310-9956-ffa450edef68
* Implementation of force-page-count property, patch by Gerhard Oettl,Simon Pepping2006-01-061-0/+397
| | | | | | | somewhat rearranged by me. See bug 38087. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366569 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #38135:Jeremias Maerki2006-01-051-0/+48
| | | | | | | Added support for RFC 2397 "data" URLs. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366184 13f79535-47bb-0310-9956-ffa450edef68