LibreOffice Module sw (master)  1
Classes | Public Member Functions | Private Attributes | 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
 
bool IsTextBoxActive (const SdrObject *pDrawObject) const
 
void SetTextBoxInactive (const SdrObject *pDrawObject)
 
void SetTextBoxActive (const SdrObject *pDrawObject)
 
bool IsGroupTextBox () const
 
SwFrameFormatGetOwnerShape ()
 
size_t GetTextBoxCount () const
 
std::map< SdrObject *, SwFrameFormat * > GetAllTextBoxes () const
 

Private Attributes

std::vector< SwTextBoxElementm_pTextBoxes
 
SwFrameFormatm_pOwnerShapeFormat
 

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 187 of file textboxhelper.hxx.

Constructor & Destructor Documentation

SwTextBoxNode::SwTextBoxNode ( )
delete
SwTextBoxNode::SwTextBoxNode ( SwFrameFormat pOwnerShapeFormat)

Definition at line 1626 of file textboxhelper.cxx.

References RES_DRAWFRMFMT(), and SwFormat::Which().

SwTextBoxNode::~SwTextBoxNode ( )

Definition at line 1636 of file textboxhelper.cxx.

SwTextBoxNode::SwTextBoxNode ( const SwTextBoxNode )
default

Member Function Documentation

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

Definition at line 1657 of file textboxhelper.cxx.

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

Definition at line 1685 of file textboxhelper.cxx.

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

Definition at line 1779 of file textboxhelper.cxx.

SwFrameFormat* SwTextBoxNode::GetOwnerShape ( )
inline

Definition at line 248 of file textboxhelper.hxx.

References m_pOwnerShapeFormat.

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

Definition at line 1712 of file textboxhelper.cxx.

size_t SwTextBoxNode::GetTextBoxCount ( ) const
inline

Definition at line 250 of file textboxhelper.hxx.

bool SwTextBoxNode::IsGroupTextBox ( ) const

Definition at line 1777 of file textboxhelper.cxx.

bool SwTextBoxNode::IsTextBoxActive ( const SdrObject pDrawObject) const

Definition at line 1728 of file textboxhelper.cxx.

void SwTextBoxNode::SetTextBoxActive ( const SdrObject pDrawObject)

Definition at line 1745 of file textboxhelper.cxx.

void SwTextBoxNode::SetTextBoxInactive ( const SdrObject pDrawObject)

Definition at line 1761 of file textboxhelper.cxx.

Member Data Documentation

SwFrameFormat* SwTextBoxNode::m_pOwnerShapeFormat
private

Definition at line 204 of file textboxhelper.hxx.

Referenced by GetOwnerShape().

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

Definition at line 201 of file textboxhelper.hxx.


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