|
LibreOffice Module sw (master) 1
|
#include <undobj.hxx>
Public Member Functions | |
| virtual | ~SwUndoInserts () override |
| virtual void | UndoImpl (::sw::UndoRedoContext &) override |
| virtual void | RedoImpl (::sw::UndoRedoContext &) override |
| virtual void | RepeatImpl (::sw::RepeatContext &) override |
| void | SetInsertRange (const SwPaM &, bool bScanFlys=true, SwNodeOffset nDeleteTextNodes=SwNodeOffset(1)) |
| std::vector< SwFrameFormat * > * | GetFlysAnchoredAt () |
| void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
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 |
Public 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 |
Static Public Member Functions | |
| static bool | IsCreateUndoForNewFly (SwFormatAnchor const &rAnchor, SwNodeOffset const nStartNode, SwNodeOffset const nEndNode) |
| This is not the same as IsDestroyFrameAnchoredAtChar() and intentionally so: because the SwUndoInserts::UndoImpl() must remove the flys at the start/end position that were inserted but not the ones at the start/insert position that were already there; handle all at-char flys at start/end node like this, even if they're not on the start/end position, because it makes it easier to ensure that the Undo/Redo run in inverse order. More... | |
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 | |
| SwUndoInserts (SwUndoId nUndoId, const SwPaM &) | |
Protected Member Functions inherited from SwUndo | |
| virtual SwRewriter | GetRewriter () const |
| Returns the rewriter for this object. More... | |
| virtual void | RepeatImpl (::sw::RepeatContext &) |
Private Attributes | |
| SwTextFormatColl * | m_pTextFormatColl |
| SwTextFormatColl * | m_pLastNodeColl |
| std::optional< std::vector< SwFrameFormat * > > | m_pFrameFormats |
| std::vector< std::shared_ptr< SwUndoInsLayFormat > > | m_FlyUndos |
| std::unique_ptr< SwRedlineData > | m_pRedlineData |
| SwNodeOffset | m_nDeleteTextNodes |
| SwNodeOffset | m_nNodeDiff |
| std::optional< SwNodeIndex > | m_oUndoNodeIndex |
| start of Content in UndoNodes for Redo More... | |
| sal_uInt16 | m_nSetPos |
Private Attributes inherited from SwUndoSaveContent | |
| std::unique_ptr< SwHistory > | m_pHistory |
Additional Inherited Members | |
Public Attributes inherited from SwUndRng | |
| SwNodeOffset | m_nSttNode |
| SwNodeOffset | m_nEndNode |
| sal_Int32 | m_nSttContent |
| sal_Int32 | m_nEndContent |
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 |
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) |
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 253 of file undobj.hxx.
Definition at line 66 of file untblk.cxx.
References SwPaM::GetDoc(), sw::GetFlysAnchoredAt(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), SwTextNode::GetpSwpHints(), IDocumentRedlineAccess::GetRedlineAuthor(), IDocumentRedlineAccess::GetRedlineFlags(), SwTextNode::GetText(), SwTextNode::GetTextColl(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), IDocumentRedlineAccess::IsRedlineOn(), SwUndRng::m_nSttNode, m_pFrameFormats, SwUndoSaveContent::m_pHistory, m_pRedlineData, m_pTextFormatColl, and SwUndo::SetRedlineFlags().
|
overridevirtual |
Definition at line 222 of file untblk.cxx.
References SwNodes::Delete(), SwNodes::GetEndOfExtras(), SwNode::GetIndex(), m_oUndoNodeIndex, m_pFrameFormats, and m_pRedlineData.
|
overridevirtual |
Reimplemented from SwUndoSaveContent.
Definition at line 189 of file untblk.cxx.
References SfxUndoAction::dumpAsXml(), SwUndoSaveContent::dumpAsXml(), m_FlyUndos, and m_pFrameFormats.
|
inline |
Definition at line 280 of file undobj.hxx.
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl().
|
static |
This is not the same as IsDestroyFrameAnchoredAtChar() and intentionally so: because the SwUndoInserts::UndoImpl() must remove the flys at the start/end position that were inserted but not the ones at the start/insert position that were already there; handle all at-char flys at start/end node like this, even if they're not on the start/end position, because it makes it easier to ensure that the Undo/Redo run in inverse order.
Definition at line 174 of file untblk.cxx.
References SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), and SwNode::GetIndex().
Referenced by SwReader::Read(), and SetInsertRange().
|
overridevirtual |
Implements SwUndo.
Definition at line 371 of file untblk.cxx.
References IDocumentRedlineAccess::AppendRedline(), SwPosition::Assign(), SwTextNode::ChgFormatColl(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), SwRedlineTable::empty(), SwPaM::Exchange(), SwFormatAnchor::GetAnchorId(), sw::UndoRedoContext::GetCursorSupplier(), SwPaM::GetDoc(), sw::GetFlysAnchoredAt(), SwDoc::getIDocumentRedlineAccess(), SwPaM::GetMark(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwUndo::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineTable(), SwDoc::GetTextFormatColls(), SwNode::GetTextNode(), Ignore, SwVectorModifyBase< Value >::IsAlive(), IDocumentRedlineAccess::IsRedlineOn(), SwNode::IsTextNode(), m_FlyUndos, m_nDeleteTextNodes, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, m_nNodeDiff, m_nSetPos, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_oUndoNodeIndex, SwUndoSaveContent::m_pHistory, m_pLastNodeColl, m_pRedlineData, m_pTextFormatColl, SwUndoSaveContent::MoveFromUndoNds(), SwUndoSaveContent::MovePtBackward(), SwUndoSaveContent::MovePtForward(), n, IDocumentRedlineAccess::SetRedlineFlags_intern(), and IDocumentRedlineAccess::SplitRedline().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 466 of file untblk.cxx.
References CheckPosInFly, IDocumentContentOperations::CopyRange(), SwPaM::GetDoc(), sw::RepeatContext::GetDoc(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentContentOperations(), SwDoc::GetNodes(), SwPaM::GetPoint(), sw::RepeatContext::GetRepeatPaM(), and SwUndRng::SetPaM().
| void SwUndoInserts::SetInsertRange | ( | const SwPaM & | rPam, |
| bool | bScanFlys = true, |
||
| SwNodeOffset | nDeleteTextNodes = SwNodeOffset(1) |
||
| ) |
Definition at line 114 of file untblk.cxx.
References SwPaM::End(), SwFormat::GetAnchor(), SwPosition::GetContentIndex(), SwPaM::GetDoc(), SwPaM::GetMark(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwDoc::GetSpzFrameFormats(), SwPaM::HasMark(), IsCreateUndoForNewFly(), m_FlyUndos, m_nDeleteTextNodes, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_pFrameFormats, and n.
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl().
|
overridevirtual |
Implements SwUndo.
Definition at line 256 of file untblk.cxx.
References SwUndRng::AddUndoRedoPaM(), AllMask, SwContentNode::CanJoinNext(), SwTextNode::ChgFormatColl(), SwUndoSaveContent::DelContentIndex(), SwNodes::Delete(), SwPaM::DeleteMark(), IDocumentRedlineAccess::DeleteRedline(), SwPaM::End(), ExcludeFlyAtStartEnd, fnMoveBackward, fnMoveForward, sw::UndoRedoContext::GetDoc(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwUndo::GetRedlineFlags(), SwTextNode::GetText(), SwTextNode::GetTextColl(), SwDoc::GetTextFormatColls(), SwNode::GetTextNode(), GoInContent(), GoInNode(), i, SwVectorModifyBase< Value >::IsAlive(), IDocumentRedlineAccess::IsRedlineOn(), SwTextNode::JoinNext(), SwTextNode::Len(), m_FlyUndos, m_nDeleteTextNodes, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, m_nNodeDiff, m_nSetPos, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_oUndoNodeIndex, SwUndoSaveContent::m_pHistory, m_pLastNodeColl, m_pTextFormatColl, SwPaM::Move(), SwUndoSaveContent::MoveToUndoNds(), n, PaMCorrAbs(), SwUndo::RemoveIdxRel(), SwTextNode::ResetAllAttr(), SwTextNode::RstTextAttr(), and SwUndRng::SetPaM().
|
private |
Definition at line 257 of file undobj.hxx.
Referenced by dumpAsXml(), RedoImpl(), SetInsertRange(), and UndoImpl().
|
private |
Definition at line 259 of file undobj.hxx.
Referenced by RedoImpl(), SetInsertRange(), and UndoImpl().
|
private |
Definition at line 260 of file undobj.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
Definition at line 263 of file undobj.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
start of Content in UndoNodes for Redo
Definition at line 262 of file undobj.hxx.
Referenced by RedoImpl(), UndoImpl(), and ~SwUndoInserts().
|
private |
Definition at line 256 of file undobj.hxx.
Referenced by dumpAsXml(), SetInsertRange(), SwUndoInserts(), and ~SwUndoInserts().
|
private |
Definition at line 255 of file undobj.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
Definition at line 258 of file undobj.hxx.
Referenced by RedoImpl(), SwUndoInserts(), and ~SwUndoInserts().
|
private |
Definition at line 255 of file undobj.hxx.
Referenced by RedoImpl(), SwUndoInserts(), and UndoImpl().