diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory | 1 | ||||
-rw-r--r-- | src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory b/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory index 30fe1f5a5..f5c2aab75 100644 --- a/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory +++ b/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory @@ -5,3 +5,4 @@ org.apache.fop.render.pcl.PCLEventProducer$EventModelFactory org.apache.fop.render.pdf.PDFEventProducer$EventModelFactory org.apache.fop.render.ps.PSEventProducer$EventModelFactory org.apache.fop.render.rtf.RTFEventProducer$EventModelFactory +org.apache.fop.accessibility.AccessibilityEventProducer$EventModelFactory diff --git a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java index 9a74b7ca8..3744ca0b4 100644 --- a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java +++ b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java @@ -21,6 +21,8 @@ package org.apache.fop.accessibility; 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 for accessibility-related events. @@ -44,6 +46,16 @@ public interface AccessibilityEventProducer extends EventProducer { } } + /** Event model factory for Accessibility. */ + public static class EventModelFactory extends AbstractEventModelFactory { + + /** {@inheritDoc} */ + public EventModel createEventModel() { + return loadModel(getClass(), "event-model.xml"); + } + + } + /** * The structure tree is missing in the XML file. * |