Vincent Hennebert
b073a605e4
Removed the FO document pre-processing step that was adding ptr and creating a reduced FO tree.
* Removed addPtr.xsl and reduceFOTree.xsl
* Implemented Common Accessibility properties on objects that support them
* Added a special implementation of FOEventHandler to build the structure tree
* Added mockito library and its dependencies
* Added mocks for some FO nodes and properties
* Removed FOTreeUnitTester and converted it into a re-usable FODocumentParser class
* Re-worked table FO test cases accordingly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1188205 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Peter Hancock
5fac6eaf12
Fix FO tree hierarchy: BasicLink shouldn't inherit from Inline
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177251 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jeremias Maerki
7e27b87ae7
Avert a few possible NPEs, ex. rgc-icc() and named-color() on fo:root.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1097736 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
a581b1c788
Bugzilla 51032: Fixed regression due to oversight in refactoring text-decoration.
Invalid values properly reported as errors again, instead of causing a NPE.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1089559 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
d13c4630ad
Bugzilla 50988: Fixed a NullPointerException in case a fo:character was removed due to white-space handling.
Thanks to Matthias Reischenbacher.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088242 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
3274df5c71
Cleanup unused field + dead/commented code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073477 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
0d7a18773e
Fix FindBugs warning...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073468 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
d9c453d8fb
Reverted previous commit; looks like it does require all related property classes to be committed... Better luck next week
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067783 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
910d93cd2e
Bugzilla 50703: Parametrize PropertyCache, switch to parameterless public constructor (+ corresponding update in MarkerAttribute)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067779 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
e1d2e4628b
Commit file necessary to avoid compile error after r1066198
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1066277 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
0bf6f2900d
Small cleanup: extract TextDecorationMaker, move validation into convertProperty() and eliminate unnecessary TextDecorationProperty
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1066198 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
d8261a197b
Bugzilla 48334: Added implementation for xml:base
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1066190 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
941181b8e3
Allow afp:no-operation to be added to fo:page-sequence (page group in AFP) and fo:declarations (document in AFP). Includes a test case.
Update QDox to avoid a bug with class private enums.
Connect some older test cases into the standard test suite.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1066078 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
f540b00cf2
Fix an forgotten change of type in class Area and a checkstyle error in class FObj
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1064159 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
9e0c21610d
Removed unnecessary Checkstyle CSOK comments
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1062741 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
881ef26a95
Make HashMaps type safe + remove corresponding redundant casts and unnecessary (un)boxing
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1062241 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
b970c338ba
Minor fixups: extract addAttributeToList() + no reason to first check the attributeValue to ignore namespace declarations
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1062236 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
57d30ce111
Bugzilla 50626: Fix potential performance issue when adding nodes. Thanks to mkoegler.AT.auto.tuwien.ac.at.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1062225 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
dab44c5bc7
Remove unused class
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1059427 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
b10e0688b1
Enable id property on fo:root.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1059387 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
1eaae07e7d
Fix deprecation warnings; add some type safety
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1058988 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
e5edb89a59
Restored compatibility with third-party extensions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1058295 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
af425f58c3
CheckStyle fixup...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1057931 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
aaf2ae529e
Switch to type-safe collections (+ related cleanup of redundant casts, for-loops...)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1056926 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
f7d9c3fa72
Fix minor bug in validateChildNode() + make regions Map type-safe
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1056924 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
2fb9c63eea
Simplify Region.getViewportRectangle(): no reason to pass the SinglePageMaster as a parameter, as Regions have access to it
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1056923 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Andreas L. Delmelle
e5e7806fd2
Commit changes forgotten in r757256...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1056861 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
7c5be87cdb
Add type-safe parameters to collections; replace XGC jar to benefit from new type-safe methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1055034 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jeremias Maerki
ce6d9e1eee
Adjust to changes in XML Graphics Commons:
- equals() to ColorUtil.isSameColor()
- ICCColorSpaceExt to ICCColorSpaceWithIntent
- int to RenderingIntent enum
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@1045155 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
24e2fad7e1
Allow for words consisting of only soft hyphens; fixes bug 49837
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1042115 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
55fbf51025
Another go at removing all trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1039179 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
bf82c8fb01
Reverting renaming of public methods of rev. 1036179
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1036809 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Simon Pepping
cfa853d5b2
findbugs-reported bug squashing; 959 bugs left (findbugs 1.3.9)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1036179 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
41b4797e3a
Fixed typos and source code indentation issues.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@992386 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Vincent Hennebert
f7710aa99b
Replaced @asf.todo with normal TODO comment
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@990148 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jeremias Maerki
aba436311c
Removed many "// CSOK: ConstantName" instances for constants, by converting them to uppercase as they should really be.
Fixed some other non-Checkstyle issues on the way, imports mainly.
Removed some "log" instances that were not used.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985571 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jeremias Maerki
29e8badcec
Bugzilla #49733:
Resolved compilation (safe one), Checkstyle and many Javadoc warnings.
Submitted by: Glenn Adams <glenn.at.skynav.com>
Changes to patch:
- Restored the deprecated Graphics2DAdapter method (to be removed after Barcode4J 2.1 is released).
- Restored Renderer.startPageSequence(LineArea) pending discussion about removal.
- build.xml: set max VM to 1024MB instead of 2048MB to allow for 32-bit JVMs.
- build.xml: restored longer taskdef names.
- Restored Checkstyle 4 file for people running older IDEs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985537 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Simon Pepping
c81729764a
Removed a bunch of javadoc warnings in addition to patch 49733
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985227 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jeremias Maerki
bad25566ec
Added support for the cie-lab-color() function that is found in the current XSL 2.0 design notes.
Some refactoring of ColorUtil to reduce code duplication.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@959286 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jeremias Maerki
ce1985d668
Added support for the rgb-named-color() function that is found in the current XSL 2.0 design notes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@958992 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Jeremias Maerki
9dc0ea2f7a
Bugzilla #49403:
Initial support for PDF Separation color spaces (aka spot colors). This is still unfinished but produces valid PDF with Separation colors in simple cases.
Based on work by: Patrick Jaromin <Patrick.at.Jaromin.com>
Note: PDFColor is broken right now, as I'm planning to phase that class out. Squeezing separation colors and what else comes later into that class isn't such a good idea IMO. Instead, PDFColorHandler tries to do all that in a better way based on the new color support classes from XGC.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@957913 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
21f5a088d5
Added getEventKey method to Event so that it's no longer necessary to store the whole event ID (fully qualified interface name) in message files
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932519 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
5ca051ca12
Now that the creation of event-model.xml has been standardised, the EventModelFactory mechanism is no longer needed. Removed all the factory classes.
Registration through META-INF/services also is no longer necessary.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932510 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
a5a17890ad
Moved ResourceEventProducer to org.apache.fop
Renamed event model used by FOPTestEventModelFactory to "event-model.xml"
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932497 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
8f6b532710
Split catch-all EventFormatter.xml message file into individual files for each EventProducer. There is no longer a default EventModelFactory
Added test case for font event
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@932481 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
37b744039a
Bugzilla #48071: made the MinOptMax class immutable. Also, lots of clean ups and minor refactorings.
Patch submitted by Alexander Kiel.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@893238 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
c161b98d6d
Bugzilla #48167: when #CMYK pseudo-profile was used in the rgb-icc() function, always the fallback RGB colors were used instead.
Patch submitted by Venkat Reddy
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@883310 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
2a54372f5d
Renamed some variables and methods for consistency.
Improved javadocs.
Code clean-up and simplification.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@828038 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Vincent Hennebert
0a05a9f129
Route message for missing alt-text property through event notification system
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@825964 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Adrian Cumiskey
ea58935a59
Documented with generics comments.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825566 13f79535-47bb-0310-9956-ffa450edef68
14 years ago