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

#include <UndoCore.hxx>

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

Public Member Functions

 SwUndoSetFlyFormat (SwFrameFormat &rFlyFormat, 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
 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 bool Merge (SfxUndoAction *pNextAction)
 
virtual OUString GetRepeatComment (SfxRepeatTarget &) const
 
const DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
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
 

Private Member Functions

void PutAttr (sal_uInt16 nWhich, const SfxPoolItem *pItem)
 
void Modify (const SfxPoolItem *, const SfxPoolItem *) override
 
void GetAnchor (SwFormatAnchor &rAnhor, sal_uLong nNode, sal_Int32 nContent)
 

Private Attributes

SwFrameFormatm_pFrameFormat
 
const OUString m_DerivedFromFormatName
 
const OUString m_NewFormatName
 
std::unique_ptr< SfxItemSetm_pItemSet
 
sal_uLong m_nOldNode
 
sal_uLong 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 void RepeatImpl (::sw::RepeatContext &)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
- Static Protected Member Functions inherited from SwUndo
static void RemoveIdxFromSection (SwDoc &, sal_uLong nSttIdx, const sal_uLong *pEndIdx=nullptr)
 
static void RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext)
 
static void RemoveIdxRel (sal_uLong, const SwPosition &)
 
static bool CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd)
 
- Protected Attributes inherited from SwUndo
bool m_bCacheComment
 
boost::optional< OUString > maComment
 

Detailed Description

Definition at line 187 of file UndoCore.hxx.

Constructor & Destructor Documentation

SwUndoSetFlyFormat::SwUndoSetFlyFormat ( SwFrameFormat rFlyFormat,
SwFrameFormat rNewFrameFormat 
)

Definition at line 458 of file undobj1.cxx.

References FLY_AT_PARA, and SETFLYFRMFMT.

SwUndoSetFlyFormat::~SwUndoSetFlyFormat ( )
overridevirtual

Definition at line 479 of file undobj1.cxx.

Member Function Documentation

void SwUndoSetFlyFormat::GetAnchor ( SwFormatAnchor rAnhor,
sal_uLong  nNode,
sal_Int32  nContent 
)
private
SwRewriter SwUndoSetFlyFormat::GetRewriter ( ) const
overridevirtual

Returns the rewriter for this object.

Returns
the rewriter for this object

Reimplemented from SwUndo.

Definition at line 470 of file undobj1.cxx.

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

void SwUndoSetFlyFormat::Modify ( const SfxPoolItem pOld,
const SfxPoolItem  
)
overrideprivatevirtual
void SwUndoSetFlyFormat::PutAttr ( sal_uInt16  nWhich,
const SfxPoolItem pItem 
)
private
void SwUndoSetFlyFormat::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
void SwUndoSetFlyFormat::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Member Data Documentation

bool SwUndoSetFlyFormat::m_bAnchorChanged
private

Definition at line 196 of file UndoCore.hxx.

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

const OUString SwUndoSetFlyFormat::m_DerivedFromFormatName
private

Definition at line 190 of file UndoCore.hxx.

Referenced by UndoImpl().

const OUString SwUndoSetFlyFormat::m_NewFormatName
private

Definition at line 191 of file UndoCore.hxx.

Referenced by GetRewriter(), and RedoImpl().

RndStdIds SwUndoSetFlyFormat::m_nNewAnchorType
private

Definition at line 195 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

sal_Int32 SwUndoSetFlyFormat::m_nNewContent
private

Definition at line 194 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

sal_uLong SwUndoSetFlyFormat::m_nNewNode
private

Definition at line 193 of file UndoCore.hxx.

Referenced by PutAttr(), and RedoImpl().

RndStdIds SwUndoSetFlyFormat::m_nOldAnchorType
private

Definition at line 195 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

sal_Int32 SwUndoSetFlyFormat::m_nOldContent
private

Definition at line 194 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

sal_uLong SwUndoSetFlyFormat::m_nOldNode
private

Definition at line 193 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().

SwFrameFormat* SwUndoSetFlyFormat::m_pFrameFormat
private

Definition at line 189 of file UndoCore.hxx.

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

std::unique_ptr<SfxItemSet> SwUndoSetFlyFormat::m_pItemSet
private

Definition at line 192 of file UndoCore.hxx.

Referenced by PutAttr(), and UndoImpl().


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