LibreOffice Module sw (master)
1
|
#include <HandleAnchorNodeChg.hxx>
Public Member Functions | |
SwHandleAnchorNodeChg (SwFlyFrameFormat &_rFlyFrameFormat, const SwFormatAnchor &_rNewAnchorFormat, SwFlyFrame const *_pKeepThisFlyFrame=nullptr) | |
checks, if re-creation of fly frames for an anchor node change at the given fly frame format is necessary, and performs the first part. More... | |
~SwHandleAnchorNodeChg () | |
calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary. More... | |
Private Member Functions | |
void | ImplDestroy () |
SwHandleAnchorNodeChg (const SwHandleAnchorNodeChg &)=delete | |
void | operator= (const SwHandleAnchorNodeChg)=delete |
Private Attributes | |
SwFlyFrameFormat & | mrFlyFrameFormat |
bool | mbAnchorNodeChanged |
std::unique_ptr< SwPosition > | mpCommentAnchor |
If the fly frame has a comment, this points to the old comment anchor. More... | |
SwWrtShell * | mpWrtShell |
Definition at line 35 of file HandleAnchorNodeChg.hxx.
SwHandleAnchorNodeChg::SwHandleAnchorNodeChg | ( | SwFlyFrameFormat & | _rFlyFrameFormat, |
const SwFormatAnchor & | _rNewAnchorFormat, | ||
SwFlyFrame const * | _pKeepThisFlyFrame = nullptr |
||
) |
checks, if re-creation of fly frames for an anchor node change at the given fly frame format is necessary, and performs the first part.
_rFlyFrameFormat | reference to the fly frame format instance, which is handled. |
_rNewAnchorFormat | new anchor attribute, which will be applied at the given fly frame format |
_pKeepThisFlyFrame | optional parameter - pointer to a fly frame of the given fly frame format, which isn't deleted, if re-creation of fly frames is necessary. |
Definition at line 3307 of file atrfrm.cxx.
References SwFrame::Cut(), SwFrame::DestroyFrame(), false, SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNode::GetContentNode(), SwRootFrame::GetCurrShell(), SwNodeIndex::GetNode(), SwFrame::getRootFrame(), mbAnchorNodeChanged, mpCommentAnchor, mpWrtShell, mrFlyFrameFormat, SwIterator< TElementType, TSource, eMode >::Next(), and SwPosition::nNode.
SwHandleAnchorNodeChg::~SwHandleAnchorNodeChg | ( | ) |
calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary.
Definition at line 3433 of file atrfrm.cxx.
References ImplDestroy(), and suppress_fun_call_w_exception.
|
privatedelete |
|
private |
Definition at line 3377 of file atrfrm.cxx.
References SwCursorShell::CreateCursor(), SwEditShell::Delete(), SwCursorShell::DeleteCurrent, SwCursorShell::DestroyCursor(), SwFormat::GetAnchor(), SwFormatAnchor::GetContentAnchor(), SwCursorShell::GetCurrentShellCursor(), SwFormatField::GetField(), SwTextNode::GetFieldTextAttrAt(), SwTextAttr::GetFormatField(), SwPaM::GetMark(), SwPaM::GetPoint(), SwField::GetTyp(), SwFlyFrameFormat::MakeFrames(), mbAnchorNodeChanged, mpCommentAnchor, mpWrtShell, mrFlyFrameFormat, SwPosition::nContent, SwWrtShell::Pop(), Postit, SwCursorShell::Push(), SwPaM::SetMark(), and SwFieldType::Which().
Referenced by ~SwHandleAnchorNodeChg().
|
privatedelete |
|
private |
Definition at line 63 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().
|
private |
If the fly frame has a comment, this points to the old comment anchor.
Definition at line 66 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().
|
private |
Definition at line 68 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().
|
private |
Definition at line 60 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().