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

#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, SwNodeOffset nNodeIdx)
void Add (SwTextAttr *pTextHt, SwNodeOffset nNodeIdx, bool bNewAttr)
void Add (SwFormatColl *, SwNodeOffset 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)
SwHistoryHintoperator[] (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 SwNodeOffset nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
void CopyFormatAttr (const SfxItemSet &rSet, SwNodeOffset nNodeIdx)
void dumpAsXml (xmlTextWriterPtr pWriter) const

Private Attributes

std::vector< std::unique_ptr< SwHistoryHint > > m_SwpHstry
sal_uInt16 m_nEndDiff


class SwDoc
class SwRegHistory

Detailed Description

Definition at line 351 of file rolbck.hxx.

Constructor & Destructor Documentation

SwHistory::SwHistory ( )

Definition at line 1025 of file rolbck.cxx.

SwHistory::~SwHistory ( )

Definition at line 1030 of file rolbck.cxx.

Member Function Documentation

void SwHistory::Add ( const SfxPoolItem pOldValue,
const SfxPoolItem pNewValue,
SwNodeOffset  nNodeIdx 
void SwHistory::Add ( SwTextAttr pTextHt,
SwNodeOffset  nNodeIdx,
bool  bNewAttr 
void SwHistory::Add ( SwFormatColl pColl,
SwNodeOffset  nNodeIdx,
SwNodeType  nWhichNd 

Definition at line 1113 of file rolbck.cxx.

References m_nEndDiff, and m_SwpHstry.

void SwHistory::Add ( const ::sw::mark::IMark rBkmk,
bool  bSavePos,
bool  bSaveOtherPos 
void SwHistory::Add ( const SwTextFootnote rFootnote)

Definition at line 1194 of file rolbck.cxx.

References m_SwpHstry.

void SwHistory::Add ( const SfxItemSet rSet,
const SwCharFormat rCharFormat 

Definition at line 1201 of file rolbck.cxx.

References SwFormat::GetName(), and m_SwpHstry.

void SwHistory::AddChangeFlyAnchor ( SwFrameFormat rFormat)

Definition at line 1149 of file rolbck.cxx.

References m_SwpHstry.

void SwHistory::AddDeleteFly ( SwFrameFormat rFormat,
sal_uInt16 &  rSetPos 
void SwHistory::CopyAttr ( SwpHints const *  pHts,
const SwNodeOffset  nNodeIdx,
const sal_Int32  nStart,
const sal_Int32  nEnd,
const bool  bCopyFields 
void SwHistory::CopyFormatAttr ( const SfxItemSet rSet,
SwNodeOffset  nNodeIdx 
sal_uInt16 SwHistory::Count ( ) const
void SwHistory::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 1289 of file rolbck.cxx.

References m_SwpHstry, and void().

sal_uInt16 SwHistory::GetTmpEnd ( ) const

Definition at line 379 of file rolbck.hxx.

References m_nEndDiff.

void SwHistory::Move ( sal_uInt16  nPos,
SwHistory pIns,
sal_uInt16 const  nStart = 0 

Definition at line 386 of file rolbck.hxx.

References m_SwpHstry.

Referenced by SwUndoDelete::RedoImpl(), SwUndoDelete::UndoImpl(), and SwUndoReplace::Impl::UndoImpl().

SwHistoryHint* SwHistory::operator[] ( sal_uInt16  nPos)

Definition at line 381 of file rolbck.hxx.

SwHistoryHint const* SwHistory::operator[] ( sal_uInt16  nPos) const

Definition at line 382 of file rolbck.hxx.

bool SwHistory::Rollback ( SwDoc pDoc,
sal_uInt16  nStart = 0 
sal_uInt16 SwHistory::SetTmpEnd ( sal_uInt16  nTmpEnd)

Definition at line 1247 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 1222 of file rolbck.cxx.

References Count(), m_nEndDiff, m_SwpHstry, and SwHistoryHint::SetInDoc().

Referenced by SwUndoTextToTable::UndoImpl().

Friends And Related Function Documentation

friend class SwDoc

Definition at line 353 of file rolbck.hxx.

friend class SwRegHistory

Definition at line 354 of file rolbck.hxx.

Member Data Documentation

sal_uInt16 SwHistory::m_nEndDiff

Definition at line 357 of file rolbck.hxx.

Referenced by Add(), AddDeleteFly(), GetTmpEnd(), Rollback(), SetTmpEnd(), and TmpRollback().

std::vector<std::unique_ptr<SwHistoryHint> > SwHistory::m_SwpHstry

The documentation for this class was generated from the following files: