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


class SwDoc
class SwRegHistory

Detailed Description

Definition at line 342 of file rolbck.hxx.

Constructor & Destructor Documentation

SwHistory::SwHistory ( )

Definition at line 967 of file rolbck.cxx.

SwHistory::~SwHistory ( )

Definition at line 973 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 1056 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 1065 of file rolbck.cxx.

References m_nEndDiff, and m_SwpHstry.

void SwHistory::Add ( SwFrameFormat rFormat)

Definition at line 1073 of file rolbck.cxx.

References m_SwpHstry.

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

Definition at line 1116 of file rolbck.cxx.

References m_SwpHstry.

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

Definition at line 1123 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
sal_uInt16 SwHistory::GetTmpEnd ( ) const

Definition at line 370 of file rolbck.hxx.

References m_nEndDiff.

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

Definition at line 377 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 372 of file rolbck.hxx.

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

Definition at line 373 of file rolbck.hxx.

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

Definition at line 1169 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 1144 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 344 of file rolbck.hxx.

friend class SwRegHistory

Definition at line 345 of file rolbck.hxx.

Member Data Documentation

sal_uInt16 SwHistory::m_nEndDiff

Definition at line 348 of file rolbck.hxx.

Referenced by Add(), 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: