LibreOffice Module sw (master)
1
|
#include <rolbck.hxx>
Public Member Functions | |
SwHistory () | |
~SwHistory () | |
bool | Rollback (SwDoc *pDoc, sal_uInt16 nStart=0) |
bool | TmpRollback (SwDoc *pDoc, sal_uInt16 nStart, bool ToFirst=true) |
void | Add (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue, sal_uLong nNodeIdx) |
void | Add (SwTextAttr *pTextHt, sal_uLong nNodeIdx, bool bNewAttr) |
void | Add (SwFormatColl *, sal_uLong nNodeIdx, SwNodeType nWhichNd) |
void | Add (const ::sw::mark::IMark &, bool bSavePos, bool bSaveOtherPos) |
void | AddChangeFlyAnchor (SwFrameFormat &rFormat) |
void | AddDeleteFly (SwFrameFormat &, sal_uInt16 &rSetPos) |
void | Add (const SwTextFootnote &) |
void | Add (const SfxItemSet &rSet, const SwCharFormat &rCharFormat) |
sal_uInt16 | Count () const |
sal_uInt16 | GetTmpEnd () const |
sal_uInt16 | SetTmpEnd (sal_uInt16 nTmpEnd) |
SwHistoryHint * | operator[] (sal_uInt16 nPos) |
SwHistoryHint const * | operator[] (sal_uInt16 nPos) const |
void | Move (sal_uInt16 nPos, SwHistory *pIns, sal_uInt16 const nStart=0) |
void | CopyAttr (SwpHints const *pHts, const sal_uLong nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields) |
void | CopyFormatAttr (const SfxItemSet &rSet, sal_uLong nNodeIdx) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Private Attributes | |
std::vector< std::unique_ptr< SwHistoryHint > > | m_SwpHstry |
sal_uInt16 | m_nEndDiff |
Friends | |
class | SwDoc |
class | SwRegHistory |
Definition at line 352 of file rolbck.hxx.
SwHistory::SwHistory | ( | ) |
Definition at line 1025 of file rolbck.cxx.
SwHistory::~SwHistory | ( | ) |
Definition at line 1031 of file rolbck.cxx.
void SwHistory::Add | ( | const SfxPoolItem * | pOldValue, |
const SfxPoolItem * | pNewValue, | ||
sal_uLong | nNodeIdx | ||
) |
Definition at line 1035 of file rolbck.cxx.
References IsDefaultItem(), m_nEndDiff, m_SwpHstry, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), and SfxPoolItem::Which().
Referenced by SwRegHistory::AddHint(), SwCollectTableLineBoxes::AddToUndoHistory(), SwTableBoxFormula::ChangeState(), CopyAttr(), CopyFormatAttr(), lcl_SetTextFormatColl(), and SwRegHistory::SwClientNotify().
void SwHistory::Add | ( | SwTextAttr * | pTextHt, |
sal_uLong | nNodeIdx, | ||
bool | bNewAttr | ||
) |
Definition at line 1072 of file rolbck.cxx.
References SwTextAttr::GetAnyEnd(), SwTextAttr::GetStart(), m_nEndDiff, m_SwpHstry, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), and SwTextAttr::Which().
void SwHistory::Add | ( | SwFormatColl * | pColl, |
sal_uLong | nNodeIdx, | ||
SwNodeType | nWhichNd | ||
) |
Definition at line 1114 of file rolbck.cxx.
References m_nEndDiff, and m_SwpHstry.
void SwHistory::Add | ( | const ::sw::mark::IMark & | rBkmk, |
bool | bSavePos, | ||
bool | bSaveOtherPos | ||
) |
Definition at line 1123 of file rolbck.cxx.
References assert(), IDocumentMarkAccess::CHECKBOX_FIELDMARK, IDocumentMarkAccess::DATE_FIELDMARK, IDocumentMarkAccess::DROPDOWN_FIELDMARK, IDocumentMarkAccess::GetType(), m_nEndDiff, m_SwpHstry, and IDocumentMarkAccess::TEXT_FIELDMARK.
void SwHistory::Add | ( | const SwTextFootnote & | rFootnote | ) |
Definition at line 1197 of file rolbck.cxx.
References m_SwpHstry.
void SwHistory::Add | ( | const SfxItemSet & | rSet, |
const SwCharFormat & | rCharFormat | ||
) |
Definition at line 1204 of file rolbck.cxx.
References SwFormat::GetName(), and m_SwpHstry.
void SwHistory::AddChangeFlyAnchor | ( | SwFrameFormat & | rFormat | ) |
Definition at line 1150 of file rolbck.cxx.
References m_SwpHstry.
void SwHistory::AddDeleteFly | ( | SwFrameFormat & | rFormat, |
sal_uInt16 & | rSetPos | ||
) |
Definition at line 1156 of file rolbck.cxx.
References assert(), SwFormat::GetChain(), SwFormat::GetItemState(), SwFormatChain::GetNext(), SwFormatChain::GetPrev(), m_nEndDiff, m_SwpHstry, RES_CHAIN(), RES_DRAWFRMFMT(), RES_FLYFRMFMT(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SwFormatChain::SetNext(), SwFormatChain::SetPrev(), void(), and SwFormat::Which().
void SwHistory::CopyAttr | ( | SwpHints const * | pHts, |
const sal_uLong | nNodeIdx, | ||
const sal_Int32 | nStart, | ||
const sal_Int32 | nEnd, | ||
const bool | bCopyFields | ||
) |
Definition at line 1307 of file rolbck.cxx.
References Add(), SwpHints::Count(), SwpHints::Get(), SwTextAttr::GetEnd(), SwTextAttr::GetStart(), n, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), and SwTextAttr::Which().
void SwHistory::CopyFormatAttr | ( | const SfxItemSet & | rSet, |
sal_uLong | nNodeIdx | ||
) |
Definition at line 1271 of file rolbck.cxx.
References Add(), SfxItemSet::Count(), SfxItemIter::GetCurItem(), IsInvalidItem(), and SfxItemIter::NextItem().
|
inline |
Definition at line 379 of file rolbck.hxx.
Referenced by lcl_RewriterFromHistory(), Rollback(), SwUndoSplitTable::SaveFormula(), SetTmpEnd(), SwDoc::SplitTable(), TmpRollback(), and SwUndoTextToTable::UndoImpl().
void SwHistory::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 1292 of file rolbck.cxx.
References m_SwpHstry.
|
inline |
Definition at line 380 of file rolbck.hxx.
References m_nEndDiff.
Definition at line 387 of file rolbck.hxx.
References m_SwpHstry.
Referenced by SwUndoDelete::RedoImpl(), SwUndoDelete::UndoImpl(), and SwUndoReplace::Impl::UndoImpl().
|
inline |
Definition at line 382 of file rolbck.hxx.
|
inline |
Definition at line 383 of file rolbck.hxx.
bool SwHistory::Rollback | ( | SwDoc * | pDoc, |
sal_uInt16 | nStart = 0 |
||
) |
Definition at line 1210 of file rolbck.cxx.
References Count(), i, m_nEndDiff, m_SwpHstry, and SwHistoryHint::SetInDoc().
Referenced by SwUndoFlyBase::InsFly(), SwRedlineSaveData::RedlineToDoc(), and SwUndoTableNdsChg::UndoImpl().
sal_uInt16 SwHistory::SetTmpEnd | ( | sal_uInt16 | nTmpEnd | ) |
Definition at line 1250 of file rolbck.cxx.
References Count(), HSTRY_FLYCNT, m_nEndDiff, and n.
Referenced by SwUndoTextToTable::UndoImpl().
bool SwHistory::TmpRollback | ( | SwDoc * | pDoc, |
sal_uInt16 | nStart, | ||
bool | ToFirst = true |
||
) |
Definition at line 1225 of file rolbck.cxx.
References Count(), m_nEndDiff, m_SwpHstry, and SwHistoryHint::SetInDoc().
Referenced by SwUndoTextToTable::UndoImpl().
|
friend |
Definition at line 354 of file rolbck.hxx.
|
friend |
Definition at line 355 of file rolbck.hxx.
|
private |
Definition at line 358 of file rolbck.hxx.
Referenced by Add(), AddDeleteFly(), GetTmpEnd(), Rollback(), SetTmpEnd(), and TmpRollback().
|
private |
Definition at line 357 of file rolbck.hxx.
Referenced by Add(), AddChangeFlyAnchor(), AddDeleteFly(), dumpAsXml(), SwRegHistory::InsertItems(), Move(), Rollback(), SwRegHistory::SwClientNotify(), and TmpRollback().