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

#include <UndoAttribute.hxx>

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

Public Member Functions

 SwUndoFormatAttr (const SfxItemSet &rOldSet, SwFormat &rFormat, bool bSaveDrawPt)
 
 SwUndoFormatAttr (const SfxPoolItem &rItem, SwFormat &rFormat, bool bSaveDrawPt)
 
virtual ~SwUndoFormatAttr () override
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
virtual void RepeatImpl (::sw::RepeatContext &) override
 
virtual SwRewriter GetRewriter () const override
 Returns the rewriter for this object. More...
 
void PutAttr (const SfxPoolItem &rItem)
 
SwFormatGetFormat (SwDoc &rDoc)
 
- 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
 

Private Member Functions

bool IsFormatInDoc (SwDoc *)
 
void SaveFlyAnchor (bool bSaveDrawPt=false)
 
bool RestoreFlyAnchor (::sw::UndoRedoContext &rContext)
 
void Init ()
 

Private Attributes

SwFormatm_pFormat
 
std::unique_ptr< SfxItemSetm_pOldSet
 
sal_uLong m_nNodeIndex
 
const sal_uInt16 m_nFormatWhich
 
const bool m_bSaveDrawPt
 

Friends

class SwUndoDefaultAttr
 

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)
 
- 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 85 of file UndoAttribute.hxx.

Constructor & Destructor Documentation

SwUndoFormatAttr::SwUndoFormatAttr ( const SfxItemSet rOldSet,
SwFormat rFormat,
bool  bSaveDrawPt 
)

Definition at line 102 of file unattr.cxx.

References Init(), and INSFMTATTR.

SwUndoFormatAttr::SwUndoFormatAttr ( const SfxPoolItem rItem,
SwFormat rFormat,
bool  bSaveDrawPt 
)

Definition at line 116 of file unattr.cxx.

References Clone(), Init(), INSFMTATTR, and m_pOldSet.

SwUndoFormatAttr::~SwUndoFormatAttr ( )
overridevirtual

Definition at line 157 of file unattr.cxx.

Member Function Documentation

SwFormat * SwUndoFormatAttr::GetFormat ( SwDoc rDoc)

Definition at line 281 of file unattr.cxx.

References IsFormatInDoc(), and m_pFormat.

SwRewriter SwUndoFormatAttr::GetRewriter ( ) const
overridevirtual

Returns the rewriter for this object.

Returns
the rewriter for this object

Reimplemented from SwUndo.

Definition at line 345 of file unattr.cxx.

References SwRewriter::AddRule(), SwFormat::GetName(), m_pFormat, and UndoArg1.

void SwUndoFormatAttr::Init ( void  )
private
bool SwUndoFormatAttr::IsFormatInDoc ( SwDoc pDoc)
private
void SwUndoFormatAttr::PutAttr ( const SfxPoolItem rItem)
void SwUndoFormatAttr::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Implements SwUndo.

Definition at line 286 of file unattr.cxx.

References UndoImpl().

void SwUndoFormatAttr::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual
bool SwUndoFormatAttr::RestoreFlyAnchor ( ::sw::UndoRedoContext rContext)
private
void SwUndoFormatAttr::SaveFlyAnchor ( bool  bSaveDrawPt = false)
private
void SwUndoFormatAttr::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Friends And Related Function Documentation

friend class SwUndoDefaultAttr
friend

Definition at line 87 of file UndoAttribute.hxx.

Member Data Documentation

const bool SwUndoFormatAttr::m_bSaveDrawPt
private

Definition at line 92 of file UndoAttribute.hxx.

Referenced by Init(), PutAttr(), RestoreFlyAnchor(), and UndoImpl().

const sal_uInt16 SwUndoFormatAttr::m_nFormatWhich
private

Definition at line 91 of file UndoAttribute.hxx.

Referenced by Init(), IsFormatInDoc(), RepeatImpl(), and UndoImpl().

sal_uLong SwUndoFormatAttr::m_nNodeIndex
private

Definition at line 90 of file UndoAttribute.hxx.

Referenced by Init(), IsFormatInDoc(), RestoreFlyAnchor(), and SaveFlyAnchor().

SwFormat* SwUndoFormatAttr::m_pFormat
private
std::unique_ptr<SfxItemSet> SwUndoFormatAttr::m_pOldSet
private

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