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

#include <UndoCore.hxx>

Inheritance diagram for SwUndoSetFlyFormat:
[legend]
Collaboration diagram for SwUndoSetFlyFormat:
[legend]

Public Member Functions

 SwUndoSetFlyFormat (SwFrameFormat &rFlyFormat, const SwFrameFormat &rNewFrameFormat)
 
virtual ~SwUndoSetFlyFormat () override
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
virtual SwRewriter GetRewriter () const override
 Returns the rewriter for this object. More...
 
- Public Member Functions inherited from SwUndo
virtual void UndoImpl (::sw::UndoRedoContext &)=0
 
virtual void RedoImpl (::sw::UndoRedoContext &)=0
 
 SwUndo (SwUndoId const nId, const SwDoc *pDoc)
 
virtual ~SwUndo () override
 
SwUndoId GetId () const
 
virtual OUString GetComment () const override
 Returns textual comment for this undo object. More...
 
ViewShellId GetViewShellId () const override
 See SfxUndoAction::GetViewShellId(). More...
 
RedlineFlags GetRedlineFlags () const
 
void SetRedlineFlags (RedlineFlags eMode)
 
bool IsDelBox () const
 
void IgnoreRepeat ()
 
- Public Member Functions inherited from SfxUndoAction
 SfxUndoAction ()
 
virtual ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE
 
virtual void Undo ()
 
virtual void UndoWithContext (SfxUndoContext &i_context)
 
virtual void Redo ()
 
virtual void RedoWithContext (SfxUndoContext &i_context)
 
virtual void Repeat (SfxRepeatTarget &)
 
virtual bool CanRepeat (SfxRepeatTarget &) const
 
virtual bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetComment () const
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
virtual ViewShellId GetViewShellId () const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 

Private Member Functions

void PutAttr (sal_uInt16 nWhich, const SfxPoolItem *pItem)
 
void SwClientNotify (const SwModify &, const SfxHint &) override
 
void GetAnchor (SwFormatAnchor &rAnhor, SwNodeOffset nNode, sal_Int32 nContent)
 

Private Attributes

SwFrameFormatm_pFrameFormat
 
const OUString m_DerivedFromFormatName
 
const OUString m_NewFormatName
 
std::optional< SfxItemSetm_oItemSet
 
SwNodeOffset m_nOldNode
 
SwNodeOffset m_nNewNode
 
sal_Int32 m_nOldContent
 
sal_Int32 m_nNewContent
 
RndStdIds m_nOldAnchorType
 
RndStdIds m_nNewAnchorType
 
bool m_bAnchorChanged
 

Additional Inherited Members

- Static Public Member Functions inherited from SwUndo
static bool FillSaveData (const SwPaM &rRange, SwRedlineSaveDatas &rSData, bool bDelRange=true, bool bCopyNext=true)
 
static bool FillSaveDataForFormat (const SwPaM &, SwRedlineSaveDatas &)
 
static void SetSaveData (SwDoc &rDoc, SwRedlineSaveDatas &rSData)
 
static bool HasHiddenRedlines (const SwRedlineSaveDatas &rSData)
 
- Protected Member Functions inherited from SwUndo
virtual SwRewriter GetRewriter () const
 Returns the rewriter for this object. More...
 
virtual void RepeatImpl (::sw::RepeatContext &)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 
- Static Protected Member Functions inherited from SwUndo
static void RemoveIdxFromSection (SwDoc &, SwNodeOffset nSttIdx, const SwNodeOffset *pEndIdx=nullptr)
 
static void RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext)
 
static void RemoveIdxRel (SwNodeOffset, const SwPosition &)
 
static bool CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd)
 
- Protected Attributes inherited from SwUndo
bool m_bCacheComment
 
std::optional< OUString > maComment
 

Detailed Description

Definition at line 193 of file UndoCore.hxx.

Constructor & Destructor Documentation

◆ SwUndoSetFlyFormat()

SwUndoSetFlyFormat::SwUndoSetFlyFormat ( SwFrameFormat rFlyFormat,
const SwFrameFormat rNewFrameFormat 
)

Definition at line 484 of file undobj1.cxx.

References FLY_AT_PARA, GetName(), and SETFLYFRMFMT.

◆ ~SwUndoSetFlyFormat()

SwUndoSetFlyFormat::~SwUndoSetFlyFormat ( )
overridevirtual

Definition at line 505 of file undobj1.cxx.

Member Function Documentation

◆ GetAnchor()

void SwUndoSetFlyFormat::GetAnchor ( SwFormatAnchor rAnhor,
SwNodeOffset  nNode,
sal_Int32  nContent 
)
private

◆ GetRewriter()

SwRewriter SwUndoSetFlyFormat::GetRewriter ( ) const
overridevirtual

Returns the rewriter for this object.

Returns
the rewriter for this object

Reimplemented from SwUndo.

Definition at line 496 of file undobj1.cxx.

References SwRewriter::AddRule(), m_NewFormatName, and UndoArg1.

◆ PutAttr()

void SwUndoSetFlyFormat::PutAttr ( sal_uInt16  nWhich,
const SfxPoolItem pItem 
)
private

◆ RedoImpl()

void SwUndoSetFlyFormat::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

◆ SwClientNotify()

void SwUndoSetFlyFormat::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprivatevirtual

◆ UndoImpl()

void SwUndoSetFlyFormat::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Member Data Documentation

◆ m_bAnchorChanged

bool SwUndoSetFlyFormat::m_bAnchorChanged
private

Definition at line 202 of file UndoCore.hxx.

Referenced by PutAttr(), RedoImpl(), and UndoImpl().

◆ m_DerivedFromFormatName

const OUString SwUndoSetFlyFormat::m_DerivedFromFormatName
private

Definition at line 196 of file UndoCore.hxx.

Referenced by UndoImpl().

◆ m_NewFormatName

const OUString SwUndoSetFlyFormat::m_NewFormatName
private

Definition at line 197 of file UndoCore.hxx.

Referenced by GetRewriter(), and RedoImpl().

◆ m_nNewAnchorType

RndStdIds SwUndoSetFlyFormat::m_nNewAnchorType
private

Definition at line 201 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

◆ m_nNewContent

sal_Int32 SwUndoSetFlyFormat::m_nNewContent
private

Definition at line 200 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

◆ m_nNewNode

SwNodeOffset SwUndoSetFlyFormat::m_nNewNode
private

Definition at line 199 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

◆ m_nOldAnchorType

RndStdIds SwUndoSetFlyFormat::m_nOldAnchorType
private

Definition at line 201 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

◆ m_nOldContent

sal_Int32 SwUndoSetFlyFormat::m_nOldContent
private

Definition at line 200 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

◆ m_nOldNode

SwNodeOffset SwUndoSetFlyFormat::m_nOldNode
private

Definition at line 199 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

◆ m_oItemSet

std::optional<SfxItemSet> SwUndoSetFlyFormat::m_oItemSet
private

Definition at line 198 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

◆ m_pFrameFormat

SwFrameFormat* SwUndoSetFlyFormat::m_pFrameFormat
private

Definition at line 195 of file UndoCore.hxx.

Referenced by GetAnchor(), PutAttr(), RedoImpl(), and UndoImpl().


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