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::optional< SwPosition > | moCommentAnchor |
If the fly frame has a comment, this points to the old comment anchor. More... | |
SwWrtShell * | mpWrtShell |
Definition at line 34 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 3324 of file atrfrm.cxx.
References SwFrame::Cut(), SwFrame::DestroyFrame(), SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormatAnchor::GetContentAnchor(), SwNode::GetContentNode(), SwRootFrame::GetCurrShell(), SwPosition::GetNode(), SwFrame::getRootFrame(), mbAnchorNodeChanged, moCommentAnchor, mpWrtShell, mrFlyFrameFormat, and SwIterator< TElementType, TSource, eMode >::Next().
SwHandleAnchorNodeChg::~SwHandleAnchorNodeChg | ( | ) |
calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary.
Definition at line 3450 of file atrfrm.cxx.
References ImplDestroy(), and suppress_fun_call_w_exception.
|
privatedelete |
|
private |
Definition at line 3394 of file atrfrm.cxx.
References SwPosition::AdjustContent(), 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, moCommentAnchor, mpWrtShell, mrFlyFrameFormat, SwWrtShell::Pop(), Postit, SwCursorShell::Push(), SwPaM::SetMark(), and SwFieldType::Which().
Referenced by ~SwHandleAnchorNodeChg().
|
privatedelete |
|
private |
Definition at line 62 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 65 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().
|
private |
Definition at line 67 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().
|
private |
Definition at line 59 of file HandleAnchorNodeChg.hxx.
Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().