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:


struct  SwTextBoxElement

Public Member Functions

 SwTextBoxNode ()=delete
 SwTextBoxNode (SwFrameFormat *pOwnerShapeFormat)
 ~SwTextBoxNode ()
 SwTextBoxNode (SwTextBoxNode &)=default
void AddTextBox (SdrObject *pDrawObject, SwFrameFormat *pNewTextBox)
void DelTextBox (const SdrObject *pDrawObject)
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

Private Attributes

std::vector< SwTextBoxElementm_pTextBoxes

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

Constructor & Destructor Documentation

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

Definition at line 1385 of file textboxhelper.cxx.

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

SwTextBoxNode::~SwTextBoxNode ( )

Definition at line 1395 of file textboxhelper.cxx.

SwTextBoxNode::SwTextBoxNode ( SwTextBoxNode )

Member Function Documentation

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

Definition at line 1422 of file textboxhelper.cxx.

Referenced by SwFrameFormat::~SwFrameFormat().

SwFrameFormat* SwTextBoxNode::GetOwnerShape ( )
SwFrameFormat * SwTextBoxNode::GetTextBox ( const SdrObject pDrawObject) const
size_t SwTextBoxNode::GetTextBoxCount ( ) const

Definition at line 244 of file textboxhelper.hxx.

bool SwTextBoxNode::IsGroupTextBox ( ) const

Definition at line 1506 of file textboxhelper.cxx.

bool SwTextBoxNode::IsTextBoxActive ( const SdrObject pDrawObject) const

Definition at line 1457 of file textboxhelper.cxx.

void SwTextBoxNode::SetTextBoxActive ( const SdrObject pDrawObject)

Definition at line 1474 of file textboxhelper.cxx.

void SwTextBoxNode::SetTextBoxInactive ( const SdrObject pDrawObject)

Definition at line 1490 of file textboxhelper.cxx.

Referenced by SwTextBoxHelper::destroy().

Member Data Documentation

SwFrameFormat* SwTextBoxNode::m_pOwnerShapeFormat

Definition at line 203 of file textboxhelper.hxx.

Referenced by GetOwnerShape().

std::vector<SwTextBoxElement> SwTextBoxNode::m_pTextBoxes

Definition at line 200 of file textboxhelper.hxx.

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