LibreOffice Module winaccessibility (master) 1
|
CAccEditableText implements IAccessibleEditableText interface. More...
#include <AccEditableText.h>
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 |
CAccEditableText implements IAccessibleEditableText interface.
Definition at line 34 of file AccEditableText.h.
|
inline |
Definition at line 41 of file AccEditableText.h.
|
inlinevirtual |
Definition at line 45 of file AccEditableText.h.
|
override |
Copy a range of text to the clipboard.
startOffset | the start offset of copying. |
endOffset | the end offset of copying. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 51 of file AccEditableText.cxx.
References copyText(), GetXInterface(), and pRXEdtTxt.
Referenced by copyText().
|
override |
Cuts a range of text to the clipboard.
startOffset | the start offset of cutting. |
endOffset | the end offset of cutting. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 131 of file AccEditableText.cxx.
References cutText(), GetXInterface(), and pRXEdtTxt.
Referenced by cutText().
|
override |
Deletes a range of text.
startOffset | the start offset of deleting. |
endOffset | the end offset of deleting. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 78 of file AccEditableText.cxx.
References deleteText(), GetXInterface(), and pRXEdtTxt.
Referenced by deleteText().
|
staticprivate |
Convert attributes string to Any type.
ouName | the string of attribute name. |
ouValue | the string of attribute value. |
rAny | the Any object to be returned. |
Definition at line 256 of file AccEditableText.cxx.
References i, nValue, pos, and u.
Referenced by setAttributes().
|
inlineprivate |
Definition at line 112 of file AccEditableText.h.
References pRXEdtTxt.
Referenced by copyText(), cutText(), deleteText(), insertText(), pasteText(), replaceText(), and setAttributes().
|
override |
Inserts text at a specified offset.
offset | the offset of inserting. |
text | the text to be inserted. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 102 of file AccEditableText.cxx.
References GetXInterface(), insertText(), pRXEdtTxt, and text().
Referenced by insertText().
|
override |
Pastes text from clipboard at specified offset.
offset | the offset of pasting. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 154 of file AccEditableText.cxx.
References GetXInterface(), pasteText(), and pRXEdtTxt.
Referenced by pasteText().
|
override |
Override of IUNOXWrapper.
pXInterface | the pointer of UNO interface. |
Implements IUNOXWrapper.
Definition at line 472 of file AccEditableText.cxx.
References pRXEdtTxt, CUNOXWrapper::pUNOInterface, and CUNOXWrapper::put_XInterface().
|
override |
Replaces range of text with new text.
startOffset | the start offset of replacing. |
endOffset | the end offset of replacing. |
text | the replacing text. |
success | the boolean result to be returned. |
Implements IAccessibleEditableText.
Definition at line 179 of file AccEditableText.cxx.
References GetXInterface(), pRXEdtTxt, replaceText(), and text().
Referenced by replaceText().
|
override |
Sets attributes of range of text.
startOffset | the start offset. |
endOffset | the end offset. |
attributes | the attribute text. |
success | the 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().
|
inline |
Definition at line 69 of file AccEditableText.h.
Referenced by SmartQI_().
|
inlinestatic |
Definition at line 63 of file AccEditableText.h.
References SmartQI().
|
private |
Definition at line 108 of file AccEditableText.h.
Referenced by copyText(), cutText(), deleteText(), GetXInterface(), insertText(), pasteText(), put_XInterface(), replaceText(), and setAttributes().