diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-02-03 19:08:31 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-02-04 13:08:57 +0000 |
commit | 2bb87dd6596f8e961f5618d8e7686fa12c64e2cf (patch) | |
tree | 3b473eec6bcaa2c168e18fe39a8497cfb34ceae8 /sd | |
parent | ac8cb745d7b385b24a3576aa6c40780fdcfe9b15 (diff) |
fdo#39944: Add DOCUMENT_* accessibility UNO roles
Added a set of UNO accessibility roles for specific kinds of
documents:
* DOCUMENT_PRESENTATION for Impress
* DOCUMENT_SPREADSHEET for Calc
* DOCUMENT_TEXT for Writer
The other applications still use the existing DOCUMENT role.
These roles translates directly to ATK but in the other toolkits we
keep using the same association that DOCUMENT role had.
Change-Id: Ibac47527e5effdecb28d2314cde8558cf4fb010a
Reviewed-on: https://gerrit.libreoffice.org/7847
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 1d5815dfd0c9..ab724dba287d 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -63,7 +63,10 @@ AccessibleDocumentViewBase::AccessibleDocumentViewBase ( ::sd::ViewShell* pViewShell, const uno::Reference<frame::XController>& rxController, const uno::Reference<XAccessible>& rxParent) - : AccessibleContextBase (rxParent, AccessibleRole::DOCUMENT), + : AccessibleContextBase (rxParent, + pViewShell->GetDoc()->GetDocumentType() == DOCUMENT_TYPE_IMPRESS ? + AccessibleRole::DOCUMENT_PRESENTATION : + AccessibleRole::DOCUMENT), mpWindow (pSdWindow), mxController (rxController), mxModel (NULL), |