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 () COVERITY_NOEXCEPT_FALSE
 calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary. More...
 

Private Member Functions

 SwHandleAnchorNodeChg (const SwHandleAnchorNodeChg &)=delete
 
void operator= (const SwHandleAnchorNodeChg)=delete
 

Private Attributes

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

Detailed Description

Definition at line 32 of file HandleAnchorNodeChg.hxx.

Constructor & Destructor Documentation

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 3223 of file atrfrm.cxx.

References SwFrame::Cut(), SwFrame::DestroyFrame(), 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 ( )
SwHandleAnchorNodeChg::SwHandleAnchorNodeChg ( const SwHandleAnchorNodeChg )
privatedelete

Member Function Documentation

void SwHandleAnchorNodeChg::operator= ( const SwHandleAnchorNodeChg  )
privatedelete

Member Data Documentation

bool SwHandleAnchorNodeChg::mbAnchorNodeChanged
private

Definition at line 60 of file HandleAnchorNodeChg.hxx.

Referenced by SwHandleAnchorNodeChg(), and ~SwHandleAnchorNodeChg().

std::unique_ptr<SwPosition> SwHandleAnchorNodeChg::mpCommentAnchor
private

If the fly frame has a comment, this points to the old comment anchor.

Definition at line 63 of file HandleAnchorNodeChg.hxx.

Referenced by SwHandleAnchorNodeChg(), and ~SwHandleAnchorNodeChg().

SwWrtShell* SwHandleAnchorNodeChg::mpWrtShell
private

Definition at line 65 of file HandleAnchorNodeChg.hxx.

Referenced by SwHandleAnchorNodeChg(), and ~SwHandleAnchorNodeChg().

SwFlyFrameFormat& SwHandleAnchorNodeChg::mrFlyFrameFormat
private

Definition at line 57 of file HandleAnchorNodeChg.hxx.

Referenced by SwHandleAnchorNodeChg(), and ~SwHandleAnchorNodeChg().


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