LibreOffice Module sw (master) 1
|
UNO API wrapper around an SwContentControl, exposed as the com.sun.star.text.ContentControl service. More...
#include <unocontentcontrol.hxx>
Classes | |
class | Impl |
The inner part SwXContentControl, which is deleted with a locked SolarMutex. More... | |
Public Member Functions | |
bool | SetContentRange (SwTextNode *&rpNode, sal_Int32 &rStart, sal_Int32 &rEnd) const |
Initializes params with position of the attribute content (without CH_TXTATR). More... | |
const css::uno::Reference< css::text::XText > & | GetParentText () const |
OUString SAL_CALL | getImplementationName () override |
sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
void SAL_CALL | dispose () override |
void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
css::uno::Type SAL_CALL | getElementType () override |
sal_Bool SAL_CALL | hasElements () override |
css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
void SAL_CALL | attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override |
css::uno::Reference< css::text::XTextRange > SAL_CALL | getAnchor () override |
css::uno::Reference< css::text::XText > SAL_CALL | getText () override |
css::uno::Reference< css::text::XTextRange > SAL_CALL | getStart () override |
css::uno::Reference< css::text::XTextRange > SAL_CALL | getEnd () override |
OUString SAL_CALL | getString () override |
void SAL_CALL | setString (const OUString &rString) override |
css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursor () override |
css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursorByRange (const css::uno::Reference< css::text::XTextRange > &xTextPosition) override |
void SAL_CALL | insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override |
void SAL_CALL | insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override |
void SAL_CALL | insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override |
void SAL_CALL | removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override |
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
void SAL_CALL | setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override |
css::uno::Any SAL_CALL | getPropertyValue (const OUString &rPropertyName) override |
void SAL_CALL | addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
void SAL_CALL | removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
void SAL_CALL | addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
void SAL_CALL | removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
Static Public Member Functions | |
static rtl::Reference< SwXContentControl > | CreateXContentControl (SwContentControl &rContentControl, const css::uno::Reference< css::text::XText > &xParentText=nullptr, std::unique_ptr< const TextRangeList_t > &&pPortions=std::unique_ptr< const TextRangeList_t >()) |
static rtl::Reference< SwXContentControl > | CreateXContentControl (SwDoc &rDoc) |
Protected Member Functions | |
void | AttachImpl (const css::uno::Reference< css::text::XTextRange > &xTextRange, sal_uInt16 nWhich) |
~SwXContentControl () override | |
SwXContentControl (const SwXContentControl &)=delete | |
SwXContentControl & | operator= (const SwXContentControl &)=delete |
SwXContentControl (SwDoc *pDoc, SwContentControl *pContentControl, const css::uno::Reference< css::text::XText > &xParentText, std::unique_ptr< const TextRangeList_t > pPortions) | |
SwXContentControl (SwDoc *pDoc) | |
Private Attributes | |
sw::UnoImplPtr< Impl > | m_pImpl |
UNO API wrapper around an SwContentControl, exposed as the com.sun.star.text.ContentControl service.
Definition at line 49 of file unocontentcontrol.hxx.
|
overrideprotected |
Definition at line 257 of file unocontentcontrol.cxx.
|
protecteddelete |
Referenced by CreateXContentControl().
|
protected |
|
protected |
Definition at line 252 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 358 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 1316 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 1330 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 508 of file unocontentcontrol.cxx.
References AttachImpl(), and RES_TXTATR_CONTENTCONTROL().
|
protected |
Definition at line 407 of file unocontentcontrol.cxx.
References sw::CreateParentXText(), DONTEXPAND, FORCEHINTEXPAND, SwXTextRange::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfContentControl(), m_pImpl, SAL_WARN, and sw::XTextRangeToSwPaM().
Referenced by attach().
|
override |
Definition at line 1357 of file unocontentcontrol.cxx.
References GetParentText(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 571 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 578 of file unocontentcontrol.cxx.
References m_pImpl.
|
static |
|
static |
Definition at line 259 of file unocontentcontrol.cxx.
References SwXContentControl().
|
override |
Definition at line 371 of file unocontentcontrol.cxx.
References aEvent, IDocumentContentOperations::DeleteAndJoin(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 513 of file unocontentcontrol.cxx.
References SwXTextRange::CreateXTextRange(), SwNode::GetDoc(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 1345 of file unocontentcontrol.cxx.
References cppu::UnoType< typename T >::get().
|
override |
Definition at line 552 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 344 of file unocontentcontrol.cxx.
const uno::Reference< text::XText > & SwXContentControl::GetParentText | ( | ) | const |
Definition at line 239 of file unocontentcontrol.cxx.
References m_pImpl.
Referenced by createEnumeration().
|
override |
Definition at line 615 of file unocontentcontrol.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), and PROPERTY_MAP_CONTENTCONTROL.
|
override |
Definition at line 1019 of file unocontentcontrol.cxx.
References SwContentControlListItem::ItemsToAny(), m_pImpl, UNO_NAME_ALIAS, UNO_NAME_APPEARANCE, UNO_NAME_CHECKBOX, UNO_NAME_CHECKED, UNO_NAME_CHECKED_STATE, UNO_NAME_COLOR, UNO_NAME_COMBO_BOX, UNO_NAME_CURRENT_DATE, UNO_NAME_DATA_BINDING_PREFIX_MAPPINGS, UNO_NAME_DATA_BINDING_STORE_ITEM_ID, UNO_NAME_DATA_BINDING_XPATH, UNO_NAME_DATE, UNO_NAME_DATE_FORMAT, UNO_NAME_DATE_LANGUAGE, UNO_NAME_DATE_STRING, UNO_NAME_DROP_DOWN, UNO_NAME_ID, UNO_NAME_LIST_ITEMS, UNO_NAME_LOCK, UNO_NAME_PICTURE, UNO_NAME_PLACEHOLDER_DOC_PART, UNO_NAME_PLAIN_TEXT, UNO_NAME_SHOWING_PLACE_HOLDER, UNO_NAME_TAB_INDEX, UNO_NAME_TAG, and UNO_NAME_UNCHECKED_STATE.
|
override |
Definition at line 546 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 558 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 351 of file unocontentcontrol.cxx.
|
override |
Definition at line 544 of file unocontentcontrol.cxx.
|
override |
Definition at line 1350 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 591 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 584 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 599 of file unocontentcontrol.cxx.
References m_pImpl.
|
protecteddelete |
|
override |
Definition at line 365 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 1323 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 608 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 1337 of file unocontentcontrol.cxx.
References SAL_WARN.
bool SwXContentControl::SetContentRange | ( | SwTextNode *& | rpNode, |
sal_Int32 & | rStart, | ||
sal_Int32 & | rEnd | ||
) | const |
Initializes params with position of the attribute content (without CH_TXTATR).
Definition at line 320 of file unocontentcontrol.cxx.
References SwTextAttr::End(), SwTextAttr::GetStart(), SwContentControl::GetTextAttr(), SwContentControl::GetTextNode(), and m_pImpl.
Referenced by createEnumeration(), dispose(), and getAnchor().
|
override |
Definition at line 624 of file unocontentcontrol.cxx.
References SwContentControlListItem::ItemsFromAny(), m_pImpl, nValue, UNO_NAME_ALIAS, UNO_NAME_APPEARANCE, UNO_NAME_CHECKBOX, UNO_NAME_CHECKED, UNO_NAME_CHECKED_STATE, UNO_NAME_COLOR, UNO_NAME_COMBO_BOX, UNO_NAME_CURRENT_DATE, UNO_NAME_DATA_BINDING_PREFIX_MAPPINGS, UNO_NAME_DATA_BINDING_STORE_ITEM_ID, UNO_NAME_DATA_BINDING_XPATH, UNO_NAME_DATE, UNO_NAME_DATE_FORMAT, UNO_NAME_DATE_LANGUAGE, UNO_NAME_DROP_DOWN, UNO_NAME_ID, UNO_NAME_LIST_ITEMS, UNO_NAME_LOCK, UNO_NAME_PICTURE, UNO_NAME_PLACEHOLDER_DOC_PART, UNO_NAME_PLAIN_TEXT, UNO_NAME_SHOWING_PLACE_HOLDER, UNO_NAME_TAB_INDEX, UNO_NAME_TAG, and UNO_NAME_UNCHECKED_STATE.
|
override |
Definition at line 564 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 346 of file unocontentcontrol.cxx.
References cppu::supportsService().
|
private |
Definition at line 55 of file unocontentcontrol.hxx.
Referenced by addEventListener(), AttachImpl(), createEnumeration(), createTextCursor(), createTextCursorByRange(), dispose(), getAnchor(), getEnd(), GetParentText(), getPropertyValue(), getStart(), getString(), hasElements(), insertControlCharacter(), insertString(), insertTextContent(), removeEventListener(), removeTextContent(), SetContentRange(), setPropertyValue(), and setString().