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

#include <UndoSplitMove.hxx>

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

Public Member Functions

 SwUndoMove (const SwPaM &, const SwPosition &)
 
 SwUndoMove (SwDoc &rDoc, const SwNodeRange &, const SwNode &)
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
void SetDestRange (const SwNode &rStt, const SwNode &rEnd, const SwNodeIndex &rInsPos)
 set the destination range after the move More...
 
bool IsMoveRange () const
 
SwNodeOffset GetEndNode () const
 
SwNodeOffset GetDestSttNode () const
 
sal_Int32 GetDestSttContent () const
 
void SetMoveRedlines (bool b)
 
- 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
 

Private Member Functions

void DelFootnote (const SwPaM &)
 
- 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 Member Functions inherited from SwUndoSaveContent
 SwUndoSaveContent ()
 
virtual ~SwUndoSaveContent () COVERITY_NOEXCEPT_FALSE
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
void DelContentIndex (const SwPosition &pMark, const SwPosition &pPoint, DelContentType nDelContentType=DelContentType::AllMask)
 

Private Attributes

SwNodeOffset m_nDestStartNode
 
SwNodeOffset m_nDestEndNode
 
SwNodeOffset m_nInsPosNode
 
SwNodeOffset m_nMoveDestNode
 
sal_Int32 m_nDestStartContent
 
sal_Int32 m_nDestEndContent
 
sal_Int32 m_nInsPosContent
 
sal_Int32 m_nMoveDestContent
 
sal_uInt16 m_nFootnoteStart
 
bool m_bJoinNext: 1
 
bool m_bMoveRange: 1
 
bool m_bMoveRedlines
 
- Private Attributes inherited from SwUndRng
SwNodeOffset m_nSttNode
 
SwNodeOffset m_nEndNode
 
sal_Int32 m_nSttContent
 
sal_Int32 m_nEndContent
 
- 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)
 
- Protected Member Functions inherited from SwUndo
virtual SwRewriter GetRewriter () const
 Returns the rewriter for this object. More...
 
virtual void RepeatImpl (::sw::RepeatContext &)
 
- 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
 
- Static Private Member Functions inherited from SwUndoSaveContent
static void MoveToUndoNds (SwPaM &rPam, SwNodeIndex *pNodeIdx, SwNodeOffset *pEndNdIdx=nullptr)
 
static void MoveFromUndoNds (SwDoc &rDoc, SwNodeOffset nNodeIdx, SwPosition &rInsPos, const SwNodeOffset *pEndNdIdx=nullptr, bool bForceCreateFrames=false)
 
static bool MovePtBackward (SwPaM &rPam)
 
static void MovePtForward (SwPaM &rPam, bool bMvBkwrd)
 

Detailed Description

Definition at line 47 of file UndoSplitMove.hxx.

Constructor & Destructor Documentation

◆ SwUndoMove() [1/2]

SwUndoMove::SwUndoMove ( const SwPaM rRange,
const SwPosition rMvPos 
)

◆ SwUndoMove() [2/2]

SwUndoMove::SwUndoMove ( SwDoc rDoc,
const SwNodeRange rRg,
const SwNode rMvPos 
)

Member Function Documentation

◆ DelFootnote()

void SwUndoMove::DelFootnote ( const SwPaM rRange)
private

◆ GetDestSttContent()

sal_Int32 SwUndoMove::GetDestSttContent ( ) const
inline

Definition at line 78 of file UndoSplitMove.hxx.

References m_nDestStartContent.

Referenced by SwUndoTableMerge::UndoImpl().

◆ GetDestSttNode()

SwNodeOffset SwUndoMove::GetDestSttNode ( ) const
inline

Definition at line 77 of file UndoSplitMove.hxx.

References m_nDestStartNode.

Referenced by SwUndoTableMerge::UndoImpl().

◆ GetEndNode()

SwNodeOffset SwUndoMove::GetEndNode ( ) const
inline

Definition at line 76 of file UndoSplitMove.hxx.

References SwUndRng::m_nEndNode.

Referenced by SwUndoTableMerge::UndoImpl().

◆ IsMoveRange()

bool SwUndoMove::IsMoveRange ( ) const
inline

Definition at line 75 of file UndoSplitMove.hxx.

References m_bMoveRange.

Referenced by SwUndoTableMerge::UndoImpl().

◆ RedoImpl()

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

◆ SetDestRange()

void SwUndoMove::SetDestRange ( const SwNode rStt,
const SwNode rEnd,
const SwNodeIndex rInsPos 
)

◆ SetMoveRedlines()

void SwUndoMove::SetMoveRedlines ( bool  b)
inline

Definition at line 80 of file UndoSplitMove.hxx.

References m_bMoveRedlines.

◆ UndoImpl()

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

Member Data Documentation

◆ m_bJoinNext

bool SwUndoMove::m_bJoinNext
private

Definition at line 57 of file UndoSplitMove.hxx.

Referenced by SwUndoMove(), and UndoImpl().

◆ m_bMoveRange

bool SwUndoMove::m_bMoveRange
private

Definition at line 58 of file UndoSplitMove.hxx.

Referenced by IsMoveRange(), RedoImpl(), SwUndoMove(), and UndoImpl().

◆ m_bMoveRedlines

bool SwUndoMove::m_bMoveRedlines
private

Definition at line 60 of file UndoSplitMove.hxx.

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

◆ m_nDestEndContent

sal_Int32 SwUndoMove::m_nDestEndContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

◆ m_nDestEndNode

SwNodeOffset SwUndoMove::m_nDestEndNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

◆ m_nDestStartContent

sal_Int32 SwUndoMove::m_nDestStartContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by GetDestSttContent(), SetDestRange(), and UndoImpl().

◆ m_nDestStartNode

SwNodeOffset SwUndoMove::m_nDestStartNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by GetDestSttNode(), SetDestRange(), and UndoImpl().

◆ m_nFootnoteStart

sal_uInt16 SwUndoMove::m_nFootnoteStart
private

Definition at line 55 of file UndoSplitMove.hxx.

Referenced by SwUndoMove(), and UndoImpl().

◆ m_nInsPosContent

sal_Int32 SwUndoMove::m_nInsPosContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

◆ m_nInsPosNode

SwNodeOffset SwUndoMove::m_nInsPosNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

◆ m_nMoveDestContent

sal_Int32 SwUndoMove::m_nMoveDestContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by RedoImpl(), and SwUndoMove().

◆ m_nMoveDestNode

SwNodeOffset SwUndoMove::m_nMoveDestNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by DelFootnote(), RedoImpl(), and SwUndoMove().


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