summaryrefslogtreecommitdiffstats
path: root/include/comphelper
diff options
context:
space:
mode:
authorArnaud Versini <Arnaud.Versini@libreoffice.org>2017-11-12 18:40:19 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-13 07:12:38 +0100
commit99872adcfbcee7bb2e6b2f35c05cb34bb8be76ee (patch)
treec643bbd2e6dec95cfd6a44372d769a3a6ce38d77 /include/comphelper
parentclang-tidy modernize-use-equals-default in editeng (diff)
downloadcore-99872adcfbcee7bb2e6b2f35c05cb34bb8be76ee.tar.gz
core-99872adcfbcee7bb2e6b2f35c05cb34bb8be76ee.zip
Remove OAccessibleTextHelper::getCharacter and getTextRange
Change-Id: Ib32e3ca6ba55ab99820a54023041247cea96ab0c Reviewed-on: https://gerrit.libreoffice.org/44652 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/accessibletexthelper.hxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/comphelper/accessibletexthelper.hxx b/include/comphelper/accessibletexthelper.hxx
index 95ca38cf5673..e522448132cd 100644
--- a/include/comphelper/accessibletexthelper.hxx
+++ b/include/comphelper/accessibletexthelper.hxx
@@ -53,6 +53,8 @@ namespace comphelper
static bool implIsValidBoundary( css::i18n::Boundary const & rBoundary, sal_Int32 nLength );
static bool implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength );
static bool implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength );
+ static sal_Unicode implGetCharacter( const OUString& rText, sal_Int32 nIndex );
+ static OUString implGetTextRange( const OUString& rTest, sal_Int32 nStartIndex, sal_Int32 nEndIndex );
virtual OUString implGetText() = 0;
virtual css::lang::Locale implGetLocale() = 0;
virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex ) = 0;
@@ -67,17 +69,12 @@ namespace comphelper
@throws css::lang::IndexOutOfBoundsException
@throws css::uno::RuntimeException
*/
- sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex );
- /// @throws css::uno::RuntimeException
OUString SAL_CALL getSelectedText();
/// @throws css::uno::RuntimeException
sal_Int32 SAL_CALL getSelectionStart();
/// @throws css::uno::RuntimeException
sal_Int32 SAL_CALL getSelectionEnd();
/// @throws css::lang::IndexOutOfBoundsException
- /// @throws css::uno::RuntimeException
- OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex );
- /// @throws css::lang::IndexOutOfBoundsException
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType );
@@ -134,11 +131,9 @@ namespace comphelper
DECLARE_XTYPEPROVIDER( )
// XAccessibleText
- virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) override;
virtual OUString SAL_CALL getSelectedText() override;
virtual sal_Int32 SAL_CALL getSelectionStart() override;
virtual sal_Int32 SAL_CALL getSelectionEnd() override;
- virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
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;