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

#include <UndoCore.hxx>

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

Public Member Functions

 SwUndoFormatColl (const SwPaM &, const SwFormatColl *, const bool bReset, const bool bResetListAttrs)
 
virtual ~SwUndoFormatColl () 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 undo object. More...
 
SwHistoryGetHistory ()
 
- 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

void DoSetFormatColl (SwDoc &rDoc, SwPaM const &rPaM)
 
- Private Member Functions inherited from SwUndRng
 SwUndRng ()
 
 SwUndRng (const SwPaM &)
 
void SetValues (const SwPaM &rPam)
 
void SetPaM (SwPaM &, bool bCorrToContent=false) const
 
SwPaMAddUndoRedoPaM (::sw::UndoRedoContext &, bool const bCorrToContent=false) const
 

Private Attributes

OUString aFormatName
 
std::unique_ptr< SwHistorypHistory
 
const bool mbReset
 
const bool mbResetListAttrs
 
- Private Attributes inherited from SwUndRng
sal_uLong m_nSttNode
 
sal_uLong m_nEndNode
 
sal_Int32 m_nSttContent
 
sal_Int32 m_nEndContent
 

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 144 of file UndoCore.hxx.

Constructor & Destructor Documentation

SwUndoFormatColl::SwUndoFormatColl ( const SwPaM rRange,
const SwFormatColl pColl,
const bool  bReset,
const bool  bResetListAttrs 
)

Definition at line 28 of file unfmco.cxx.

References aFormatName, SwFormat::GetName(), and SETFMTCOLL.

SwUndoFormatColl::~SwUndoFormatColl ( )
overridevirtual

Definition at line 43 of file unfmco.cxx.

Member Function Documentation

void SwUndoFormatColl::DoSetFormatColl ( SwDoc rDoc,
SwPaM const &  rPaM 
)
private
SwHistory* SwUndoFormatColl::GetHistory ( )
inline

Definition at line 183 of file UndoCore.hxx.

SwRewriter SwUndoFormatColl::GetRewriter ( ) const
overridevirtual

Returns the rewriter for this undo object.

The rewriter contains one rule:

$1 -> <name of format collection>

<name of="" format="" collection>=""> is the name of the format collection that is applied by the action recorded by this undo object.

Returns
the rewriter for this undo object

Reimplemented from SwUndo.

Definition at line 80 of file unfmco.cxx.

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

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

Implements SwUndo.

Definition at line 57 of file unfmco.cxx.

References SwUndRng::AddUndoRedoPaM(), DoSetFormatColl(), and sw::UndoRedoContext::GetDoc().

void SwUndoFormatColl::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual

Reimplemented from SwUndo.

Definition at line 64 of file unfmco.cxx.

References DoSetFormatColl(), sw::RepeatContext::GetDoc(), and sw::RepeatContext::GetRepeatPaM().

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

Implements SwUndo.

Definition at line 47 of file unfmco.cxx.

References SwUndRng::AddUndoRedoPaM(), sw::UndoRedoContext::GetDoc(), and pHistory.

Member Data Documentation

OUString SwUndoFormatColl::aFormatName
private

Definition at line 146 of file UndoCore.hxx.

Referenced by DoSetFormatColl(), GetRewriter(), and SwUndoFormatColl().

const bool SwUndoFormatColl::mbReset
private

Definition at line 151 of file UndoCore.hxx.

Referenced by DoSetFormatColl().

const bool SwUndoFormatColl::mbResetListAttrs
private

Definition at line 154 of file UndoCore.hxx.

Referenced by DoSetFormatColl().

std::unique_ptr<SwHistory> SwUndoFormatColl::pHistory
private

Definition at line 147 of file UndoCore.hxx.

Referenced by UndoImpl().


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