LibreOffice Module sw (master) 1
|
#include <undobj.hxx>
Public Member Functions | |
SwUndoSaveSection () | |
~SwUndoSaveSection () | |
void | SaveSection (const SwNodeIndex &rSttIdx) |
void | SaveSection (const SwNodeRange &rRange, bool bExpandNodes=true) |
void | RestoreSection (SwDoc *pDoc, SwNodeIndex *pIdx, sal_uInt16 nSectType) |
void | RestoreSection (SwDoc *pDoc, const SwNode &rInsPos, bool bForceCreateFrames=false) |
const SwHistory * | GetHistory () const |
SwHistory * | GetHistory () |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Protected Member Functions | |
const SwNodeIndex * | GetMvSttIdx () const |
SwNodeOffset | GetMvNodeCnt () const |
Private Attributes | |
std::optional< SwNodeIndex > | m_oMovedStart |
std::unique_ptr< SwRedlineSaveDatas > | m_pRedlineSaveData |
SwNodeOffset | m_nMoveLen |
SwNodeOffset | m_nStartPos |
Private Attributes inherited from SwUndoSaveContent | |
std::unique_ptr< SwHistory > | m_pHistory |
Additional Inherited Members | |
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 201 of file undobj.hxx.
SwUndoSaveSection::SwUndoSaveSection | ( | ) |
Definition at line 1249 of file undobj.cxx.
SwUndoSaveSection::~SwUndoSaveSection | ( | ) |
Definition at line 1254 of file undobj.cxx.
References SwNodes::Delete(), m_nMoveLen, m_oMovedStart, m_pRedlineSaveData, and suppress_fun_call_w_exception.
|
virtual |
Reimplemented from SwUndoSaveContent.
Reimplemented in SwUndoFlyBase.
Definition at line 1361 of file undobj.cxx.
References SwUndoSaveContent::dumpAsXml().
Referenced by SwUndoFlyBase::dumpAsXml().
|
inline |
Definition at line 222 of file undobj.hxx.
References SwUndoSaveContent::m_pHistory.
|
inline |
Definition at line 221 of file undobj.hxx.
References SwUndoSaveContent::m_pHistory.
Referenced by SwUndoFlyBase::InsFly(), SwRedlineSaveData::RedlineToDoc(), and SwUndoTableNdsChg::UndoImpl().
|
inlineprotected |
Definition at line 210 of file undobj.hxx.
Referenced by SwUndoFlyBase::GetMvNodeCnt().
|
inlineprotected |
Definition at line 209 of file undobj.hxx.
Referenced by SwUndoFlyBase::GetMvSttIdx(), and SwRedlineSaveData::GetMvSttIdx().
void SwUndoSaveSection::RestoreSection | ( | SwDoc * | pDoc, |
const SwNode & | rInsPos, | ||
bool | bForceCreateFrames = false |
||
) |
Definition at line 1340 of file undobj.cxx.
References m_nMoveLen, m_nStartPos, m_oMovedStart, m_pRedlineSaveData, SwUndoSaveContent::MoveFromUndoNds(), NODE_OFFSET_MAX(), and SwUndo::SetSaveData().
void SwUndoSaveSection::RestoreSection | ( | SwDoc * | pDoc, |
SwNodeIndex * | pIdx, | ||
sal_uInt16 | nSectType | ||
) |
Definition at line 1321 of file undobj.cxx.
References SwNode::EndOfSectionNode(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), m_nStartPos, SwNodes::MakeEmptySection(), NODE_OFFSET_MAX(), and RestoreSection().
Referenced by SwUndoFlyBase::InsFly(), SwRedlineSaveData::RedlineToDoc(), RestoreSection(), and SwUndoTableNdsChg::UndoImpl().
void SwUndoSaveSection::SaveSection | ( | const SwNodeIndex & | rSttIdx | ) |
Definition at line 1268 of file undobj.cxx.
References SwNode::EndOfSectionNode(), SwNodeIndex::GetNode(), and SaveSection().
Referenced by SwUndoFlyBase::DelFly(), SaveSection(), and SwRedlineSaveData::SwRedlineSaveData().
void SwUndoSaveSection::SaveSection | ( | const SwNodeRange & | rRange, |
bool | bExpandNodes = true |
||
) |
Definition at line 1274 of file undobj.cxx.
References SwPosition::Adjust(), SwNodeRange::aEnd, SwNodeRange::aStart, SwDoc::CorrAbs(), SwUndoSaveContent::DelContentIndex(), SwPaM::End(), SwUndo::FillSaveData(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetMarkContentNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwContentNode::Len(), m_nMoveLen, m_nStartPos, m_oMovedStart, m_pRedlineSaveData, SwUndoSaveContent::MoveToUndoNds(), SwPosition::SetContent(), and SwPaM::Start().
|
private |
Definition at line 205 of file undobj.hxx.
Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().
|
private |
Definition at line 206 of file undobj.hxx.
Referenced by RestoreSection(), and SaveSection().
|
private |
Definition at line 203 of file undobj.hxx.
Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().
|
private |
Definition at line 204 of file undobj.hxx.
Referenced by RestoreSection(), SaveSection(), and ~SwUndoSaveSection().