LibreOffice Module comphelper (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
comphelper::OAccessibleTextHelper Class Reference

a helper class for implementing an AccessibleExtendedComponent which at the same time supports an XAccessibleText interface More...

#include <accessibletexthelper.hxx>

Inheritance diagram for comphelper::OAccessibleTextHelper:
[legend]
Collaboration diagram for comphelper::OAccessibleTextHelper:
[legend]

Public Member Functions

virtual OUString SAL_CALL getSelectedText () override
 
virtual sal_Int32 SAL_CALL getSelectionStart () override
 
virtual sal_Int32 SAL_CALL getSelectionEnd () 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
 

Protected Member Functions

 OAccessibleTextHelper ()
 
- Protected Member Functions inherited from comphelper::OCommonAccessibleText
 OCommonAccessibleText ()
 
virtual ~OCommonAccessibleText ()
 
css::uno::Reference< css::i18n::XBreakIterator > const & implGetBreakIterator ()
 
css::uno::Reference< css::i18n::XCharacterClassification > const & implGetCharacterClassification ()
 
virtual OUString implGetText ()=0
 
virtual css::lang::Locale implGetLocale ()=0
 
virtual void implGetSelection (sal_Int32 &nStartIndex, sal_Int32 &nEndIndex)=0
 
void implGetGlyphBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex)
 
bool implGetWordBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex)
 
void implGetSentenceBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex)
 
virtual void implGetParagraphBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex)
 
virtual void implGetLineBoundary (const OUString &rText, css::i18n::Boundary &rBoundary, sal_Int32 nIndex)
 
OUString getSelectedText ()
 non-virtual versions of the methods More...
 
sal_Int32 getSelectionStart ()
 
sal_Int32 getSelectionEnd ()
 
css::accessibility::TextSegment getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType)
 
css::accessibility::TextSegment getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType)
 
css::accessibility::TextSegment getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType)
 

Private Member Functions

 OAccessibleTextHelper (OAccessibleTextHelper const &)=delete
 
 OAccessibleTextHelper (OAccessibleTextHelper &&)=delete
 
void operator= (OAccessibleTextHelper const &)=delete
 
void operator= (OAccessibleTextHelper &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from comphelper::OCommonAccessibleText
static bool implInitTextChangedEvent (std::u16string_view rOldString, std::u16string_view rNewString, css::uno::Any &rDeleted, css::uno::Any &rInserted)
 Helper method, that detects the difference between two strings and returns the deleted selection and the inserted selection if available. More...
 
- Static Protected Member Functions inherited from comphelper::OCommonAccessibleText
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 (std::u16string_view rText, sal_Int32 nIndex)
 
static OUString implGetTextRange (std::u16string_view rText, sal_Int32 nStartIndex, sal_Int32 nEndIndex)
 

Detailed Description

a helper class for implementing an AccessibleExtendedComponent which at the same time supports an XAccessibleText interface

Definition at line 117 of file accessibletexthelper.hxx.

Constructor & Destructor Documentation

◆ OAccessibleTextHelper() [1/3]

comphelper::OAccessibleTextHelper::OAccessibleTextHelper ( OAccessibleTextHelper const &  )
privatedelete

◆ OAccessibleTextHelper() [2/3]

comphelper::OAccessibleTextHelper::OAccessibleTextHelper ( OAccessibleTextHelper &&  )
privatedelete

◆ OAccessibleTextHelper() [3/3]

comphelper::OAccessibleTextHelper::OAccessibleTextHelper ( )
protected

Definition at line 739 of file accessibletexthelper.cxx.

Member Function Documentation

◆ getSelectedText()

OUString comphelper::OAccessibleTextHelper::getSelectedText ( )
overridevirtual

◆ getSelectionEnd()

sal_Int32 comphelper::OAccessibleTextHelper::getSelectionEnd ( )
overridevirtual

◆ getSelectionStart()

sal_Int32 comphelper::OAccessibleTextHelper::getSelectionStart ( )
overridevirtual

◆ getTextAtIndex()

TextSegment comphelper::OAccessibleTextHelper::getTextAtIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ getTextBeforeIndex()

TextSegment comphelper::OAccessibleTextHelper::getTextBeforeIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ getTextBehindIndex()

TextSegment comphelper::OAccessibleTextHelper::getTextBehindIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ operator=() [1/2]

void comphelper::OAccessibleTextHelper::operator= ( OAccessibleTextHelper &&  )
privatedelete

◆ operator=() [2/2]

void comphelper::OAccessibleTextHelper::operator= ( OAccessibleTextHelper const &  )
privatedelete

The documentation for this class was generated from the following files: