|
LibreOffice Module comphelper (master) 1
|
base class encapsulating common functionality for the helper classes implementing the XAccessibleText More...
#include <accessibletexthelper.hxx>
Static Public Member Functions | |
| 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... | |
Protected Member Functions | |
| 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) |
Static Protected Member Functions | |
| 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) |
Private Attributes | |
| css::uno::Reference< css::i18n::XBreakIterator > | m_xBreakIter |
| css::uno::Reference< css::i18n::XCharacterClassification > | m_xCharClass |
base class encapsulating common functionality for the helper classes implementing the XAccessibleText
Definition at line 42 of file accessibletexthelper.hxx.
|
protected |
Definition at line 49 of file accessibletexthelper.cxx.
|
protectedvirtual |
Definition at line 54 of file accessibletexthelper.cxx.
|
protected |
non-virtual versions of the methods
| css::lang::IndexOutOfBoundsException | |
| css::uno::RuntimeException |
Definition at line 227 of file accessibletexthelper.cxx.
References implGetSelection(), implGetText(), and implGetTextRange().
Referenced by comphelper::OAccessibleTextHelper::getSelectedText().
|
protected |
| css::uno::RuntimeException |
Definition at line 258 of file accessibletexthelper.cxx.
References implGetSelection().
Referenced by comphelper::OAccessibleTextHelper::getSelectionEnd().
|
protected |
| css::uno::RuntimeException |
Definition at line 247 of file accessibletexthelper.cxx.
References implGetSelection().
Referenced by comphelper::OAccessibleTextHelper::getSelectionStart().
|
protected |
| css::lang::IndexOutOfBoundsException | |
| css::lang::IllegalArgumentException | |
| css::uno::RuntimeException |
Definition at line 281 of file accessibletexthelper.cxx.
References implGetGlyphBoundary(), implGetLineBoundary(), implGetParagraphBoundary(), implGetSentenceBoundary(), implGetText(), implGetWordBoundary(), implIsValidBoundary(), implIsValidIndex(), nIndex, and nLength.
Referenced by comphelper::OAccessibleTextHelper::getTextAtIndex().
|
protected |
| css::lang::IndexOutOfBoundsException | |
| css::lang::IllegalArgumentException | |
| css::uno::RuntimeException |
Definition at line 388 of file accessibletexthelper.cxx.
References implGetGlyphBoundary(), implGetLineBoundary(), implGetParagraphBoundary(), implGetSentenceBoundary(), implGetText(), implGetWordBoundary(), implIsValidBoundary(), implIsValidIndex(), nIndex, and nLength.
Referenced by comphelper::OAccessibleTextHelper::getTextBeforeIndex().
|
protected |
| css::lang::IndexOutOfBoundsException | |
| css::lang::IllegalArgumentException | |
| css::uno::RuntimeException |
Definition at line 515 of file accessibletexthelper.cxx.
References implGetGlyphBoundary(), implGetLineBoundary(), implGetParagraphBoundary(), implGetSentenceBoundary(), implGetText(), implGetWordBoundary(), implIsValidBoundary(), implIsValidIndex(), nIndex, and nLength.
Referenced by comphelper::OAccessibleTextHelper::getTextBehindIndex().
|
protected |
Definition at line 59 of file accessibletexthelper.cxx.
References comphelper::getProcessComponentContext(), and m_xBreakIter.
Referenced by implGetGlyphBoundary(), implGetSentenceBoundary(), and implGetWordBoundary().
|
staticprotected |
Definition at line 219 of file accessibletexthelper.cxx.
References implIsValidIndex(), and nIndex.
|
protected |
Definition at line 71 of file accessibletexthelper.cxx.
References comphelper::getProcessComponentContext(), and m_xCharClass.
Referenced by implGetWordBoundary().
|
protected |
Definition at line 100 of file accessibletexthelper.cxx.
References implGetBreakIterator(), implGetLocale(), implIsValidIndex(), nCount, and nIndex.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
protectedvirtual |
Definition at line 202 of file accessibletexthelper.cxx.
References implIsValidIndex(), nIndex, and nLength.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
protectedpure virtual |
Referenced by implGetGlyphBoundary(), implGetSentenceBoundary(), and implGetWordBoundary().
|
protectedvirtual |
Definition at line 179 of file accessibletexthelper.cxx.
References implIsValidIndex(), and nIndex.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
protectedpure virtual |
Referenced by getSelectedText(), getSelectionEnd(), and getSelectionStart().
|
protected |
Definition at line 159 of file accessibletexthelper.cxx.
References implGetBreakIterator(), implGetLocale(), implIsValidIndex(), Locale, and nIndex.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
protectedpure virtual |
Referenced by getSelectedText(), getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
staticprotected |
Definition at line 269 of file accessibletexthelper.cxx.
References implIsValidRange().
Referenced by getSelectedText().
|
protected |
Definition at line 128 of file accessibletexthelper.cxx.
References implGetBreakIterator(), implGetCharacterClassification(), implGetLocale(), implIsValidIndex(), nIndex, and nType.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
static |
Helper method, that detects the difference between two strings and returns the deleted selection and the inserted selection if available.
Definition at line 646 of file accessibletexthelper.cxx.
|
staticprotected |
Definition at line 82 of file accessibletexthelper.cxx.
References nLength.
Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().
|
staticprotected |
Definition at line 88 of file accessibletexthelper.cxx.
References nIndex, and nLength.
Referenced by getTextAtIndex(), getTextBeforeIndex(), getTextBehindIndex(), implGetCharacter(), implGetGlyphBoundary(), implGetLineBoundary(), implGetParagraphBoundary(), implGetSentenceBoundary(), and implGetWordBoundary().
|
staticprotected |
Definition at line 94 of file accessibletexthelper.cxx.
References nLength.
Referenced by implGetTextRange().
|
private |
Definition at line 45 of file accessibletexthelper.hxx.
Referenced by implGetBreakIterator().
|
private |
Definition at line 46 of file accessibletexthelper.hxx.
Referenced by implGetCharacterClassification().