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

#include <UndoOverwrite.hxx>

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

Public Member Functions

 SwUndoOverwrite (SwDoc *, SwPosition &, sal_Unicode cIns)
 
virtual ~SwUndoOverwrite () 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 of this undo object. More...
 
bool CanGrouping (SwDoc *, SwPosition &, sal_Unicode cIns)
 
- 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 Attributes

OUString aDelStr
 
OUString aInsStr
 
std::unique_ptr< SwRedlineSaveDataspRedlSaveData
 
sal_uLong nSttNode
 
sal_Int32 nSttContent
 
bool bInsChar: 1
 
bool bGroup: 1
 
- Private Attributes inherited from SwUndoSaveContent
std::unique_ptr< SwHistorym_pHistory
 

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
 
- Private Member Functions inherited from SwUndoSaveContent
 SwUndoSaveContent ()
 
 ~SwUndoSaveContent () COVERITY_NOEXCEPT_FALSE
 
void DelContentIndex (const SwPosition &pMark, const SwPosition &pPoint, DelContentType nDelContentType=DelContentType::AllMask)
 
- Static Private Member Functions inherited from SwUndoSaveContent
static void MoveToUndoNds (SwPaM &rPam, SwNodeIndex *pNodeIdx, sal_uLong *pEndNdIdx=nullptr)
 
static void MoveFromUndoNds (SwDoc &rDoc, sal_uLong nNodeIdx, SwPosition &rInsPos, const sal_uLong *pEndNdIdx=nullptr, bool bForceCreateFrames=false)
 
static bool MovePtBackward (SwPaM &rPam)
 
static void MovePtForward (SwPaM &rPam, bool bMvBkwrd)
 

Detailed Description

Definition at line 34 of file UndoOverwrite.hxx.

Constructor & Destructor Documentation

SwUndoOverwrite::SwUndoOverwrite ( SwDoc pDoc,
SwPosition rPos,
sal_Unicode  cIns 
)
SwUndoOverwrite::~SwUndoOverwrite ( )
overridevirtual

Definition at line 98 of file unovwr.cxx.

Member Function Documentation

bool SwUndoOverwrite::CanGrouping ( SwDoc pDoc,
SwPosition rPos,
sal_Unicode  cIns 
)
SwRewriter SwUndoOverwrite::GetRewriter ( ) const
overridevirtual

Returns the rewriter of this undo object.

The rewriter contains the following rule:

$1 -> '<overwritten text>'

<overwritten text>=""> is shortened to nUndoStringLength characters.

Returns
the rewriter of this undo object

Reimplemented from SwUndo.

Definition at line 311 of file unovwr.cxx.

References SwRewriter::AddRule(), aInsStr, nUndoStringLength, ShortenString(), SwResId(), and UndoArg1.

void SwUndoOverwrite::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
void SwUndoOverwrite::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual
void SwUndoOverwrite::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Member Data Documentation

OUString SwUndoOverwrite::aDelStr
private

Definition at line 36 of file UndoOverwrite.hxx.

Referenced by CanGrouping(), RedoImpl(), SwUndoOverwrite(), and UndoImpl().

OUString SwUndoOverwrite::aInsStr
private
bool SwUndoOverwrite::bGroup
private

Definition at line 41 of file UndoOverwrite.hxx.

Referenced by CanGrouping().

bool SwUndoOverwrite::bInsChar
private

Definition at line 40 of file UndoOverwrite.hxx.

Referenced by CanGrouping(), and SwUndoOverwrite().

sal_Int32 SwUndoOverwrite::nSttContent
private

Definition at line 39 of file UndoOverwrite.hxx.

Referenced by CanGrouping(), RedoImpl(), SwUndoOverwrite(), and UndoImpl().

sal_uLong SwUndoOverwrite::nSttNode
private

Definition at line 38 of file UndoOverwrite.hxx.

Referenced by CanGrouping(), RedoImpl(), SwUndoOverwrite(), and UndoImpl().

std::unique_ptr<SwRedlineSaveDatas> SwUndoOverwrite::pRedlSaveData
private

Definition at line 37 of file UndoOverwrite.hxx.

Referenced by CanGrouping(), RedoImpl(), SwUndoOverwrite(), and UndoImpl().


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