diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2012-05-25 15:15:28 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2012-05-25 15:15:28 +0000 |
commit | 89b98e43e014d7045a548b7f88be265c2621a328 (patch) | |
tree | 2fd521a451fb8be4e28a2c54706f62740028e16e /src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java | |
parent | f227dce56c9bed87a8cd0daec86267e43d2b2ae1 (diff) | |
download | xmlgraphics-fop-89b98e43e014d7045a548b7f88be265c2621a328.tar.gz xmlgraphics-fop-89b98e43e014d7045a548b7f88be265c2621a328.zip |
Added support for the role property on fo:page-sequence, fo:flow and fo:static-content.
This allows to change the mapping of those FOs to PDF structure types when enabling accessibility.
Suggested by Martin Koegler as part of Bugzilla #50852
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1342680 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java')
-rw-r--r-- | src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java b/src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java index 957f40870..51f7f2bed 100644 --- a/src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java +++ b/src/java/org/apache/fop/accessibility/fo/StructureTreeEventTrigger.java @@ -89,7 +89,8 @@ class StructureTreeEventTrigger extends FOEventHandler { locale = new Locale(pageSeq.getLanguage()); } } - structureTreeEventHandler.startPageSequence(locale); + String role = pageSeq.getCommonAccessibility().getRole(); + structureTreeEventHandler.startPageSequence(locale, role); } @Override |