summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorColomban Wendling <cwendling@hypra.fr>2020-04-30 10:49:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-07 12:11:33 +0200
commitb46a0a7f9f88a0213b0a5ca2712b6eb93b74d088 (patch)
treeaf83d20d3c08508268c465a7c6983db294f64559 /starmath
parente420b89a698f50b174422b962a24e2a21672a178 (diff)
tdf#118418 implement scrollSubstringTo() for gtk
Define & use new accessibility scroll type compatible with IAccessible2 and extend the XAccessibleText interface to require scrollSubstringTo(). Co-authored-by: Martin Pieuchot <mpi@grenadille.net> Change-Id: Id3b2e8616892d7dcbfb41a14b72a8a457fd1dbf6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89851 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/accessibility.cxx5
-rw-r--r--starmath/source/accessibility.hxx2
2 files changed, 7 insertions, 0 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index e7f0bf900d78..854f09443712 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -718,6 +718,11 @@ sal_Bool SAL_CALL SmGraphicAccessible::copyText(
return bReturn;
}
+sal_Bool SAL_CALL SmGraphicAccessible::scrollSubstringTo( sal_Int32, sal_Int32, AccessibleScrollType )
+{
+ return false;
+}
+
OUString SAL_CALL SmGraphicAccessible::getImplementationName()
{
return "SmGraphicAccessible";
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx
index 5fce05b193da..8cccdc916e72 100644
--- a/starmath/source/accessibility.hxx
+++ b/starmath/source/accessibility.hxx
@@ -20,6 +20,7 @@
#ifndef INCLUDED_STARMATH_SOURCE_ACCESSIBILITY_HXX
#define INCLUDED_STARMATH_SOURCE_ACCESSIBILITY_HXX
+#include <com/sun/star/accessibility/AccessibleScrollType.hpp>
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
@@ -128,6 +129,7 @@ public:
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
+ virtual sal_Bool SAL_CALL scrollSubstringTo( sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( ) override;