LibreOffice Module sw (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwTextBoxNode Class Reference

Textboxes are basically textframe + shape pairs. More...

#include <textboxhelper.hxx>

Collaboration diagram for SwTextBoxNode:
[legend]

Classes

struct  SwTextBoxElement
 

Public Member Functions

 SwTextBoxNode ()=delete
 
 SwTextBoxNode (SwFrameFormat *pOwnerShapeFormat)
 
 ~SwTextBoxNode ()
 
 SwTextBoxNode (const SwTextBoxNode &)=default
 
void AddTextBox (SdrObject *pDrawObject, SwFrameFormat *pNewTextBox)
 
void DelTextBox (const SdrObject *pDrawObject, bool bDelFromDoc=false)
 
void DelTextBox (const SwFrameFormat *pTextBox, bool bDelFromDoc=false)
 
SwFrameFormatGetTextBox (const SdrObject *pDrawObject) const
 
void ClearAll ()
 
bool IsGroupTextBox () const
 
SwFrameFormatGetOwnerShape ()
 
size_t GetTextBoxCount () const
 
std::map< SdrObject *, SwFrameFormat * > GetAllTextBoxes () const
 
void Clone (SwDoc *pDoc, const SwFormatAnchor &rNewAnc, SwFrameFormat *o_pTarget, bool bSetAttr, bool bMakeFrame) const
 

Private Member Functions

void Clone_Impl (SwDoc *pDoc, const SwFormatAnchor &rNewAnc, SwFrameFormat *o_pTarget, const SdrObject *pSrcObj, SdrObject *pDestObj, bool bSetAttr, bool bMakeFrame) const
 

Private Attributes

std::vector< SwTextBoxElementm_pTextBoxes
 
SwFrameFormatm_pOwnerShapeFormat
 
bool m_bIsCloningInProgress
 
bool m_bLock
 

Friends

class SwTextBoxLockGuard
 

Detailed Description

Textboxes are basically textframe + shape pairs.

This means one shape has one frame. This is not enough for group shapes, because they have only one shape format and can have many frame formats. This class provides if there is a group shape for example, it can have multiple textboxes.

Definition at line 195 of file textboxhelper.hxx.

Constructor & Destructor Documentation

◆ SwTextBoxNode() [1/3]

SwTextBoxNode::SwTextBoxNode ( )
delete

Referenced by Clone_Impl().

◆ SwTextBoxNode() [2/3]

SwTextBoxNode::SwTextBoxNode ( SwFrameFormat pOwnerShapeFormat)

◆ ~SwTextBoxNode()

SwTextBoxNode::~SwTextBoxNode ( )

Definition at line 1691 of file textboxhelper.cxx.

References m_pTextBoxes, and SAL_WARN.

◆ SwTextBoxNode() [3/3]

SwTextBoxNode::SwTextBoxNode ( const SwTextBoxNode )
default

Member Function Documentation

◆ AddTextBox()

void SwTextBoxNode::AddTextBox ( SdrObject pDrawObject,
SwFrameFormat pNewTextBox 
)

◆ ClearAll()

void SwTextBoxNode::ClearAll ( )

◆ Clone()

void SwTextBoxNode::Clone ( SwDoc pDoc,
const SwFormatAnchor rNewAnc,
SwFrameFormat o_pTarget,
bool  bSetAttr,
bool  bMakeFrame 
) const

◆ Clone_Impl()

void SwTextBoxNode::Clone_Impl ( SwDoc pDoc,
const SwFormatAnchor rNewAnc,
SwFrameFormat o_pTarget,
const SdrObject pSrcObj,
SdrObject pDestObj,
bool  bSetAttr,
bool  bMakeFrame 
) const
private

◆ DelTextBox() [1/2]

void SwTextBoxNode::DelTextBox ( const SdrObject pDrawObject,
bool  bDelFromDoc = false 
)

Definition at line 1728 of file textboxhelper.cxx.

References m_pTextBoxes, and SAL_WARN.

◆ DelTextBox() [2/2]

void SwTextBoxNode::DelTextBox ( const SwFrameFormat pTextBox,
bool  bDelFromDoc = false 
)

Definition at line 1758 of file textboxhelper.cxx.

References m_pTextBoxes, and SAL_WARN.

◆ GetAllTextBoxes()

std::map< SdrObject *, SwFrameFormat * > SwTextBoxNode::GetAllTextBoxes ( ) const

Definition at line 1866 of file textboxhelper.cxx.

References m_pTextBoxes.

◆ GetOwnerShape()

SwFrameFormat * SwTextBoxNode::GetOwnerShape ( )
inline

Definition at line 259 of file textboxhelper.hxx.

References m_pOwnerShapeFormat.

◆ GetTextBox()

SwFrameFormat * SwTextBoxNode::GetTextBox ( const SdrObject pDrawObject) const

◆ GetTextBoxCount()

size_t SwTextBoxNode::GetTextBoxCount ( ) const
inline

Definition at line 262 of file textboxhelper.hxx.

References m_pTextBoxes.

◆ IsGroupTextBox()

bool SwTextBoxNode::IsGroupTextBox ( ) const

Definition at line 1864 of file textboxhelper.cxx.

References m_pTextBoxes.

Friends And Related Function Documentation

◆ SwTextBoxLockGuard

friend class SwTextBoxLockGuard
friend

Definition at line 197 of file textboxhelper.hxx.

Member Data Documentation

◆ m_bIsCloningInProgress

bool SwTextBoxNode::m_bIsCloningInProgress
mutableprivate

Definition at line 215 of file textboxhelper.hxx.

Referenced by Clone(), and SwTextBoxNode().

◆ m_bLock

bool SwTextBoxNode::m_bLock
private

◆ m_pOwnerShapeFormat

SwFrameFormat* SwTextBoxNode::m_pOwnerShapeFormat
private

Definition at line 212 of file textboxhelper.hxx.

Referenced by ClearAll(), Clone(), GetOwnerShape(), GetTextBox(), and SwTextBoxNode().

◆ m_pTextBoxes

std::vector<SwTextBoxElement> SwTextBoxNode::m_pTextBoxes
private

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