LibreOffice Module winaccessibility (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CAccTextBase Class Reference

#include <AccTextBase.h>

Inheritance diagram for CAccTextBase:
[legend]
Collaboration diagram for CAccTextBase:
[legend]

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
 

Detailed Description

Definition at line 28 of file AccTextBase.h.

Constructor & Destructor Documentation

◆ CAccTextBase()

CAccTextBase::CAccTextBase ( )

Definition at line 77 of file AccTextBase.cxx.

◆ ~CAccTextBase()

CAccTextBase::~CAccTextBase ( )
virtual

Definition at line 80 of file AccTextBase.cxx.

Member Function Documentation

◆ get_addSelection()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_addSelection ( long  startOffset,
long  endOffset 
)

Get special selection.

Parameters
startOffsetStart selection offset.
endOffsetEnd selection offset.
successVariant to accept the result of if the method call is successful.
Returns
Result.

Definition at line 91 of file AccTextBase.cxx.

References endOffset, GetXInterface(), CUNOXWrapper::pUNOInterface, and startOffset.

Referenced by CAccHypertext::addSelection(), and CAccText::addSelection().

◆ get_caretOffset()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_caretOffset ( long *  offset)

Get caret position.

Parameters
offsetVariant to accept caret offset.
Returns
Result.

Definition at line 246 of file AccTextBase.cxx.

References GetXInterface(), offset, and pRXText.

Referenced by CAccHypertext::get_caretOffset(), and CAccText::get_caretOffset().

◆ get_characterCount()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_characterCount ( long *  nCharacters)

Get character count.

Parameters
nCharactersVariant to accept character count.
Returns
Result.

Definition at line 272 of file AccTextBase.cxx.

References GetXInterface(), and pRXText.

Referenced by get_text().

◆ get_nCharacters()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_nCharacters ( long *  nCharacters)

Get characters count.

Parameters
nCharactersVariant to accept the characters count.
Returns
Result.

Definition at line 766 of file AccTextBase.cxx.

References GetXInterface(), and pRXText.

Referenced by CAccHypertext::get_nCharacters(), and CAccText::get_nCharacters().

◆ get_newText()

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().

◆ get_nSelections()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_nSelections ( long *  nSelections)

Get selections count.

Parameters
nSelectionsVariant to accept selections count.
Returns
Result.

Definition at line 374 of file AccTextBase.cxx.

References GetXInterface(), and CUNOXWrapper::pUNOInterface.

Referenced by CAccHypertext::get_nSelections(), CAccText::get_nSelections(), and get_selection().

◆ get_offsetAtPoint()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_offsetAtPoint ( long  x,
long  y,
IA2CoordinateType  coordType,
long *  offset 
)

Get offset of some special point.

Parameters
xX position of one point.
xY position of one point.
coordTypeType.
offsetVariant to accept offset.
Returns
Result.

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().

◆ get_oldText()

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().

◆ get_selection()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_selection ( long  selectionIndex,
long *  startOffset,
long *  endOffset 
)

Get selection range.

Parameters
selectionselection count.
startOffsetVariant to accept the start offset of special selection.
endOffsetVariant to accept the end offset of special selection.
Returns
Result.

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().

◆ get_text()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::get_text ( long  startOffset,
long  endOffset,
BSTR *  text 
)

Get special text.

Parameters
startOffsetStart position of special range.
endOffsetEnd position of special range.
textVariant to accept the text of special range.
Returns
Result.

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().

◆ GetXInterface()

css::accessibility::XAccessibleText * CAccTextBase::GetXInterface ( )
inlineprivate

◆ put_XInterface()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::put_XInterface ( hyper  pXInterface)
override

Put UNO interface.

Parameters
pXInterfaceUNO interface.
Returns
Result.

Implements IUNOXWrapper.

Definition at line 862 of file AccTextBase.cxx.

References pRXText, CUNOXWrapper::pUNOInterface, and CUNOXWrapper::put_XInterface().

Referenced by CAccHypertext::put_XInterface().

◆ removeSelection()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::removeSelection ( long  selectionIndex)

Remove selection.

Parameters
selectionIndexSpecial selection index
successVariant to accept the method called result.
Returns
Result.

Definition at line 681 of file AccTextBase.cxx.

References GetXInterface(), and CUNOXWrapper::pUNOInterface.

Referenced by CAccHypertext::removeSelection(), and CAccText::removeSelection().

◆ scrollSubstringTo()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::scrollSubstringTo ( long  startIndex,
long  endIndex,
enum IA2ScrollType  scrollType 
)

◆ setCaretOffset()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::setCaretOffset ( long  offset)

Set caret position.

Parameters
offsetSpecial position.
successVariant to accept the method called result.
Returns
Result.

Definition at line 717 of file AccTextBase.cxx.

References GetXInterface(), offset, and pRXText.

Referenced by CAccHypertext::setCaretOffset(), and CAccText::setCaretOffset().

◆ setSelection()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::setSelection ( long  selectionIndex,
long  startOffset,
long  endOffset 
)

Set special selection.

Parameters
selectionIndexSpecial selection index.
startOffsetstart position.
endOffsetend position.
successVariant to accept the method called result.
Returns
Result.

Definition at line 742 of file AccTextBase.cxx.

References endOffset, GetXInterface(), pRXText, and startOffset.

Referenced by CAccHypertext::setSelection(), and CAccText::setSelection().

Member Data Documentation

◆ boundaryType

long IA2TextBoundaryType CAccTextBase::boundaryType

◆ coordType

long IA2CoordinateType CAccTextBase::coordType

◆ endIndex

long long CAccTextBase::endIndex

◆ endOffset [1/2]

long IA2TextBoundaryType long long * CAccTextBase::endOffset

◆ endOffset [2/2]

long IA2TextBoundaryType long long* CAccTextBase::endOffset

Definition at line 71 of file AccTextBase.h.

◆ height

long IA2CoordinateType long long long long* CAccTextBase::height

◆ offset

long CAccTextBase::offset

◆ pRXText

css::uno::Reference<css::accessibility::XAccessibleText> CAccTextBase::pRXText
private

◆ startIndex

long CAccTextBase::startIndex

◆ startOffset [1/2]

long IA2TextBoundaryType long * CAccTextBase::startOffset

◆ startOffset [2/2]

long IA2TextBoundaryType long* CAccTextBase::startOffset

Definition at line 71 of file AccTextBase.h.

◆ text

long IA2TextBoundaryType long long BSTR * CAccTextBase::text

◆ textAttributes

long long long BSTR* CAccTextBase::textAttributes

Definition at line 43 of file AccTextBase.h.

Referenced by CAccHypertext::get_attributes(), and CAccText::get_attributes().

◆ width

long IA2CoordinateType long long long* CAccTextBase::width

◆ x

long IA2CoordinateType long* CAccTextBase::x

◆ y [1/2]

long IA2CoordinateType long long* CAccTextBase::y

◆ y [2/2]

long long enum IA2CoordinateType coordinateType long x long CAccTextBase::y

Definition at line 102 of file AccTextBase.h.


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