Jeremias Maerki
a00f808465
Generalized FOValidationEventListenerProxy into FOPEventListenerProxy, the main proxy for FOP's own event manipulation proxy. Done because of support for overflow="hidden" vs. overflow="error-if-overflow".
Switched block-level layout managers to events.
Some cleanup along the way.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@638777 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
fa66d451bc
Added DEBUG level.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@638774 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1ecc692ea4
Events for inline-level layout managers.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@638302 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
02d9ed9724
Added support for java.util.text's ChoiceFormat to AdvancedMessageFormat.
Reuse the regexes as constants.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@638299 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
798d729c78
Events on FOTreeBuilder.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637952 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
f4f57eda62
Removed unlocalizable validation helper methods.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637947 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
eb5750ed3a
Switched pagination package to events.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637938 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
a5e5cc9b55
Throw a meaningful exception when the property name is wrong. Otherwise, there will be an ArrayIndexOutOfBoundsException.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637859 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
c3151fba8e
Throw a meaningful exception when the property name is wrong. Otherwise, there will be an ArrayIndexOutOfBoundsException.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637838 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
2b9e6bc11f
Throw a RuntimeException of no other Exception class is specified for an event as a fallback if someone just sets the event severity to FATAL.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637835 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
770e99f449
Exception while cloning for RetrieveMarker to be handled by user as suggested by Andreas.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@637833 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
480691ee69
Non-FO children were not properly run through validation by FOTreeBuilder.
Unified the way that non-FO elements are validated. Some FOs were already fixed. I now fixed the rest, so foreign elements can occur everywhere.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634738 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
4e8c727986
Avoid an NPE that says nothing (ex. could happen if the message template is wrong).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634712 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
885d8bb08e
More FO tree stuff switched to events.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634692 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
5b0ead2956
Made the "invalidChild" event fully localizable by adding a "lookup" field for the optional rule to be displayed.
And a few switches to the event system.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634381 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
6d87b943c7
Deprecated FOP's QName. Mixing with Commons' variant only produces problems.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634328 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
fe56de210b
Remaining table FOs switched to events.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634326 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
53bfa5e2b9
ExceptionFactory is now dynamically registered.
More table warnings and errors switch to events.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634280 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
ee3a14e3cd
Merged revisions 611116-634214 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
(details omitted)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634267 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
128d81aeb5
Made FOPException localizable.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634209 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
53c07bbe1c
Improved context gathering.
Moved GatherContextInfoFunction to an inner class of FONode to reduce visibilities.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634208 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1f53548e24
SVN Props
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634031 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
97f19394d5
Moved AdvancedMessageFormat into its own package.
AdvancedMessageFormat got the following added functionality:
- Alternative conditional regions [ bla {field}] -> [ bla {field1}| even more bla {field2}]
- Functions: functions get access to the parameters and they can produce an object that is then formatted ({#gatherContextInfo})
- "if" and "equals" format moved to top-level classes and added by dynamic registration.
EventFormatter now supports includes in the form {{includeName}} so you can include other entries from the resource bundle for better reuse.
Some more events in table code.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@634027 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
e4faa836ac
Instead of always decentrally checking whether strict validation is enabled or not, this is now done in a special event listener. The event producer method caller simply indicates whether it can recover from the error condition and continue.
Started switching to event production in table FOs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@633858 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
ab8f504933
Javadocs.
Moved out event listener registration into a CompositeEventListener.
Event broadcaster uses the events effective severity, not the initial value (for the case where listeners override the initial value).
Set up a special EventBroadCaster in the FOUserAgent that filters events through a class (FOValidationEventListenerProxy) that adjusts the event severity for relaxed validation.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@633857 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
f625fa9dc2
Javadocs and TODOs.
EventListeners can change the event severity.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@633856 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
5bb7a3047b
Added support for additional field styles:
{<fieldname>,if,<true-text>,<false-text>}
{<fieldname>,equals,<test-string>,<true-text>,<false-text>}
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@633855 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
a7880e05a8
Add severity to formatting parameters.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@633852 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
a4e166a2b9
Deprecated two methods which are a problem for localization. Also helps finding additional spots to switch over to the event mechanism.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@631268 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
e7a96819e8
Removed superfluous warning.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@631252 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
10f5f3e870
Fop's QName now extends XGCommons' QName to initiate a transition.
Hooked PropertyList into the event mechanism.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@619359 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1f5d4678e8
FObj hooked into the event system.
Code reduction using a protected method on FONode to acquire a FOValidationEventProducer.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@619320 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
3f2ff8112e
Log what translation file is being written.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@619314 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
4a0e95eb94
Make sure no events are now just silently swallowed because after upgrading a user doesn't know about the event system.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@619313 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
5e14e68602
Hooked most of FONode into the new event mechanism. The FOUserAgent provides a DefaultEventBroadcaster instance.
If a producer method declares throwing an exception, the event is automatically marked FATAL and the dynamic proxy throws an exception right after notifying the listeners.
The exceptions are created through the EventExceptionManager. It currently contains only one exception factory for ValidationException. If we need more such factories it's better to register them dynamically. Right now, they're hard-coded.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@618686 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
fcd0f0160c
Add support for special object formatters (where toString() isn't good enough). ATM, it's hard-coded but could later be hooked into dynamic discovery if we have multiple such formatters. The SAX Locator is the only example for now.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@618682 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
5dcb7bf4b4
Extracted formatting functionality into utility class AdvancedMessageFormat.java.
AdvancedMessageFormat.java now supports conditional sub-groups (delimited by []).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@617413 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1c0e0c65d7
Some remaining rename operations based on an earlier discussion.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@617362 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
c8bee14be1
Renamed FopEvent to Event as suggested by Simon.
EventProducerCollectorTask.java now reads the EventSeverity from a doclet tag.
Added generation of EventProducer translations (including simple merging, no validation, yet)
EventFormatter introduced (only basic functionality, yet).
Added a simple EventListener implementation that uses EventFormatter to convert the events to human-readable, localized messages that are sent to the log via Commons Logging.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@617176 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Vincent Hennebert
b73c851326
Minor typo + slight improvement of Javadoc
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@617097 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
41f5c4aef9
Added an XMLResourceBundle that uses an XML file instead of a properties file to load the translations. The XML format is the same as for Cocoon's XMLResourceBundle.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@616907 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
afa8aa4799
Generate event model XMLs in to the build directory: build/gensrc and build/test-gensrc (the latter is new and needs to be setup as source folder in your IDE!)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@616900 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Vincent Hennebert
f241c3946d
Trick to avoid hard-coding the class name of EventProducer in the source file.
Feel free to revert if it's not ok.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@616242 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1c8309fbd0
No casting in client code when creating EventProducer instances.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@615773 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
d2075b4467
EventProducer interfaces now operational.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@615278 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
74e88cc75d
Initial commit of what I've built already for those who prefer code to minimalistic design docs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@615155 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
1d1316fc1d
Created temporary branch for processing feedback.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ProcessingFeedback@615153 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Jeremias Maerki
8b281b7c15
Added support for DOMSource to Preloader SVG so a URI Resolver can be written that provides the SVG as a W3C SVG DOM.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615144 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Vincent Hennebert
4b75aa4cd5
Bugzilla #44289: Wrong border resolution when header/footer omitted at break
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614993 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година
Vincent Hennebert
05121561b1
Added license header
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614966 13f79535-47bb-0310-9956-ffa450edef68
пре 16 година