LibreOffice Module sw (master)
1
|
Textboxes are basically textframe + shape pairs. More...
#include <textboxhelper.hxx>
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) |
SwFrameFormat * | GetTextBox (const SdrObject *pDrawObject) const |
bool | IsTextBoxActive (const SdrObject *pDrawObject) const |
void | SetTextBoxInactive (const SdrObject *pDrawObject) |
void | SetTextBoxActive (const SdrObject *pDrawObject) |
bool | IsGroupTextBox () const |
SwFrameFormat * | GetOwnerShape () |
size_t | GetTextBoxCount () const |
std::map< SdrObject *, SwFrameFormat * > | GetAllTextBoxes () const |
Private Attributes | |
std::vector< SwTextBoxElement > | m_pTextBoxes |
SwFrameFormat * | m_pOwnerShapeFormat |
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.
|
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.
|
default |
void SwTextBoxNode::AddTextBox | ( | SdrObject * | pDrawObject, |
SwFrameFormat * | pNewTextBox | ||
) |
Definition at line 1638 of file textboxhelper.cxx.
References SwTextBoxNode::SwTextBoxElement::m_bIsActive, SwTextBoxNode::SwTextBoxElement::m_pDrawObject, SwTextBoxNode::SwTextBoxElement::m_pTextBoxFormat, RES_FLYFRMFMT(), SwFlyDrawObj::SetTextBox(), and SwFormat::Which().
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.
|
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.
|
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.
Definition at line 1745 of file textboxhelper.cxx.
Definition at line 1761 of file textboxhelper.cxx.
|
private |
Definition at line 204 of file textboxhelper.hxx.
Referenced by GetOwnerShape().
|
private |
Definition at line 201 of file textboxhelper.hxx.