LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SwFormatContentControl Class Referencefinal

SfxPoolItem subclass that wraps an SwContentControl. More...

#include <formatcontentcontrol.hxx>

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

Public Member Functions

SwTextContentControlGetTextAttr ()
 
void SetTextAttr (SwTextContentControl *pTextAttr)
 
void DoCopy (SwTextNode &rTargetTextNode)
 This method must be called when the hint is actually copied. More...
 
 SwFormatContentControl (sal_uInt16 nWhich)
 
 SwFormatContentControl (const std::shared_ptr< SwContentControl > &pContentControl, sal_uInt16 nWhich)
 
 ~SwFormatContentControl () override
 
bool operator== (const SfxPoolItem &) const override
 SfxPoolItem. More...
 
SwFormatContentControlClone (SfxItemPool *pPool=nullptr) const override
 
void NotifyChangeTextNode (SwTextNode *pTextNode)
 Notify clients registered at m_pContentControl that this content control is being (re-)moved. More...
 
SwTextNodeGetTextNode () const
 
const std::shared_ptr< SwContentControl > & GetContentControl () const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Static Public Member Functions

static SwFormatContentControlCreatePoolDefault (sal_uInt16 nWhich)
 

Private Attributes

std::shared_ptr< SwContentControlm_pContentControl
 
SwTextContentControlm_pTextAttr
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

SfxPoolItem subclass that wraps an SwContentControl.

Definition at line 54 of file formatcontentcontrol.hxx.

Constructor & Destructor Documentation

◆ SwFormatContentControl() [1/2]

SwFormatContentControl::SwFormatContentControl ( sal_uInt16  nWhich)
explicit

Definition at line 47 of file attrcontentcontrol.cxx.

Referenced by Clone(), and CreatePoolDefault().

◆ SwFormatContentControl() [2/2]

SwFormatContentControl::SwFormatContentControl ( const std::shared_ptr< SwContentControl > &  pContentControl,
sal_uInt16  nWhich 
)
explicit

Definition at line 53 of file attrcontentcontrol.cxx.

References SAL_WARN.

◆ ~SwFormatContentControl()

SwFormatContentControl::~SwFormatContentControl ( )
override

Definition at line 66 of file attrcontentcontrol.cxx.

References m_pContentControl, and NotifyChangeTextNode().

Member Function Documentation

◆ Clone()

SwFormatContentControl * SwFormatContentControl::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 82 of file attrcontentcontrol.cxx.

References m_pContentControl, SwFormatContentControl(), and SfxPoolItem::Which().

◆ CreatePoolDefault()

SwFormatContentControl * SwFormatContentControl::CreatePoolDefault ( sal_uInt16  nWhich)
static

Definition at line 42 of file attrcontentcontrol.cxx.

References SwFormatContentControl().

◆ DoCopy()

void SwFormatContentControl::DoCopy ( SwTextNode rTargetTextNode)

This method must be called when the hint is actually copied.

Definition at line 152 of file attrcontentcontrol.cxx.

References m_pContentControl, and SAL_WARN.

Referenced by SwTextContentControl::CreateTextContentControl().

◆ dumpAsXml()

void SwFormatContentControl::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 165 of file attrcontentcontrol.cxx.

References SfxPoolItem::dumpAsXml(), m_pContentControl, and m_pTextAttr.

Referenced by SwTextAttr::dumpAsXml().

◆ GetContentControl()

const std::shared_ptr< SwContentControl > & SwFormatContentControl::GetContentControl ( ) const
inline

◆ GetTextAttr()

SwTextContentControl * SwFormatContentControl::GetTextAttr ( )
inline

Definition at line 60 of file formatcontentcontrol.hxx.

Referenced by SwContentControl::GetTextAttr().

◆ GetTextNode()

SwTextNode * SwFormatContentControl::GetTextNode ( ) const

Definition at line 140 of file attrcontentcontrol.cxx.

References m_pContentControl.

Referenced by SwTextContentControl::GetTextNode().

◆ NotifyChangeTextNode()

void SwFormatContentControl::NotifyChangeTextNode ( SwTextNode pTextNode)

Notify clients registered at m_pContentControl that this content control is being (re-)moved.

Definition at line 126 of file attrcontentcontrol.cxx.

References m_pContentControl, and SAL_WARN.

Referenced by SwTextContentControl::ChgTextNode(), SetTextAttr(), and ~SwFormatContentControl().

◆ operator==()

bool SwFormatContentControl::operator== ( const SfxPoolItem rOther) const
overridevirtual

SfxPoolItem.

Implements SfxPoolItem.

Definition at line 75 of file attrcontentcontrol.cxx.

References m_pContentControl, and SfxPoolItem::operator==().

◆ SetTextAttr()

void SwFormatContentControl::SetTextAttr ( SwTextContentControl pTextAttr)

Member Data Documentation

◆ m_pContentControl

std::shared_ptr<SwContentControl> SwFormatContentControl::m_pContentControl
private

◆ m_pTextAttr

SwTextContentControl* SwFormatContentControl::m_pTextAttr
private

Definition at line 57 of file formatcontentcontrol.hxx.

Referenced by dumpAsXml(), and SetTextAttr().


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