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

CAccEditableText implements IAccessibleEditableText interface. More...

#include <AccEditableText.h>

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

Public Member Functions

 CAccEditableText ()
 
virtual ~CAccEditableText ()
 
HRESULT SmartQI (REFIID iid, void **ppvObject)
 
STDMETHOD() copyText (long startOffset, long endOffset) override
 Copy a range of text to the clipboard. More...
 
STDMETHOD() deleteText (long startOffset, long endOffset) override
 Deletes a range of text. More...
 
STDMETHOD() insertText (long offset, BSTR *text) override
 Inserts text at a specified offset. More...
 
STDMETHOD() cutText (long startOffset, long endOffset) override
 Cuts a range of text to the clipboard. More...
 
STDMETHOD() pasteText (long offset) override
 Pastes text from clipboard at specified offset. More...
 
STDMETHOD() replaceText (long startOffset, long endOffset, BSTR *text) override
 Replaces range of text with new text. More...
 
STDMETHOD() setAttributes (long startOffset, long endOffset, BSTR *attributes) override
 Sets attributes of range of text. More...
 
STDMETHOD() put_XInterface (hyper pXInterface) override
 Override of IUNOXWrapper. More...
 
HRESULT copyText ([in] long startOffset, [in] long endOffset)
 Copies the text range into the clipboard. More...
 
HRESULT deleteText ([in] long startOffset, [in] long endOffset)
 Deletes a range of text. More...
 
HRESULT insertText ([in] long offset, [in] BSTR *text)
 Inserts text at the specified position. More...
 
HRESULT cutText ([in] long startOffset, [in] long endOffset)
 Deletes a range of text and copies it to the clipboard. More...
 
HRESULT pasteText ([in] long offset)
 Pastes content from the clipboard. More...
 
HRESULT replaceText ([in] long startOffset, [in] long endOffset, [in] BSTR *text)
 Replaces text. More...
 
HRESULT setAttributes ([in] long startOffset, [in] long endOffset, [in] BSTR *attributes)
 Replaces the attributes of a text range by the given set of attributes. 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)
 

Static Public Member Functions

static HRESULT WINAPI SmartQI_ (void *pv, REFIID iid, void **ppvObject, DWORD_PTR)
 

Private Member Functions

css::accessibility::XAccessibleEditableText * GetXInterface ()
 

Static Private Member Functions

static void get_AnyFromOLECHAR (std::u16string_view ouName, const OUString &ouValue, css::uno::Any &rAny)
 Convert attributes string to Any type. More...
 

Private Attributes

css::uno::Reference< css::accessibility::XAccessibleEditableText > pRXEdtTxt
 

Additional Inherited Members

- Protected Member Functions inherited from CUNOXWrapper
 ~CUNOXWrapper ()
 
- Protected Attributes inherited from CUNOXWrapper
css::accessibility::XAccessible * pUNOInterface
 

Detailed Description

CAccEditableText implements IAccessibleEditableText interface.

Definition at line 34 of file AccEditableText.h.

Constructor & Destructor Documentation

◆ CAccEditableText()

CAccEditableText::CAccEditableText ( )
inline

Definition at line 41 of file AccEditableText.h.

◆ ~CAccEditableText()

virtual CAccEditableText::~CAccEditableText ( )
inlinevirtual

Definition at line 45 of file AccEditableText.h.

Member Function Documentation

◆ copyText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::copyText ( long  startOffset,
long  endOffset 
)
override

Copy a range of text to the clipboard.

Parameters
startOffsetthe start offset of copying.
endOffsetthe end offset of copying.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 51 of file AccEditableText.cxx.

References copyText(), GetXInterface(), and pRXEdtTxt.

Referenced by copyText().

◆ cutText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::cutText ( long  startOffset,
long  endOffset 
)
override

Cuts a range of text to the clipboard.

