diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2010-04-09 16:09:57 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2010-04-09 16:09:57 +0000 |
commit | 8f6b532710381d795a1cb84d0a2af7b447db74f4 (patch) | |
tree | b7ea4324bfddd198a36a813d7015a33c0b7fbe1f /src/java/org/apache/fop/render/RendererEventProducer.java | |
parent | 83f36b614c3f1f1a866ff70fe9363cd5be31e986 (diff) | |
download | xmlgraphics-fop-8f6b532710381d795a1cb84d0a2af7b447db74f4.tar.gz xmlgraphics-fop-8f6b532710381d795a1cb84d0a2af7b447db74f4.zip |
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
Diffstat (limited to 'src/java/org/apache/fop/render/RendererEventProducer.java')
-rw-r--r-- | src/java/org/apache/fop/render/RendererEventProducer.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/RendererEventProducer.java b/src/java/org/apache/fop/render/RendererEventProducer.java index c61e4a8ee..3eb85be81 100644 --- a/src/java/org/apache/fop/render/RendererEventProducer.java +++ b/src/java/org/apache/fop/render/RendererEventProducer.java @@ -23,6 +23,8 @@ import java.io.IOException; import org.apache.fop.events.EventBroadcaster; import org.apache.fop.events.EventProducer; +import org.apache.fop.events.model.AbstractEventModelFactory; +import org.apache.fop.events.model.EventModel; /** * Event producer interface for rendering-specific events. @@ -43,6 +45,16 @@ public interface RendererEventProducer extends EventProducer { } } + /** Event model factory for Accessibility. */ + public static class EventModelFactory extends AbstractEventModelFactory { + + /** {@inheritDoc} */ + public EventModel createEventModel() { + return loadModel(getClass(), "event-model.xml"); + } + + } + /** * I/O error while writing target file. * @param source the event source |