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

SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl. More...

#include <textcontentcontrol.hxx>

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

Public Member Functions

 ~SwTextContentControl () override
 
void ChgTextNode (SwTextNode *pNode)
 
void Delete (bool bSaveContents)
 
SwTextNodeGetTextNode () const
 
OUString ToString () const
 Get the current (potentially invalid) string from the doc. More...
 
void Invalidate ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SwTextAttrEnd
 SwTextAttrEnd (SfxPoolItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
 
virtual const sal_Int32 * GetEnd () const override
 end position More...
 
virtual void SetEnd (sal_Int32) override
 
- Public Member Functions inherited from SwTextAttr
void SetStart (sal_Int32 n)
 start position More...
 
sal_Int32 GetStart () const
 
virtual const sal_Int32 * GetEnd () const
 end position More...
 
virtual void SetEnd (sal_Int32)
 
const sal_Int32 * End () const
 
sal_Int32 GetAnyEnd () const
 end (if available), else start More...
 
void SetDontExpand (bool bDontExpand)
 
bool DontExpand () const
 
bool IsLockExpandFlag () const
 
bool IsDontMoveAttr () const
 
bool IsCharFormatAttr () const
 
bool IsOverlapAllowedAttr () const
 
bool IsPriorityAttr () const
 
void SetPriorityAttr (bool bFlag)
 
bool IsDontExpandStartAttr () const
 
bool IsNesting () const
 
bool HasDummyChar () const
 
bool IsFormatIgnoreStart () const
 
bool IsFormatIgnoreEnd () const
 
void SetFormatIgnoreStart (bool bFlag)
 
void SetFormatIgnoreEnd (bool bFlag)
 
bool HasContent () const
 
const SfxPoolItemGetAttr () const
 
SfxPoolItemGetAttr ()
 
sal_uInt16 Which () const
 
bool operator== (const SwTextAttr &) const
 
const SwFormatCharFormatGetCharFormat () const
 
const SwFormatAutoFormatGetAutoFormat () const
 
const SwFormatFieldGetFormatField () const
 
const SwFormatFootnoteGetFootnote () const
 
const SwFormatLineBreakGetLineBreak () const
 
const SwFormatContentControlGetContentControl () const
 
const SwFormatFlyCntGetFlyCnt () const
 
const SwTOXMarkGetTOXMark () const
 
const SwFormatRefMarkGetRefMark () const
 
const SwFormatINetFormatGetINetFormat () const
 
const SwFormatRubyGetRuby () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Static Public Member Functions

static SwTextContentControlCreateTextContentControl (SwDoc &rDoc, SwTextNode *pTargetTextNode, SwFormatContentControl &rAttr, sal_Int32 nStart, sal_Int32 nEnd, bool bIsCopy)
 
- Static Public Member Functions inherited from SwTextAttr
static void Destroy (SwTextAttr *pToDestroy, SfxItemPool &rPool)
 destroy instance More...
 

Private Member Functions

 SwTextContentControl (SwContentControlManager *pManager, SwFormatContentControl &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
 

Private Attributes

SwContentControlManagerm_pManager
 

Additional Inherited Members

- Protected Member Functions inherited from SwTextAttrNesting
 SwTextAttrNesting (SfxPoolItem &i_rAttr, const sal_Int32 i_nStart, const sal_Int32 i_nEnd)
 
virtual ~SwTextAttrNesting () override
 
- Protected Member Functions inherited from SwTextAttr
 SwTextAttr (SfxPoolItem &rAttr, sal_Int32 nStart)
 
virtual ~SwTextAttr () COVERITY_NOEXCEPT_FALSE
 
void SetLockExpandFlag (bool bFlag)
 
void SetDontMoveAttr (bool bFlag)
 
void SetCharFormatAttr (bool bFlag)
 
void SetOverlapAllowedAttr (bool bFlag)
 
void SetDontExpandStartAttr (bool bFlag)
 
void SetNesting (const bool bFlag)
 
void SetHasDummyChar (const bool bFlag)
 
void SetHasContent (const bool bFlag)
 
- Protected Attributes inherited from SwTextAttrEnd
sal_Int32 m_nEnd
 
- Protected Attributes inherited from SwTextAttr
SwpHintsm_pHints = nullptr
 

Detailed Description

SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl.

Definition at line 27 of file textcontentcontrol.hxx.

Constructor & Destructor Documentation

◆ SwTextContentControl()

SwTextContentControl::SwTextContentControl ( SwContentControlManager pManager,
SwFormatContentControl rAttr,
sal_Int32  nStart,
sal_Int32  nEnd 
)
private

◆ ~SwTextContentControl()

SwTextContentControl::~SwTextContentControl ( )
override

Member Function Documentation

◆ ChgTextNode()

void SwTextContentControl::ChgTextNode ( SwTextNode pNode)

◆ CreateTextContentControl()

SwTextContentControl * SwTextContentControl::CreateTextContentControl ( SwDoc rDoc,
SwTextNode pTargetTextNode,
SwFormatContentControl rAttr,
sal_Int32  nStart,
sal_Int32  nEnd,
bool  bIsCopy 
)
static

◆ Delete()

void SwTextContentControl::Delete ( bool  bSaveContents)

◆ dumpAsXml()

void SwTextContentControl::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwTextAttr.

Definition at line 806 of file attrcontentcontrol.cxx.

References SwTextAttr::dumpAsXml().

◆ GetTextNode()

SwTextNode * SwTextContentControl::GetTextNode ( ) const

◆ Invalidate()

void SwTextContentControl::Invalidate ( )

◆ ToString()

OUString SwTextContentControl::ToString ( ) const

Get the current (potentially invalid) string from the doc.

Definition at line 774 of file attrcontentcontrol.cxx.

References SwTextAttr::End(), SwTextAttr::GetStart(), SwPaM::GetText(), and GetTextNode().

Referenced by SwContentControl::GetSelectedListItem().

Member Data Documentation

◆ m_pManager

SwContentControlManager* SwTextContentControl::m_pManager
private

Definition at line 29 of file textcontentcontrol.hxx.

Referenced by ChgTextNode(), and SwTextContentControl().


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