Parameters
startOffsetthe start offset of cutting.
endOffsetthe end offset of cutting.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 131 of file AccEditableText.cxx.

References cutText(), GetXInterface(), and pRXEdtTxt.

Referenced by cutText().

◆ deleteText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::deleteText ( long  startOffset,
long  endOffset 
)
override

Deletes a range of text.

Parameters
startOffsetthe start offset of deleting.
endOffsetthe end offset of deleting.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 78 of file AccEditableText.cxx.

References deleteText(), GetXInterface(), and pRXEdtTxt.

Referenced by deleteText().

◆ get_AnyFromOLECHAR()

void CAccEditableText::get_AnyFromOLECHAR ( std::u16string_view  ouName,
const OUString &  ouValue,
css::uno::Any &  rAny 
)
staticprivate

Convert attributes string to Any type.

Parameters
ouNamethe string of attribute name.
ouValuethe string of attribute value.
rAnythe Any object to be returned.

Definition at line 256 of file AccEditableText.cxx.

References i, nValue, pos, and u.

Referenced by setAttributes().

◆ GetXInterface()

css::accessibility::XAccessibleEditableText * CAccEditableText::GetXInterface ( )
inlineprivate

Definition at line 112 of file AccEditableText.h.

References pRXEdtTxt.

Referenced by copyText(), cutText(), deleteText(), insertText(), pasteText(), replaceText(), and setAttributes().

◆ insertText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::insertText ( long  offset,
BSTR *  text 
)
override

Inserts text at a specified offset.

Parameters
offsetthe offset of inserting.
textthe text to be inserted.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 102 of file AccEditableText.cxx.

References GetXInterface(), insertText(), pRXEdtTxt, and text().

Referenced by insertText().

◆ pasteText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::pasteText ( long  offset)
override

Pastes text from clipboard at specified offset.

Parameters
offsetthe offset of pasting.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 154 of file AccEditableText.cxx.

References GetXInterface(), pasteText(), and pRXEdtTxt.

Referenced by pasteText().

◆ put_XInterface()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::put_XInterface ( hyper  pXInterface)
override

Override of IUNOXWrapper.

Parameters
pXInterfacethe pointer of UNO interface.

Implements IUNOXWrapper.

Definition at line 472 of file AccEditableText.cxx.

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

◆ replaceText()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::replaceText ( long  startOffset,
long  endOffset,
BSTR *  text 
)
override

Replaces range of text with new text.

Parameters
startOffsetthe start offset of replacing.
endOffsetthe end offset of replacing.
textthe replacing text.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 179 of file AccEditableText.cxx.

References GetXInterface(), pRXEdtTxt, replaceText(), and text().

Referenced by replaceText().

◆ setAttributes()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccEditableText::setAttributes ( long  startOffset,
long  endOffset,
BSTR *  attributes 
)
override

Sets attributes of range of text.

Parameters
startOffsetthe start offset.
endOffsetthe end offset.
attributesthe attribute text.
successthe boolean result to be returned.

Implements IAccessibleEditableText.

Definition at line 208 of file AccEditableText.cxx.

References attrName, get_AnyFromOLECHAR(), GetXInterface(), i, nIndex, nPos, pRXEdtTxt, setAttributes(), and Value.

Referenced by setAttributes().

◆ SmartQI()

HRESULT CAccEditableText::SmartQI ( REFIID  iid,
void **  ppvObject 
)
inline

Definition at line 69 of file AccEditableText.h.

Referenced by SmartQI_().

◆ SmartQI_()

static HRESULT WINAPI CAccEditableText::SmartQI_ ( void *  pv,
REFIID  iid,
void **  ppvObject,
DWORD_PTR   
)
inlinestatic

Definition at line 63 of file AccEditableText.h.

References SmartQI().

Member Data Documentation

◆ pRXEdtTxt

css::uno::Reference<css::accessibility::XAccessibleEditableText> CAccEditableText::pRXEdtTxt
private

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