diff options
author | Armin Le Grand <alg@apache.org> | 2013-11-27 16:25:40 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2013-11-27 16:25:40 +0000 |
commit | 812e2a8bf64274e47db572b8ca592f49b1263ad7 (patch) | |
tree | 404f9a7432e94c42a09bb76b33eb7d38186ccff6 /sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | |
parent | 9818d8d1c64bd93adfaacb8a2f824a9db1f4987d (diff) |
resync to trunk (after accessibility integration)
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 8fb01e9ea61b..82502b13d83f 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -1902,6 +1902,35 @@ ScShapeChilds* ScAccessibleDocumentPagePreview::GetShapeChilds() return mpShapeChilds; } +//IAccessibility2 Implementation 2009----- +::rtl::OUString ScAccessibleDocumentPagePreview::getAccessibleName(void) +throw (::com::sun::star::uno::RuntimeException) +{ + rtl::OUString sName = String(ScResId(STR_ACC_DOC_SPREADSHEET)); + ScDocument* pScDoc = mpViewShell->GetDocument(); + if ( pScDoc ) + { + rtl::OUString sFileName = pScDoc->getDocAccTitle(); + if ( !sFileName.getLength() ) + { + SfxObjectShell* pObjSh = pScDoc->GetDocumentShell(); + if ( pObjSh ) + { + sFileName = pObjSh->GetTitle( SFX_TITLE_APINAME ); + } + } + if ( sFileName.getLength() ) + { + sName = sFileName + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - ")) + sName; + sName += String(ScResId(STR_ACC_DOC_PREVIEW_SUFFIX)); + + } + } + + return sName; +} +//-----IAccessibility2 Implementation 2009======= + //UNUSED2009-05 uno::Reference < XAccessible > ScAccessibleDocumentPagePreview::GetCurrentAccessibleTable() //UNUSED2009-05 { //UNUSED2009-05 if (!mpTable) |