summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2018-03-25 13:49:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 10:39:12 +0200
commit84958e1a1bd9a3019300f558c66e468f8accf279 (patch)
treee90a8f51d7b325c14ed4452e476c73574d78d954 /accessibility
parent8bc951daf79decbd8a599a409c6d33c5456710e0 (diff)
accessibility: more simplifiation in OCommonAccessibleText.
Change-Id: If1284f2e50be08372dda08a8250263c9ec435923 Reviewed-on: https://gerrit.libreoffice.org/51825 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/extended/textwindowaccessibility.hxx6
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx14
2 files changed, 12 insertions, 8 deletions
diff --git a/accessibility/inc/extended/textwindowaccessibility.hxx b/accessibility/inc/extended/textwindowaccessibility.hxx
index 8487da9d9da7..7299b3954a9f 100644
--- a/accessibility/inc/extended/textwindowaccessibility.hxx
+++ b/accessibility/inc/extended/textwindowaccessibility.hxx
@@ -161,9 +161,11 @@ public:
private:
// OCommonAccessibleText
- virtual void implGetParagraphBoundary( css::i18n::Boundary& rBoundary,
+ virtual void implGetParagraphBoundary( const OUString& rText,
+ css::i18n::Boundary& rBoundary,
::sal_Int32 nIndex ) override;
- virtual void implGetLineBoundary( css::i18n::Boundary& rBoundary,
+ virtual void implGetLineBoundary( const OUString& rText,
+ css::i18n::Boundary& rBoundary,
::sal_Int32 nIndex ) override;
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index 4c5309795867..50ea92f78238 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -634,10 +634,11 @@ void Paragraph::implGetSelection(::sal_Int32 & rStartIndex,
}
// virtual
-void Paragraph::implGetParagraphBoundary( css::i18n::Boundary& rBoundary,
- ::sal_Int32 nIndex )
+void Paragraph::implGetParagraphBoundary( const OUString& rText,
+ css::i18n::Boundary& rBoundary,
+ ::sal_Int32 nIndex )
{
- ::sal_Int32 nLength = implGetText().getLength();
+ ::sal_Int32 nLength = rText.getLength();
if ( implIsValidIndex( nIndex, nLength ) )
{
@@ -652,10 +653,11 @@ void Paragraph::implGetParagraphBoundary( css::i18n::Boundary& rBoundary,
}
// virtual
-void Paragraph::implGetLineBoundary( css::i18n::Boundary& rBoundary,
- ::sal_Int32 nIndex )
+void Paragraph::implGetLineBoundary( const OUString& rText,
+ css::i18n::Boundary& rBoundary,
+ ::sal_Int32 nIndex )
{
- ::sal_Int32 nLength = implGetText().getLength();
+ ::sal_Int32 nLength = rText.getLength();
if ( implIsValidIndex( nIndex, nLength ) || nIndex == nLength )
{