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 |
sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &Identifier) override |
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 css::uno::Reference< css::text::XTextContent > | 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 css::uno::Reference< css::text::XTextContent > | CreateXContentControl (SwDoc &rDoc) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
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) | |
Protected Attributes | |
sw::UnoImplPtr< Impl > | m_pImpl |
UNO API wrapper around an SwContentControl, exposed as the com.sun.star.text.ContentControl service.
Definition at line 48 of file unocontentcontrol.hxx.
|
overrideprotected |
Definition at line 248 of file unocontentcontrol.cxx.
|
protecteddelete |
Referenced by CreateXContentControl().
|
protected |
|
protected |
Definition at line 243 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 367 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 1071 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 1085 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 515 of file unocontentcontrol.cxx.
References AttachImpl(), and RES_TXTATR_CONTENTCONTROL().
|
protected |
Definition at line 416 of file unocontentcontrol.cxx.
References sw::CreateParentXText(), DONTEXPAND, FORCEHINTEXPAND, SwXTextRange::GetDoc(), OTextCursorHelper::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfContentControl(), m_pImpl, SAL_WARN, and sw::XTextRangeToSwPaM().
Referenced by attach().
|
override |
Definition at line 1112 of file unocontentcontrol.cxx.
References GetParentText(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 578 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 585 of file unocontentcontrol.cxx.
References m_pImpl.
|
static |
Referenced by lcl_CreateContentControlPortion(), and SwXServiceProvider::MakeInstance().
|
static |
Definition at line 250 of file unocontentcontrol.cxx.
References SwXContentControl().
|
override |
Definition at line 380 of file unocontentcontrol.cxx.
References aEvent, IDocumentContentOperations::DeleteAndJoin(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 520 of file unocontentcontrol.cxx.
References SwXTextRange::CreateXTextRange(), SwNode::GetDoc(), m_pImpl, SAL_WARN, and SetContentRange().
|
override |
Definition at line 1100 of file unocontentcontrol.cxx.
References cppu::UnoType< typename T >::get().
|
override |
Definition at line 559 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 353 of file unocontentcontrol.cxx.
const uno::Reference< text::XText > & SwXContentControl::GetParentText | ( | ) | const |
Definition at line 230 of file unocontentcontrol.cxx.
References m_pImpl.
Referenced by createEnumeration().
|
override |
Definition at line 622 of file unocontentcontrol.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), and PROPERTY_MAP_CONTENTCONTROL.
|
override |
Definition at line 880 of file unocontentcontrol.cxx.
References SwContentControlListItem::ItemsToAny(), m_pImpl, UNO_NAME_CHECKBOX, UNO_NAME_CHECKED, UNO_NAME_CHECKED_STATE, UNO_NAME_COLOR, 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_LIST_ITEMS, UNO_NAME_PICTURE, UNO_NAME_PLACEHOLDER_DOC_PART, UNO_NAME_SHOWING_PLACE_HOLDER, and UNO_NAME_UNCHECKED_STATE.
|
override |
Definition at line 347 of file unocontentcontrol.cxx.
|
override |
Definition at line 553 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 565 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 360 of file unocontentcontrol.cxx.
|
override |
Definition at line 551 of file unocontentcontrol.cxx.
|
static |
Definition at line 340 of file unocontentcontrol.cxx.
References comphelper::UnoIdInit::getSeq().
|
override |
Definition at line 1105 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 598 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 591 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 606 of file unocontentcontrol.cxx.
|
protecteddelete |
|
override |
Definition at line 374 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 1078 of file unocontentcontrol.cxx.
References SAL_WARN.
|
override |
Definition at line 615 of file unocontentcontrol.cxx.
|
override |
Definition at line 1092 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 317 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 631 of file unocontentcontrol.cxx.
References SwContentControlListItem::ItemsFromAny(), m_pImpl, UNO_NAME_CHECKBOX, UNO_NAME_CHECKED, UNO_NAME_CHECKED_STATE, UNO_NAME_COLOR, 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_LIST_ITEMS, UNO_NAME_PICTURE, UNO_NAME_PLACEHOLDER_DOC_PART, UNO_NAME_SHOWING_PLACE_HOLDER, and UNO_NAME_UNCHECKED_STATE.
|
override |
Definition at line 571 of file unocontentcontrol.cxx.
References m_pImpl.
|
override |
Definition at line 355 of file unocontentcontrol.cxx.
References cppu::supportsService().
|
protected |
Definition at line 57 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().