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 |
void | ClearAll () |
bool | IsGroupTextBox () const |
SwFrameFormat * | GetOwnerShape () |
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< SwTextBoxElement > | m_pTextBoxes |
SwFrameFormat * | m_pOwnerShapeFormat |
bool | m_bIsCloningInProgress |
bool | m_bLock |
Friends | |
class | SwTextBoxLockGuard |
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.
|
delete |
Referenced by Clone_Impl().
SwTextBoxNode::SwTextBoxNode | ( | SwFrameFormat * | pOwnerShapeFormat | ) |
Definition at line 1678 of file textboxhelper.cxx.
References m_bIsCloningInProgress, m_bLock, m_pOwnerShapeFormat, m_pTextBoxes, RES_DRAWFRMFMT(), and SwFormat::Which().
SwTextBoxNode::~SwTextBoxNode | ( | ) |
Definition at line 1691 of file textboxhelper.cxx.
References m_pTextBoxes, and SAL_WARN.
|
default |
void SwTextBoxNode::AddTextBox | ( | SdrObject * | pDrawObject, |
SwFrameFormat * | pNewTextBox | ||
) |
Definition at line 1700 of file textboxhelper.cxx.
References SwTextBoxNode::SwTextBoxElement::m_pDrawObject, m_pTextBoxes, SwTextBoxNode::SwTextBoxElement::m_pTextBoxFormat, RES_FLYFRMFMT(), SAL_WARN, SwFlyDrawObj::SetTextBox(), and SwFormat::Which().
void SwTextBoxNode::ClearAll | ( | ) |
Definition at line 1818 of file textboxhelper.cxx.
References IDocumentLayoutAccess::DelLayoutFormat(), SwFormat::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwDoc::IsInDtor(), m_pOwnerShapeFormat, m_pTextBoxes, and SAL_WARN.
void SwTextBoxNode::Clone | ( | SwDoc * | pDoc, |
const SwFormatAnchor & | rNewAnc, | ||
SwFrameFormat * | o_pTarget, | ||
bool | bSetAttr, | ||
bool | bMakeFrame | ||
) | const |
Definition at line 1876 of file textboxhelper.cxx.
References SwTextBoxHelper::changeAnchor(), Clone_Impl(), SwTextBoxHelper::doTextBoxPositioning(), SwTextBoxHelper::DoTextBoxZOrderCorrection(), SwFrameFormat::FindSdrObject(), m_bIsCloningInProgress, m_pOwnerShapeFormat, m_pTextBoxes, RES_DRAWFRMFMT(), SwTextBoxHelper::syncTextBoxSize(), and SwFormat::Which().
|
private |
Definition at line 1904 of file textboxhelper.cxx.
References Clone_Impl(), IDocumentLayoutAccess::CopyLayoutFormat(), SwFormatAnchor::GetAnchorId(), SdrObject::getChildrenOfSdrObject(), SwDoc::getIDocumentLayoutAccess(), SwFrameFormat::GetOtherTextBoxFormats(), GetTextBox(), i, SAL_WARN, SwFormat::SetFormatAttr(), SwFrameFormat::SetOtherTextBoxFormats(), SwFormatAnchor::SetType(), and SwTextBoxNode().
Referenced by Clone(), and Clone_Impl().
void SwTextBoxNode::DelTextBox | ( | const SdrObject * | pDrawObject, |
bool | bDelFromDoc = false |
||
) |
Definition at line 1728 of file textboxhelper.cxx.
References m_pTextBoxes, and SAL_WARN.
void SwTextBoxNode::DelTextBox | ( | const SwFrameFormat * | pTextBox, |
bool | bDelFromDoc = false |
||
) |
Definition at line 1758 of file textboxhelper.cxx.
References m_pTextBoxes, and SAL_WARN.
std::map< SdrObject *, SwFrameFormat * > SwTextBoxNode::GetAllTextBoxes | ( | ) | const |
Definition at line 1866 of file textboxhelper.cxx.
References m_pTextBoxes.
|
inline |
Definition at line 259 of file textboxhelper.hxx.
References m_pOwnerShapeFormat.
SwFrameFormat * SwTextBoxNode::GetTextBox | ( | const SdrObject * | pDrawObject | ) | const |
Definition at line 1787 of file textboxhelper.cxx.
References SwFrameFormat::GetOtherTextBoxFormats(), m_bLock, m_pOwnerShapeFormat, m_pTextBoxes, and SAL_WARN.
Referenced by Clone_Impl().
|
inline |
Definition at line 262 of file textboxhelper.hxx.
References m_pTextBoxes.
bool SwTextBoxNode::IsGroupTextBox | ( | ) | const |
Definition at line 1864 of file textboxhelper.cxx.
References m_pTextBoxes.
|
friend |
Definition at line 197 of file textboxhelper.hxx.
|
mutableprivate |
Definition at line 215 of file textboxhelper.hxx.
Referenced by Clone(), and SwTextBoxNode().
|
private |
Definition at line 218 of file textboxhelper.hxx.
Referenced by GetTextBox(), SwTextBoxLockGuard::SwTextBoxLockGuard(), SwTextBoxNode(), and SwTextBoxLockGuard::~SwTextBoxLockGuard().
|
private |
Definition at line 212 of file textboxhelper.hxx.
Referenced by ClearAll(), Clone(), GetOwnerShape(), GetTextBox(), and SwTextBoxNode().
|
private |
Definition at line 209 of file textboxhelper.hxx.
Referenced by AddTextBox(), ClearAll(), Clone(), DelTextBox(), GetAllTextBoxes(), GetTextBox(), GetTextBoxCount(), IsGroupTextBox(), SwTextBoxNode(), and ~SwTextBoxNode().