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

#include <UndoSplitMove.hxx>

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

Public Member Functions

 SwUndoMove (const SwPaM &, const SwPosition &)
 
 SwUndoMove (SwDoc *pDoc, const SwNodeRange &, const SwNodeIndex &)
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
void SetDestRange (const SwNodeIndex &rStt, const SwNodeIndex &rEnd, const SwNodeIndex &rInsPos)
 set the destination range after the move More...
 
bool IsMoveRange () const
 
sal_uLong GetEndNode () const
 
sal_uLong GetDestSttNode () const
 
sal_Int32 GetDestSttContent () const
 
void SetMoveRedlines (bool b)
 
- 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 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 ()
 
 ~SwUndoSaveContent () COVERITY_NOEXCEPT_FALSE
 
void DelContentIndex (const SwPosition &pMark, const SwPosition &pPoint, DelContentType nDelContentType=DelContentType::AllMask)
 

Private Attributes

sal_uLong m_nDestStartNode
 
sal_uLong m_nDestEndNode
 
sal_uLong m_nInsPosNode
 
sal_uLong 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
sal_uLong m_nSttNode
 
sal_uLong 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 &, 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
 
- 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 47 of file UndoSplitMove.hxx.

Constructor & Destructor Documentation

SwUndoMove::SwUndoMove ( const SwPaM rRange,
const SwPosition rMvPos 
)
SwUndoMove::SwUndoMove ( SwDoc pDoc,
const SwNodeRange rRg,
const SwNodeIndex rMvPos 
)

Member Function Documentation

void SwUndoMove::DelFootnote ( const SwPaM rRange)
private
sal_Int32 SwUndoMove::GetDestSttContent ( ) const
inline

Definition at line 78 of file UndoSplitMove.hxx.

References m_nDestStartContent.

Referenced by SwUndoTableMerge::UndoImpl().

sal_uLong SwUndoMove::GetDestSttNode ( ) const
inline

Definition at line 77 of file UndoSplitMove.hxx.

References m_nDestStartNode.

Referenced by SwUndoTableMerge::UndoImpl().

sal_uLong SwUndoMove::GetEndNode ( ) const
inline

Definition at line 76 of file UndoSplitMove.hxx.

References SwUndRng::m_nEndNode.

Referenced by SwUndoTableMerge::UndoImpl().

bool SwUndoMove::IsMoveRange ( ) const
inline

Definition at line 75 of file UndoSplitMove.hxx.

References m_bMoveRange.

Referenced by SwUndoTableMerge::UndoImpl().

void SwUndoMove::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual
void SwUndoMove::SetDestRange ( const SwNodeIndex rStt,
const SwNodeIndex rEnd,
const SwNodeIndex rInsPos 
)

set the destination range after the move

Definition at line 140 of file unmove.cxx.

References COMPLETE_STRING, SwNodeIndex::GetIndex(), m_nDestEndContent, m_nDestEndNode, m_nDestStartContent, m_nDestStartNode, m_nInsPosContent, and m_nInsPosNode.

void SwUndoMove::SetMoveRedlines ( bool  b)
inline

Definition at line 80 of file UndoSplitMove.hxx.

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

Member Data Documentation

bool SwUndoMove::m_bJoinNext
private

Definition at line 57 of file UndoSplitMove.hxx.

Referenced by SwUndoMove(), and UndoImpl().

bool SwUndoMove::m_bMoveRange
private

Definition at line 57 of file UndoSplitMove.hxx.

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

bool SwUndoMove::m_bMoveRedlines
private

Definition at line 60 of file UndoSplitMove.hxx.

Referenced by RedoImpl(), and UndoImpl().

sal_Int32 SwUndoMove::m_nDestEndContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

sal_uLong SwUndoMove::m_nDestEndNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

sal_Int32 SwUndoMove::m_nDestStartContent
private

Definition at line 53 of file UndoSplitMove.hxx.

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

sal_uLong SwUndoMove::m_nDestStartNode
private

Definition at line 52 of file UndoSplitMove.hxx.

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

sal_uInt16 SwUndoMove::m_nFootnoteStart
private

Definition at line 55 of file UndoSplitMove.hxx.

Referenced by SwUndoMove(), and UndoImpl().

sal_Int32 SwUndoMove::m_nInsPosContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

sal_uLong SwUndoMove::m_nInsPosNode
private

Definition at line 52 of file UndoSplitMove.hxx.

Referenced by SetDestRange(), and UndoImpl().

sal_Int32 SwUndoMove::m_nMoveDestContent
private

Definition at line 53 of file UndoSplitMove.hxx.

Referenced by RedoImpl(), and SwUndoMove().

sal_uLong 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: