LibreOffice Module winaccessibility (master) 1
|
#include <AccTextBase.h>
Public Member Functions | |
CAccTextBase () | |
virtual | ~CAccTextBase () |
STDMETHOD() | get_addSelection (long startOffset, long endOffset) |
Get special selection. More... | |
STDMETHOD() | get_caretOffset (long *offset) |
Get caret position. More... | |
STDMETHOD() | get_characterCount (long *nCharacters) |
Get character count. More... | |
STDMETHOD() | get_nSelections (long *nSelections) |
Get selections count. More... | |
STDMETHOD() | get_offsetAtPoint (long x, long y, IA2CoordinateType coordType, long *offset) |
Get offset of some special point. More... | |
STDMETHOD() | get_selection (long selectionIndex, long *startOffset, long *endOffset) |
Get selection range. More... | |
STDMETHOD() | get_text (long startOffset, long endOffset, BSTR *text) |
Get special text. More... | |
STDMETHOD() | removeSelection (long selectionIndex) |
Remove selection. More... | |
STDMETHOD() | setCaretOffset (long offset) |
Set caret position. More... | |
STDMETHOD() | setSelection (long selectionIndex, long startOffset, long endOffset) |
Set special selection. More... | |
STDMETHOD() | get_nCharacters (long *nCharacters) |
Get characters count. More... | |
STDMETHOD() | get_newText (IA2TextSegment *newText) |
STDMETHOD() | get_oldText (IA2TextSegment *oldText) |
STDMETHOD() | scrollSubstringTo (long startIndex, long endIndex, enum IA2ScrollType scrollType) |
STDMETHOD() | put_XInterface (hyper pXInterface) override |
Put UNO interface. More... | |
Public Member Functions inherited from CUNOXWrapper | |
CUNOXWrapper () | |
STDMETHOD() | put_XInterface (hyper pXInterface) override |
STDMETHOD() | put_XSubInterface (hyper) override |
HRESULT | put_XInterface (hyper pXInterface) |
HRESULT | put_XSubInterface (hyper pXSubInterface) |
Public Attributes | |
long | offset |
long long * | startOffset |
long long long * | endOffset |
long long long BSTR * | textAttributes |
long IA2CoordinateType | coordType |
long IA2CoordinateType long * | x |
long IA2CoordinateType long long * | y |
long IA2CoordinateType long long long * | width |
long IA2CoordinateType long long long long * | height |
long IA2TextBoundaryType | boundaryType |
long IA2TextBoundaryType long * | startOffset |
long IA2TextBoundaryType long long * | endOffset |
long IA2TextBoundaryType long long BSTR * | text |
long | startIndex |
long long | endIndex |
long long enum IA2CoordinateType coordinateType long x long | y |
Private Member Functions | |
css::accessibility::XAccessibleText * | GetXInterface () |
Private Attributes | |
css::uno::Reference< css::accessibility::XAccessibleText > | pRXText |
Additional Inherited Members | |
Protected Member Functions inherited from CUNOXWrapper | |
~CUNOXWrapper () | |
Protected Attributes inherited from CUNOXWrapper | |
css::accessibility::XAccessible * | pUNOInterface |
Definition at line 28 of file AccTextBase.h.
CAccTextBase::CAccTextBase | ( | ) |
Definition at line 77 of file AccTextBase.cxx.
|
virtual |
Definition at line 80 of file AccTextBase.cxx.
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_addSelection | ( | long | startOffset, |
long | endOffset | ||
) |
Get special selection.
startOffset | Start selection offset. |
endOffset | End selection offset. |
success | Variant to accept the result of if the method call is successful. |
Definition at line 91 of file AccTextBase.cxx.
References endOffset, GetXInterface(), CUNOXWrapper::pUNOInterface, and startOffset.
Referenced by CAccHypertext::addSelection(), and CAccText::addSelection().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_caretOffset | ( | long * | offset | ) |
Get caret position.
offset | Variant to accept caret offset. |
Definition at line 246 of file AccTextBase.cxx.
References GetXInterface(), offset, and pRXText.
Referenced by CAccHypertext::get_caretOffset(), and CAccText::get_caretOffset().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_characterCount | ( | long * | nCharacters | ) |
Get character count.
nCharacters | Variant to accept character count. |
Definition at line 272 of file AccTextBase.cxx.
References GetXInterface(), and pRXText.
Referenced by get_text().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_nCharacters | ( | long * | nCharacters | ) |
Get characters count.
nCharacters | Variant to accept the characters count. |
Definition at line 766 of file AccTextBase.cxx.
References GetXInterface(), and pRXText.
Referenced by CAccHypertext::get_nCharacters(), and CAccText::get_nCharacters().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_newText | ( | IA2TextSegment * | newText | ) |
Definition at line 789 of file AccTextBase.cxx.
Referenced by CAccHypertext::get_newText(), and CAccText::get_newText().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_nSelections | ( | long * | nSelections | ) |
Get selections count.
nSelections | Variant to accept selections count. |
Definition at line 374 of file AccTextBase.cxx.
References GetXInterface(), and CUNOXWrapper::pUNOInterface.
Referenced by CAccHypertext::get_nSelections(), CAccText::get_nSelections(), and get_selection().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_offsetAtPoint | ( | long | x, |
long | y, | ||
IA2CoordinateType | coordType, | ||
long * | offset | ||
) |
Get offset of some special point.
x | X position of one point. |
x | Y position of one point. |
coordType | Type. |
offset | Variant to accept offset. |
Definition at line 420 of file AccTextBase.cxx.
References GetXInterface(), offset, point(), pRXText, x, and y.
Referenced by CAccHypertext::get_offsetAtPoint(), and CAccText::get_offsetAtPoint().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_oldText | ( | IA2TextSegment * | oldText | ) |
Definition at line 794 of file AccTextBase.cxx.
Referenced by CAccHypertext::get_oldText(), and CAccText::get_oldText().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_selection | ( | long | selectionIndex, |
long * | startOffset, | ||
long * | endOffset | ||
) |
Get selection range.
selection | selection count. |
startOffset | Variant to accept the start offset of special selection. |
endOffset | Variant to accept the end offset of special selection. |
Definition at line 449 of file AccTextBase.cxx.
References endOffset, get_nSelections(), GetXInterface(), CUNOXWrapper::pUNOInterface, and startOffset.
Referenced by CAccHypertext::get_selection(), and CAccText::get_selection().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_text | ( | long | startOffset, |
long | endOffset, | ||
BSTR * | text | ||
) |
Get special text.
startOffset | Start position of special range. |
endOffset | End position of special range. |
text | Variant to accept the text of special range. |
Definition at line 498 of file AccTextBase.cxx.
References endOffset, get_characterCount(), GetXInterface(), pRXText, startOffset, and text.
Referenced by CAccHypertext::get_text(), and CAccText::get_text().
|
inlineprivate |
Definition at line 110 of file AccTextBase.h.
Referenced by get_addSelection(), get_caretOffset(), get_characterCount(), get_nCharacters(), get_nSelections(), get_offsetAtPoint(), get_selection(), get_text(), removeSelection(), scrollSubstringTo(), setCaretOffset(), and setSelection().
|
override |
Put UNO interface.
pXInterface | UNO interface. |
Implements IUNOXWrapper.
Definition at line 862 of file AccTextBase.cxx.
References pRXText, CUNOXWrapper::pUNOInterface, and CUNOXWrapper::put_XInterface().
Referenced by CAccHypertext::put_XInterface().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::removeSelection | ( | long | selectionIndex | ) |
Remove selection.
selectionIndex | Special selection index |
success | Variant to accept the method called result. |
Definition at line 681 of file AccTextBase.cxx.
References GetXInterface(), and CUNOXWrapper::pUNOInterface.
Referenced by CAccHypertext::removeSelection(), and CAccText::removeSelection().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::scrollSubstringTo | ( | long | startIndex, |
long | endIndex, | ||
enum IA2ScrollType | scrollType | ||
) |
Definition at line 810 of file AccTextBase.cxx.
References endIndex, GetXInterface(), IA2_SCROLL_TYPE_ANYWHERE, IA2_SCROLL_TYPE_BOTTOM_EDGE, IA2_SCROLL_TYPE_BOTTOM_RIGHT, IA2_SCROLL_TYPE_LEFT_EDGE, IA2_SCROLL_TYPE_RIGHT_EDGE, IA2_SCROLL_TYPE_TOP_EDGE, IA2_SCROLL_TYPE_TOP_LEFT, pRXText, scrollSubstringTo(), startIndex, and type.
Referenced by scrollSubstringTo(), CAccHypertext::scrollSubstringTo(), and CAccText::scrollSubstringTo().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::setCaretOffset | ( | long | offset | ) |
Set caret position.
offset | Special position. |
success | Variant to accept the method called result. |
Definition at line 717 of file AccTextBase.cxx.
References GetXInterface(), offset, and pRXText.
Referenced by CAccHypertext::setCaretOffset(), and CAccText::setCaretOffset().
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::setSelection | ( | long | selectionIndex, |
long | startOffset, | ||
long | endOffset | ||
) |
Set special selection.
selectionIndex | Special selection index. |
startOffset | start position. |
endOffset | end position. |
success | Variant to accept the method called result. |
Definition at line 742 of file AccTextBase.cxx.
References endOffset, GetXInterface(), pRXText, and startOffset.
Referenced by CAccHypertext::setSelection(), and CAccText::setSelection().
long IA2TextBoundaryType CAccTextBase::boundaryType |
Definition at line 71 of file AccTextBase.h.
Referenced by CAccHypertext::get_textAfterOffset(), CAccText::get_textAfterOffset(), CAccHypertext::get_textAtOffset(), CAccText::get_textAtOffset(), CAccHypertext::get_textBeforeOffset(), and CAccText::get_textBeforeOffset().
long IA2CoordinateType CAccTextBase::coordType |
Definition at line 54 of file AccTextBase.h.
Referenced by CAccHypertext::get_characterExtents(), CAccText::get_characterExtents(), CAccHypertext::get_offsetAtPoint(), and CAccText::get_offsetAtPoint().
long long CAccTextBase::endIndex |
Definition at line 102 of file AccTextBase.h.
Referenced by scrollSubstringTo(), CAccHypertext::scrollSubstringTo(), CAccText::scrollSubstringTo(), CAccHypertext::scrollSubstringToPoint(), and CAccText::scrollSubstringToPoint().
long IA2TextBoundaryType long long * CAccTextBase::endOffset |
Definition at line 43 of file AccTextBase.h.
Referenced by CAccHypertext::addSelection(), CAccText::addSelection(), get_addSelection(), CAccHypertext::get_attributes(), CAccText::get_attributes(), CAccHypertext::get_selection(), CAccText::get_selection(), get_selection(), get_text(), CAccHypertext::get_text(), CAccText::get_text(), CAccHypertext::get_textAfterOffset(), CAccText::get_textAfterOffset(), CAccHypertext::get_textAtOffset(), CAccText::get_textAtOffset(), CAccHypertext::get_textBeforeOffset(), CAccText::get_textBeforeOffset(), setSelection(), CAccHypertext::setSelection(), and CAccText::setSelection().
long IA2TextBoundaryType long long* CAccTextBase::endOffset |
Definition at line 71 of file AccTextBase.h.
long IA2CoordinateType long long long long* CAccTextBase::height |
Definition at line 54 of file AccTextBase.h.
Referenced by CAccHypertext::get_characterExtents(), and CAccText::get_characterExtents().
long CAccTextBase::offset |
Definition at line 43 of file AccTextBase.h.
Referenced by CAccHypertext::get_attributes(), CAccText::get_attributes(), get_caretOffset(), CAccHypertext::get_caretOffset(), CAccText::get_caretOffset(), CAccHypertext::get_characterExtents(), CAccText::get_characterExtents(), get_offsetAtPoint(), CAccHypertext::get_offsetAtPoint(), CAccText::get_offsetAtPoint(), CAccHypertext::get_textAfterOffset(), CAccText::get_textAfterOffset(), CAccHypertext::get_textAtOffset(), CAccText::get_textAtOffset(), CAccHypertext::get_textBeforeOffset(), CAccText::get_textBeforeOffset(), setCaretOffset(), CAccHypertext::setCaretOffset(), and CAccText::setCaretOffset().
|
private |
Definition at line 108 of file AccTextBase.h.
Referenced by get_caretOffset(), get_characterCount(), get_nCharacters(), get_offsetAtPoint(), get_text(), put_XInterface(), scrollSubstringTo(), setCaretOffset(), and setSelection().
long CAccTextBase::startIndex |
Definition at line 102 of file AccTextBase.h.
Referenced by scrollSubstringTo(), CAccHypertext::scrollSubstringTo(), CAccText::scrollSubstringTo(), CAccHypertext::scrollSubstringToPoint(), and CAccText::scrollSubstringToPoint().
long IA2TextBoundaryType long * CAccTextBase::startOffset |
Definition at line 43 of file AccTextBase.h.
Referenced by CAccHypertext::addSelection(), CAccText::addSelection(), get_addSelection(), CAccHypertext::get_attributes(), CAccText::get_attributes(), CAccHypertext::get_selection(), CAccText::get_selection(), get_selection(), get_text(), CAccHypertext::get_text(), CAccText::get_text(), CAccHypertext::get_textAfterOffset(), CAccText::get_textAfterOffset(), CAccHypertext::get_textAtOffset(), CAccText::get_textAtOffset(), CAccHypertext::get_textBeforeOffset(), CAccText::get_textBeforeOffset(), setSelection(), CAccHypertext::setSelection(), and CAccText::setSelection().
long IA2TextBoundaryType long* CAccTextBase::startOffset |
Definition at line 71 of file AccTextBase.h.
long IA2TextBoundaryType long long BSTR * CAccTextBase::text |
Definition at line 71 of file AccTextBase.h.
Referenced by get_text(), CAccHypertext::get_text(), CAccText::get_text(), CAccHypertext::get_textAfterOffset(), CAccText::get_textAfterOffset(), CAccHypertext::get_textAtOffset(), CAccText::get_textAtOffset(), CAccHypertext::get_textBeforeOffset(), and CAccText::get_textBeforeOffset().
long long long BSTR* CAccTextBase::textAttributes |
Definition at line 43 of file AccTextBase.h.
Referenced by CAccHypertext::get_attributes(), and CAccText::get_attributes().
long IA2CoordinateType long long long* CAccTextBase::width |
Definition at line 54 of file AccTextBase.h.
Referenced by CAccHypertext::get_characterExtents(), and CAccText::get_characterExtents().
long IA2CoordinateType long* CAccTextBase::x |
Definition at line 54 of file AccTextBase.h.
Referenced by CAccHypertext::get_characterExtents(), CAccText::get_characterExtents(), get_offsetAtPoint(), CAccHypertext::get_offsetAtPoint(), CAccText::get_offsetAtPoint(), CAccHypertext::scrollSubstringToPoint(), and CAccText::scrollSubstringToPoint().
long IA2CoordinateType long long* CAccTextBase::y |
Definition at line 54 of file AccTextBase.h.
Referenced by CAccHypertext::get_characterExtents(), CAccText::get_characterExtents(), get_offsetAtPoint(), CAccHypertext::get_offsetAtPoint(), CAccText::get_offsetAtPoint(), CAccHypertext::scrollSubstringToPoint(), and CAccText::scrollSubstringToPoint().
long long enum IA2CoordinateType coordinateType long x long CAccTextBase::y |
Definition at line 102 of file AccTextBase.h.