LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwHandleAnchorNodeChg Class Reference

#include <HandleAnchorNodeChg.hxx>

Collaboration diagram for SwHandleAnchorNodeChg:
[legend]

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

SwFlyFrameFormatmrFlyFrameFormat
 
bool mbAnchorNodeChanged
 
std::optional< SwPositionmoCommentAnchor
 If the fly frame has a comment, this points to the old comment anchor. More...
 
SwWrtShellmpWrtShell
 

Detailed Description

Definition at line 35 of file HandleAnchorNodeChg.hxx.

Constructor & Destructor Documentation

◆ SwHandleAnchorNodeChg() [1/2]

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.

Parameters
_rFlyFrameFormatreference to the fly frame format instance, which is handled.
_rNewAnchorFormatnew anchor attribute, which will be applied at the given fly frame format
_pKeepThisFlyFrameoptional 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 3335 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::~SwHandleAnchorNodeChg ( )

calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary.

Definition at line 3461 of file atrfrm.cxx.

References ImplDestroy(), and suppress_fun_call_w_exception.

◆ SwHandleAnchorNodeChg() [2/2]

SwHandleAnchorNodeChg::SwHandleAnchorNodeChg ( const SwHandleAnchorNodeChg )
privatedelete

Member Function Documentation

◆ ImplDestroy()

void SwHandleAnchorNodeChg::ImplDestroy ( )
private

◆ operator=()

void SwHandleAnchorNodeChg::operator= ( const  SwHandleAnchorNodeChg)
privatedelete

Member Data Documentation

◆ mbAnchorNodeChanged

bool SwHandleAnchorNodeChg::mbAnchorNodeChanged
private

Definition at line 63 of file HandleAnchorNodeChg.hxx.

Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().

◆ moCommentAnchor

std::optional<SwPosition> SwHandleAnchorNodeChg::moCommentAnchor
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().

◆ mpWrtShell

SwWrtShell* SwHandleAnchorNodeChg::mpWrtShell
private

Definition at line 68 of file HandleAnchorNodeChg.hxx.

Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().

◆ mrFlyFrameFormat

SwFlyFrameFormat& SwHandleAnchorNodeChg::mrFlyFrameFormat
private

Definition at line 60 of file HandleAnchorNodeChg.hxx.

Referenced by ImplDestroy(), and SwHandleAnchorNodeChg().


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