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, 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 Add (SwFrameFormat &rFormat)
 
void Add (SwFlyFrameFormat &, 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 sal_uLong nNodeIdx, const sal_Int32 nStart, const sal_Int32 nEnd, const bool bCopyFields)
 
void CopyFormatAttr (const SfxItemSet &rSet, sal_uLong nNodeIdx)
 

Private Attributes

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

Friends

class SwDoc
 
class SwRegHistory
 

Detailed Description

Definition at line 345 of file rolbck.hxx.

Constructor & Destructor Documentation

SwHistory::SwHistory ( )

Definition at line 971 of file rolbck.cxx.

SwHistory::~SwHistory ( )

Definition at line 977 of file rolbck.cxx.

Member Function Documentation

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

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

References m_nEndDiff, and m_SwpHstry.

void SwHistory::Add ( SwFrameFormat rFormat)

Definition at line 1077 of file rolbck.cxx.

References m_SwpHstry.

void SwHistory::Add ( SwFlyFrameFormat rFormat,
sal_uInt16 &  rSetPos 
)
void SwHistory::Add ( const SwTextFootnote rFootnote)

Definition at line 1120 of file rolbck.cxx.

References m_SwpHstry.

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

Definition at line 1127 of file rolbck.cxx.

References SwFormat::GetName(), and m_SwpHstry.

void SwHistory::CopyAttr ( SwpHints const *  pHts,
const sal_uLong  nNodeIdx,
const sal_Int32  nStart,
const sal_Int32  nEnd,
const bool  bCopyFields 
)
void SwHistory::CopyFormatAttr ( const SfxItemSet rSet,
sal_uLong  nNodeIdx 
)
sal_uInt16 SwHistory::Count ( ) const
inline
sal_uInt16 SwHistory::GetTmpEnd ( ) const
inline

Definition at line 373 of file rolbck.hxx.

References m_nEndDiff.

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

Definition at line 380 of file rolbck.hxx.

References m_SwpHstry.

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

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

Definition at line 375 of file rolbck.hxx.

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

Definition at line 376 of file rolbck.hxx.

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

Definition at line 1173 of file rolbck.cxx.

References Count(), HSTRY_FLYCNT, and m_nEndDiff.

Referenced by SwUndoTextToTable::UndoImpl().

bool SwHistory::TmpRollback ( SwDoc pDoc,
sal_uInt16  nStart,
bool  ToFirst = true 
)

Definition at line 1148 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
friend

Definition at line 347 of file rolbck.hxx.

friend class SwRegHistory
friend

Definition at line 348 of file rolbck.hxx.

Member Data Documentation

sal_uInt16 SwHistory::m_nEndDiff
private

Definition at line 351 of file rolbck.hxx.

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

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

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