LibreOffice Module sw (master) 1
|
#include <UndoSplitMove.hxx>
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 DateTime & | GetDateTime () 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 |
SwPaM & | AddUndoRedoPaM (::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< SwHistory > | m_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) |
Definition at line 47 of file UndoSplitMove.hxx.
SwUndoMove::SwUndoMove | ( | const SwPaM & | rRange, |
const SwPosition & | rMvPos | ||
) |
Definition at line 29 of file unmove.cxx.
References DelFootnote(), SwPaM::GetDoc(), SwPosition::GetNode(), SwDoc::GetNodes(), SwContentNode::GetpSwAttrSet(), SwTextNode::GetpSwpHints(), SwTextNode::GetText(), SwTextNode::GetTextColl(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), SwUndRng::m_nEndNode, m_nFootnoteStart, m_nMoveDestNode, SwUndRng::m_nSttNode, SwUndoSaveContent::m_pHistory, MOVE, and Text.
SwUndoMove::SwUndoMove | ( | SwDoc & | rDoc, |
const SwNodeRange & | rRg, | ||
const SwNode & | rMvPos | ||
) |
Definition at line 94 of file unmove.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, COMPLETE_STRING, SwUndoSaveContent::DelContentIndex(), Ftn, SwNode::GetContentNode(), SwNodes::GetEndOfAutotext(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwContentNode::Len(), m_bJoinNext, m_bMoveRange, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, m_nFootnoteStart, m_nMoveDestContent, m_nMoveDestNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, SwUndoSaveContent::m_pHistory, MOVE, and SwPosition::SetContent().
|
private |
Definition at line 286 of file unmove.cxx.
References SwUndoSaveContent::DelContentIndex(), Ftn, SwPaM::GetDoc(), SwNodes::GetEndOfAutotext(), SwNode::GetIndex(), SwPaM::GetMark(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), m_nMoveDestNode, and SwUndoSaveContent::m_pHistory.
Referenced by RedoImpl(), and SwUndoMove().
|
inline |
Definition at line 78 of file UndoSplitMove.hxx.
References m_nDestStartContent.
Referenced by SwUndoTableMerge::UndoImpl().
|
inline |
Definition at line 77 of file UndoSplitMove.hxx.
References m_nDestStartNode.
Referenced by SwUndoTableMerge::UndoImpl().
|
inline |
Definition at line 76 of file UndoSplitMove.hxx.
References SwUndRng::m_nEndNode.
Referenced by SwUndoTableMerge::UndoImpl().
|
inline |
Definition at line 75 of file UndoSplitMove.hxx.
References m_bMoveRange.
Referenced by SwUndoTableMerge::UndoImpl().
|
overridevirtual |
Implements SwUndo.
Definition at line 235 of file unmove.cxx.
References SwUndRng::AddUndoRedoPaM(), SwContentNode::CanJoinNext(), DEFAULT, DelFootnote(), SwNode::GetContentNode(), sw::UndoRedoContext::GetDoc(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), SwNode::IsTextNode(), SwTextNode::JoinNext(), m_bMoveRange, m_bMoveRedlines, SwUndRng::m_nEndNode, m_nMoveDestContent, m_nMoveDestNode, SwUndRng::m_nSttNode, IDocumentContentOperations::MoveNodeRange(), IDocumentContentOperations::MoveRange(), REDLINES, SwUndo::RemoveIdxFromRange(), SwUndo::RemoveIdxRel(), SwPaM::SetMark(), SwUndRng::SetPaM(), and SwPaM::Start().
void SwUndoMove::SetDestRange | ( | const SwNode & | rStt, |
const SwNode & | rEnd, | ||
const SwNodeIndex & | rInsPos | ||
) |
set the destination range after the move
Definition at line 137 of file unmove.cxx.
References COMPLETE_STRING, SwNodeIndex::GetIndex(), SwNode::GetIndex(), m_nDestEndContent, m_nDestEndNode, m_nDestStartContent, m_nDestStartNode, m_nInsPosContent, and m_nInsPosNode.
|
inline |
Definition at line 80 of file UndoSplitMove.hxx.
References m_bMoveRedlines.
|
overridevirtual |
Implements SwUndo.
Definition at line 153 of file unmove.cxx.
References SwUndRng::AddUndoRedoPaM(), SwNodeRange::aEnd, DEFAULT, SwPaM::DeleteMark(), SwPaM::Exchange(), SwNode::GetContentNode(), sw::UndoRedoContext::GetDoc(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPointNode(), SwTextNode::GetpSwpHints(), SwTextNode::GetText(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), SwNode::IsContentNode(), SwNode::IsTextNode(), SwTextNode::JoinNext(), m_bJoinNext, m_bMoveRange, m_bMoveRedlines, m_nDestEndContent, m_nDestEndNode, m_nDestStartContent, m_nDestStartNode, m_nFootnoteStart, m_nInsPosContent, m_nInsPosNode, SwUndoSaveContent::m_pHistory, IDocumentContentOperations::MoveNodeRange(), IDocumentContentOperations::MoveRange(), REDLINES, SwUndo::RemoveIdxFromRange(), SwUndo::RemoveIdxRel(), SwContentNode::ResetAllAttr(), and SwPosition::SetContent().
Referenced by SwUndoTableMerge::UndoImpl().
|
private |
Definition at line 57 of file UndoSplitMove.hxx.
Referenced by SwUndoMove(), and UndoImpl().
|
private |
Definition at line 58 of file UndoSplitMove.hxx.
Referenced by IsMoveRange(), RedoImpl(), SwUndoMove(), and UndoImpl().
|
private |
Definition at line 60 of file UndoSplitMove.hxx.
Referenced by RedoImpl(), SetMoveRedlines(), and UndoImpl().
|
private |
Definition at line 53 of file UndoSplitMove.hxx.
Referenced by SetDestRange(), and UndoImpl().
|
private |
Definition at line 52 of file UndoSplitMove.hxx.
Referenced by SetDestRange(), and UndoImpl().
|
private |
Definition at line 53 of file UndoSplitMove.hxx.
Referenced by GetDestSttContent(), SetDestRange(), and UndoImpl().
|
private |
Definition at line 52 of file UndoSplitMove.hxx.
Referenced by GetDestSttNode(), SetDestRange(), and UndoImpl().
|
private |
Definition at line 55 of file UndoSplitMove.hxx.
Referenced by SwUndoMove(), and UndoImpl().
|
private |
Definition at line 53 of file UndoSplitMove.hxx.
Referenced by SetDestRange(), and UndoImpl().
|
private |
Definition at line 52 of file UndoSplitMove.hxx.
Referenced by SetDestRange(), and UndoImpl().
|
private |
Definition at line 53 of file UndoSplitMove.hxx.
Referenced by RedoImpl(), and SwUndoMove().
|
private |
Definition at line 52 of file UndoSplitMove.hxx.
Referenced by DelFootnote(), RedoImpl(), and SwUndoMove().