LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ScChangeTrack Class Referencefinal

#include <chgtrack.hxx>

Inheritance diagram for ScChangeTrack:
[legend]
Collaboration diagram for ScChangeTrack:
[legend]

Public Member Functions

SCSIZE ComputeContentSlot (sal_Int32 nRow) const
 
SC_DLLPUBLIC ScChangeTrack (ScDocument &)
 
 ScChangeTrack (ScDocument &rDocP, std::set< OUString > &&aTempUserCollection)
 
virtual SC_DLLPUBLIC ~ScChangeTrack () override
 
void Clear ()
 
ScChangeActionContentGetFirstGenerated () const
 
ScChangeActionGetFirst () const
 
ScChangeActionGetLast () const
 
sal_uLong GetActionMax () const
 
bool IsGenerated (sal_uLong nAction) const
 
SC_DLLPUBLIC ScChangeActionGetAction (sal_uLong nAction) const
 
ScChangeActionGetGenerated (sal_uLong nGenerated) const
 
ScChangeActionGetActionOrGenerated (sal_uLong nAction) const
 
sal_uLong GetLastSavedActionNumber () const
 
void SetLastSavedActionNumber (sal_uLong nNew)
 
ScChangeActionGetLastSaved () const
 
ScChangeActionContent ** GetContentSlots () const
 
const ScRangeGetInDeleteRange () const
 
bool IsInDelete () const
 
bool IsInDeleteTop () const
 
bool IsInDeleteUndo () const
 
bool IsInPasteCut () const
 
void CreateAuthorName ()
 
SC_DLLPUBLIC void SetUser (const OUString &rUser)
 
const OUString & GetUser () const
 
const std::set< OUString > & GetUserCollection () const
 
ScDocumentGetDocument () const
 
const DateTimeGetFixDateTime () const
 
void SetUseFixDateTime (bool bVal)
 
void SetFixDateTimeUTC (const DateTime &rDT)
 
void SetFixDateTimeLocal (const DateTime &rDT)
 
void Append (ScChangeAction *)
 
SC_DLLPUBLIC void AppendDeleteRange (const ScRange &, ScDocument *pRefDoc, sal_uLong &nStartAction, sal_uLong &nEndAction, SCTAB nDz=0)
 
void AppendContent (const ScAddress &rPos, const ScDocument *pRefDoc)
 
void AppendContentRange (const ScRange &rRange, ScDocument *pRefDoc, sal_uLong &nStartAction, sal_uLong &nEndAction, ScChangeActionClipMode eMode=SC_CACM_NONE)
 
void AppendContent (const ScAddress &rPos, const ScCellValue &rOldCell, sal_uLong nOldFormat, ScDocument *pRefDoc=nullptr)
 
SC_DLLPUBLIC void AppendContent (const ScAddress &rPos, const ScCellValue &rOldCell)
 
void AppendContentsIfInRefDoc (ScDocument &rRefDoc, sal_uLong &nStartAction, sal_uLong &nEndAction)
 
SC_DLLPUBLIC ScChangeActionContentAppendContentOnTheFly (const ScAddress &rPos, const ScCellValue &rOldCell, const ScCellValue &rNewCell, sal_uLong nOldFormat=0, sal_uLong nNewFormat=0)
 
SC_DLLPUBLIC void AppendInsert (const ScRange &rRange, bool bEndOfList=false)
 
SC_DLLPUBLIC void AppendMove (const ScRange &rFromRange, const ScRange &rToRange, ScDocument *pRefDoc)
 
void ResetLastCut ()
 
bool HasLastCut () const
 
SC_DLLPUBLIC void Undo (sal_uLong nStartAction, sal_uLong nEndAction, bool bMerge=false)
 
void MergePrepare (const ScChangeAction *pFirstMerge, bool bShared)
 may only be used in a temporary opened document. More...
 
void MergeOwn (ScChangeAction *pAct, sal_uLong nFirstMerge, bool bShared)
 
SC_DLLPUBLIC void GetDependents (ScChangeAction *, ScChangeActionMap &, bool bListMasterDelete=false, bool bAllFlat=false) const
 
bool Reject (ScChangeAction *, bool bShared=false)
 
SC_DLLPUBLIC bool Accept (ScChangeAction *)
 
void AcceptAll ()
 
bool RejectAll ()
 
bool SelectContent (ScChangeAction *, bool bOldest=false)
 
void SetModifiedLink (const Link< ScChangeTrack &, void > &r)
 
ScChangeTrackMsgQueueGetMsgQueue ()
 
void NotifyModified (ScChangeTrackMsgType eMsgType, sal_uLong nStartAction, sal_uLong nEndAction)
 
sal_uLong AddLoadedGenerated (const ScCellValue &rNewCell, const ScBigRange &aBigRange, const OUString &sNewValue)
 
void AppendLoaded (std::unique_ptr< ScChangeAction > pAppend)
 
void SetActionMax (sal_uLong nTempActionMax)
 
void SetProtection (const css::uno::Sequence< sal_Int8 > &rPass)
 
const css::uno::Sequence< sal_Int8 > & GetProtection () const
 
bool IsProtected () const
 
void SetTimeNanoSeconds (bool bVal)
 
bool IsTimeNanoSeconds () const
 
void AppendCloned (ScChangeAction *pAppend)
 
SC_DLLPUBLIC ScChangeTrackClone (ScDocument *pDocument) const
 
void GetChangeTrackInfo (tools::JsonWriter &)
 Get info about all ScChangeAction elements. More...
 
- Public Member Functions inherited from utl::ConfigurationListener
virtual ~ConfigurationListener ()
 
virtual void ConfigurationChanged (ConfigurationBroadcaster *p, ConfigurationHints nHint)=0
 

Static Public Member Functions

static bool MergeIgnore (const ScChangeAction &, sal_uLong nFirstMerge)
 
static void MergeActionState (ScChangeAction *pAct, const ScChangeAction *pOtherAct)
 

Private Member Functions

 ScChangeTrack (const ScChangeTrack &)=delete
 
ScChangeTrackoperator= (const ScChangeTrack &)=delete
 
SCROW InitContentRowsPerSlot ()
 
void Init ()
 
void DtorClear ()
 
void SetInDeleteRange (const ScRange &rRange)
 
void SetInDelete (bool bVal)
 
void SetInDeleteTop (bool bVal)
 
void SetInDeleteUndo (bool bVal)
 
void SetInPasteCut (bool bVal)
 
void SetMergeState (ScChangeTrackMergeState eState)
 
ScChangeTrackMergeState GetMergeState () const
 
void SetLastMerge (sal_uLong nVal)
 
sal_uLong GetLastMerge () const
 
void SetLastCutMoveRange (const ScRange &, ScDocument *)
 
void StartBlockModify (ScChangeTrackMsgType, sal_uLong nStartAction)
 
void EndBlockModify (sal_uLong nEndAction)
 
void AddDependentWithNotify (ScChangeAction *pParent, ScChangeAction *pDependent)
 
void Dependencies (ScChangeAction *)
 
void UpdateReference (ScChangeAction *, bool bUndo)
 
void UpdateReference (ScChangeAction **ppFirstAction, ScChangeAction *pAct, bool bUndo)
 
void Append (ScChangeAction *pAppend, sal_uLong nAction)
 
SC_DLLPUBLIC void AppendDeleteRange (const ScRange &, ScDocument *pRefDoc, SCTAB nDz, sal_uLong nRejectingInsert)
 
void AppendOneDeleteRange (const ScRange &rOrgRange, ScDocument *pRefDoc, SCCOL nDx, SCROW nDy, SCTAB nDz, sal_uLong nRejectingInsert)
 
void LookUpContents (const ScRange &rOrgRange, ScDocument *pRefDoc, SCCOL nDx, SCROW nDy, SCTAB nDz)
 
void Remove (ScChangeAction *)
 
void MasterLinks (ScChangeAction *)
 
ScChangeActionContentSearchContentAt (const ScBigAddress &, const ScChangeAction *pButNotThis) const
 
void DeleteGeneratedDelContent (ScChangeActionContent *)
 
ScChangeActionContentGenerateDelContent (const ScAddress &rPos, const ScCellValue &rCell, const ScDocument *pFromDoc)
 
void DeleteCellEntries (std::vector< ScChangeActionContent * > &, const ScChangeAction *pDeletor)
 
bool Reject (ScChangeAction *, ScChangeActionMap *, bool bRecursion)
 
bool IsLastAction (sal_uLong nNum) const
 
void ClearMsgQueue ()
 
virtual void ConfigurationChanged (utl::ConfigurationBroadcaster *, ConfigurationHints) override
 

Static Private Member Functions

static bool IsMatrixFormulaRangeDifferent (const ScCellValue &rOldCell, const ScCellValue &rNewCell)
 

Private Attributes

SCROW mnContentRowsPerSlot
 
SCSIZE mnContentSlots
 
css::uno::Sequence< sal_Int8aProtectPass
 
ScChangeActionMap aMap
 
ScChangeActionMap aGeneratedMap
 
ScChangeActionMap aPasteCutMap
 
ScChangeTrackMsgQueue aMsgQueue
 
ScChangeTrackMsgStack aMsgStackTmp
 
ScChangeTrackMsgStack aMsgStackFinal
 
std::set< OUString > maUserCollection
 
OUString maUser
 
Link< ScChangeTrack &, void > aModifiedLink
 
ScRange aInDeleteRange
 
DateTime aFixDateTime
 
ScChangeActionpFirst
 
ScChangeActionpLast
 
ScChangeActionContentpFirstGeneratedDelContent
 
std::unique_ptr< ScChangeActionContent *[]> ppContentSlots
 
std::unique_ptr< ScChangeActionMovepLastCutMove
 
ScChangeActionLinkEntrypLinkInsertCol
 
ScChangeActionLinkEntrypLinkInsertRow
 
ScChangeActionLinkEntrypLinkInsertTab
 
ScChangeActionLinkEntrypLinkMove
 
std::optional< ScChangeTrackMsgInfoxBlockModifyMsg
 
ScDocumentrDoc
 
sal_uLong nActionMax
 
sal_uLong nGeneratedMin
 
sal_uLong nMarkLastSaved
 
sal_uLong nStartLastCut
 
sal_uLong nEndLastCut
 
sal_uLong nLastMerge
 
ScChangeTrackMergeState eMergeState
 
bool bInDelete:1
 
bool bInDeleteUndo:1
 
bool bInDeleteTop:1
 
bool bInPasteCut:1
 
bool bUseFixDateTime:1
 
bool bTimeNanoSeconds:1
 

Friends

void ScChangeAction::RejectRestoreContents (ScChangeTrack *, SCCOL, SCROW)
 
bool ScChangeActionDel::Reject (ScDocument &pDoc)
 
void ScChangeActionDel::DeleteCellEntries ()
 
void ScChangeActionMove::DeleteCellEntries ()
 
bool ScChangeActionMove::Reject (ScDocument &pDoc)
 

Detailed Description

Definition at line 813 of file chgtrack.hxx.

Constructor & Destructor Documentation

◆ ScChangeTrack() [1/3]

ScChangeTrack::ScChangeTrack ( const ScChangeTrack )
privatedelete

Referenced by Clone().

◆ ScChangeTrack() [2/3]

ScChangeTrack::ScChangeTrack ( ScDocument rDocP)

Definition at line 2005 of file chgtrack.cxx.

References Init(), mnContentSlots, ppContentSlots, and SC_MOD.

◆ ScChangeTrack() [3/3]

ScChangeTrack::ScChangeTrack ( ScDocument rDocP,
std::set< OUString > &&  aTempUserCollection 
)

Definition at line 2016 of file chgtrack.cxx.

References Init(), mnContentSlots, ppContentSlots, and SC_MOD.

◆ ~ScChangeTrack()

ScChangeTrack::~ScChangeTrack ( )
overridevirtual

Definition at line 2027 of file chgtrack.cxx.

References DtorClear(), and SC_MOD.

Member Function Documentation

◆ Accept()

bool ScChangeTrack::Accept ( ScChangeAction pAct)

◆ AcceptAll()

void ScChangeTrack::AcceptAll ( )

Definition at line 4080 of file chgtrack.cxx.

References GetFirst(), and p.

Referenced by IMPL_LINK_NOARG().

◆ AddDependentWithNotify()

void ScChangeTrack::AddDependentWithNotify ( ScChangeAction pParent,
ScChangeAction pDependent 
)
private

◆ AddLoadedGenerated()

sal_uLong ScChangeTrack::AddLoadedGenerated ( const ScCellValue rNewCell,
const ScBigRange aBigRange,
const OUString &  sNewValue 
)

◆ Append() [1/2]

void ScChangeTrack::Append ( ScChangeAction pAppend)

Definition at line 2386 of file chgtrack.cxx.

References Append(), and nActionMax.

◆ Append() [2/2]

void ScChangeTrack::Append ( ScChangeAction pAppend,
sal_uLong  nAction 
)
private

◆ AppendCloned()

void ScChangeTrack::AppendCloned ( ScChangeAction pAppend)

◆ AppendContent() [1/3]

void ScChangeTrack::AppendContent ( const ScAddress rPos,
const ScCellValue rOldCell 
)

◆ AppendContent() [2/3]

void ScChangeTrack::AppendContent ( const ScAddress rPos,
const ScCellValue rOldCell,
sal_uLong  nOldFormat,
ScDocument pRefDoc = nullptr 
)

◆ AppendContent() [3/3]

void ScChangeTrack::AppendContent ( const ScAddress rPos,
const ScDocument pRefDoc 
)

◆ AppendContentOnTheFly()

ScChangeActionContent * ScChangeTrack::AppendContentOnTheFly ( const ScAddress rPos,
const ScCellValue rOldCell,
const ScCellValue rNewCell,
sal_uLong  nOldFormat = 0,
sal_uLong  nNewFormat = 0 
)

Definition at line 2752 of file chgtrack.cxx.

References Append(), rDoc, and ScChangeActionContent::SetOldNewCells().

◆ AppendContentRange()

void ScChangeTrack::AppendContentRange ( const ScRange rRange,
ScDocument pRefDoc,
sal_uLong nStartAction,
sal_uLong nEndAction,
ScChangeActionClipMode  eMode = SC_CACM_NONE 
)

◆ AppendContentsIfInRefDoc()

void ScChangeTrack::AppendContentsIfInRefDoc ( ScDocument rRefDoc,
sal_uLong nStartAction,
sal_uLong nEndAction 
)

◆ AppendDeleteRange() [1/2]

void ScChangeTrack::AppendDeleteRange ( const ScRange rRange,
ScDocument pRefDoc,
sal_uLong nStartAction,
sal_uLong nEndAction,
SCTAB  nDz = 0 
)

Definition at line 2391 of file chgtrack.cxx.

References AppendDeleteRange(), and GetActionMax().

◆ AppendDeleteRange() [2/2]

void ScChangeTrack::AppendDeleteRange ( const ScRange rRange,
ScDocument pRefDoc,
SCTAB  nDz,
sal_uLong  nRejectingInsert 
)
private

◆ AppendInsert()

void ScChangeTrack::AppendInsert ( const ScRange rRange,
bool  bEndOfList = false 
)

◆ AppendLoaded()

void ScChangeTrack::AppendLoaded ( std::unique_ptr< ScChangeAction pAppend)

◆ AppendMove()

void ScChangeTrack::AppendMove ( const ScRange rFromRange,
const ScRange rToRange,
ScDocument pRefDoc 
)

◆ AppendOneDeleteRange()

void ScChangeTrack::AppendOneDeleteRange ( const ScRange rOrgRange,
ScDocument pRefDoc,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz,
sal_uLong  nRejectingInsert 
)
private

◆ Clear()

void ScChangeTrack::Clear ( )

Definition at line 2094 of file chgtrack.cxx.

References aGeneratedMap, aMap, aPasteCutMap, DtorClear(), Init(), maUser, and maUserCollection.

Referenced by ScDocShell::MergeDocument().

◆ ClearMsgQueue()

void ScChangeTrack::ClearMsgQueue ( )
private

Definition at line 2086 of file chgtrack.cxx.

References aMsgQueue, aMsgStackFinal, aMsgStackTmp, and xBlockModifyMsg.

Referenced by DtorClear().

◆ Clone()

ScChangeTrack * ScChangeTrack::Clone ( ScDocument pDocument) const

◆ ComputeContentSlot()

SCSIZE ScChangeTrack::ComputeContentSlot ( sal_Int32  nRow) const

◆ ConfigurationChanged()

void ScChangeTrack::ConfigurationChanged ( utl::ConfigurationBroadcaster ,
ConfigurationHints   
)
overrideprivatevirtual

◆ CreateAuthorName()

void ScChangeTrack::CreateAuthorName ( )

◆ DeleteCellEntries()

void ScChangeTrack::DeleteCellEntries ( std::vector< ScChangeActionContent * > &  rCellList,
const ScChangeAction pDeletor 
)
private

◆ DeleteGeneratedDelContent()

void ScChangeTrack::DeleteGeneratedDelContent ( ScChangeActionContent pContent)
private

◆ Dependencies()

void ScChangeTrack::Dependencies ( ScChangeAction pAct)
private

◆ DtorClear()

void ScChangeTrack::DtorClear ( )
private

Definition at line 2064 of file chgtrack.cxx.

References aPasteCutMap, ClearMsgQueue(), GetFirst(), p, pFirstGeneratedDelContent, and pLastCutMove.

Referenced by Clear(), and ~ScChangeTrack().

◆ EndBlockModify()

void ScChangeTrack::EndBlockModify ( sal_uLong  nEndAction)
private

◆ GenerateDelContent()

ScChangeActionContent * ScChangeTrack::GenerateDelContent ( const ScAddress rPos,
const ScCellValue rCell,
const ScDocument pFromDoc 
)
private

◆ GetAction()

ScChangeAction * ScChangeTrack::GetAction ( sal_uLong  nAction) const

◆ GetActionMax()

sal_uLong ScChangeTrack::GetActionMax ( ) const
inline

◆ GetActionOrGenerated()

ScChangeAction * ScChangeTrack::GetActionOrGenerated ( sal_uLong  nAction) const

◆ GetChangeTrackInfo()

void ScChangeTrack::GetChangeTrackInfo ( tools::JsonWriter aRedlines)

Get info about all ScChangeAction elements.

Definition at line 4663 of file chgtrack.cxx.

References GetFirst(), GetLast(), ScChangeAction::GetNext(), i, lcl_getTrackedChange(), rDoc, and tools::JsonWriter::startArray().

◆ GetContentSlots()

ScChangeActionContent ** ScChangeTrack::GetContentSlots ( ) const
inline

Definition at line 961 of file chgtrack.hxx.

Referenced by ScChangeActionContent::UpdateReference().

◆ GetDependents()

void ScChangeTrack::GetDependents ( ScChangeAction pAct,
ScChangeActionMap rMap,
bool  bListMasterDelete = false,
bool  bAllFlat = false 
) const

◆ GetDocument()

ScDocument & ScChangeTrack::GetDocument ( ) const
inline

◆ GetFirst()

ScChangeAction * ScChangeTrack::GetFirst ( ) const
inline

◆ GetFirstGenerated()

ScChangeActionContent * ScChangeTrack::GetFirstGenerated ( ) const
inline

Definition at line 950 of file chgtrack.hxx.

Referenced by Clone(), and ScChangeTrackingExportHelper::CollectAutoStyles().

◆ GetFixDateTime()

const DateTime & ScChangeTrack::GetFixDateTime ( ) const
inline

Definition at line 975 of file chgtrack.hxx.

◆ GetGenerated()

ScChangeAction * ScChangeTrack::GetGenerated ( sal_uLong  nGenerated) const

Definition at line 2119 of file chgtrack.cxx.

References aGeneratedMap.

Referenced by GetActionOrGenerated().

◆ GetInDeleteRange()

const ScRange & ScChangeTrack::GetInDeleteRange ( ) const
inline

Definition at line 963 of file chgtrack.hxx.

Referenced by ScChangeActionContent::UpdateReference().

◆ GetLast()

ScChangeAction * ScChangeTrack::GetLast ( ) const
inline

◆ GetLastMerge()

sal_uLong ScChangeTrack::GetLastMerge ( ) const
inlineprivate

Definition at line 887 of file chgtrack.hxx.

Referenced by UpdateReference().

◆ GetLastSaved()

ScChangeAction * ScChangeTrack::GetLastSaved ( ) const

Definition at line 2144 of file chgtrack.cxx.

References aMap, and nMarkLastSaved.

Referenced by ScChangeViewSettings::AdjustDateMode().

◆ GetLastSavedActionNumber()

sal_uLong ScChangeTrack::GetLastSavedActionNumber ( ) const

Definition at line 2134 of file chgtrack.cxx.

References nMarkLastSaved.

Referenced by ScViewUtil::IsActionShown().

◆ GetMergeState()

ScChangeTrackMergeState ScChangeTrack::GetMergeState ( ) const
inlineprivate

Definition at line 885 of file chgtrack.hxx.

Referenced by UpdateReference().

◆ GetMsgQueue()

ScChangeTrackMsgQueue & ScChangeTrack::GetMsgQueue ( )

Definition at line 2245 of file chgtrack.cxx.

References aMsgQueue.

◆ GetProtection()

const css::uno::Sequence< sal_Int8 > & ScChangeTrack::GetProtection ( ) const
inline

◆ GetUser()

const OUString & ScChangeTrack::GetUser ( ) const
inline

◆ GetUserCollection()

const std::set< OUString > & ScChangeTrack::GetUserCollection ( ) const
inline

◆ HasLastCut()

bool ScChangeTrack::HasLastCut ( ) const
inline

Definition at line 1052 of file chgtrack.hxx.

Referenced by AppendContentRange().

◆ Init()

void ScChangeTrack::Init ( void  )
private

◆ InitContentRowsPerSlot()

SCROW ScChangeTrack::InitContentRowsPerSlot ( )
private

Definition at line 1996 of file chgtrack.cxx.

References ScDocument::GetMaxRowCount(), and rDoc.

Referenced by Init().

◆ IsGenerated()

bool ScChangeTrack::IsGenerated ( sal_uLong  nAction) const

◆ IsInDelete()

bool ScChangeTrack::IsInDelete ( ) const
inline

Definition at line 965 of file chgtrack.hxx.

Referenced by ScChangeActionContent::UpdateReference().

◆ IsInDeleteTop()

bool ScChangeTrack::IsInDeleteTop ( ) const
inline

Definition at line 966 of file chgtrack.hxx.

Referenced by ScChangeActionContent::UpdateReference().

◆ IsInDeleteUndo()

bool ScChangeTrack::IsInDeleteUndo ( ) const
inline

◆ IsInPasteCut()

bool ScChangeTrack::IsInPasteCut ( ) const
inline

Definition at line 968 of file chgtrack.hxx.

Referenced by Remove(), and Undo().

◆ IsLastAction()

bool ScChangeTrack::IsLastAction ( sal_uLong  nNum) const
private

Definition at line 4331 of file chgtrack.cxx.

References ScChangeAction::GetActionNumber(), nActionMax, and pLast.

Referenced by Undo().

◆ IsMatrixFormulaRangeDifferent()

bool ScChangeTrack::IsMatrixFormulaRangeDifferent ( const ScCellValue rOldCell,
const ScCellValue rNewCell 
)
staticprivate

◆ IsProtected()

bool ScChangeTrack::IsProtected ( ) const
inline

◆ IsTimeNanoSeconds()

bool ScChangeTrack::IsTimeNanoSeconds ( ) const
inline

◆ LookUpContents()

void ScChangeTrack::LookUpContents ( const ScRange rOrgRange,
ScDocument pRefDoc,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz 
)
private

◆ MasterLinks()

void ScChangeTrack::MasterLinks ( ScChangeAction pAppend)
private

◆ MergeActionState()

void ScChangeTrack::MergeActionState ( ScChangeAction pAct,
const ScChangeAction pOtherAct 
)
static

◆ MergeIgnore()

bool ScChangeTrack::MergeIgnore ( const ScChangeAction rAction,
sal_uLong  nFirstMerge 
)
static

◆ MergeOwn()

void ScChangeTrack::MergeOwn ( ScChangeAction pAct,
sal_uLong  nFirstMerge,
bool  bShared 
)

◆ MergePrepare()

void ScChangeTrack::MergePrepare ( const ScChangeAction pFirstMerge,
bool  bShared 
)

◆ NotifyModified()

void ScChangeTrack::NotifyModified ( ScChangeTrackMsgType  eMsgType,
sal_uLong  nStartAction,
sal_uLong  nEndAction 
)

◆ operator=()

ScChangeTrack & ScChangeTrack::operator= ( const ScChangeTrack )
privatedelete

References Init().

◆ Reject() [1/2]

bool ScChangeTrack::Reject ( ScChangeAction pAct,
bool  bShared = false 
)

◆ Reject() [2/2]

bool ScChangeTrack::Reject ( ScChangeAction pAct,
ScChangeActionMap pMap,
bool  bRecursion 
)
private

◆ RejectAll()

bool ScChangeTrack::RejectAll ( )

Definition at line 4108 of file chgtrack.cxx.

References GetLast(), p, and Reject().

Referenced by IMPL_LINK_NOARG().

◆ Remove()

void ScChangeTrack::Remove ( ScChangeAction pRemove)
private

◆ ResetLastCut()

void ScChangeTrack::ResetLastCut ( )
inline

◆ SearchContentAt()

ScChangeActionContent * ScChangeTrack::SearchContentAt ( const ScBigAddress rPos,
const ScChangeAction pButNotThis 
) const
private

◆ SelectContent()

bool ScChangeTrack::SelectContent ( ScChangeAction pAct,
bool  bOldest = false 
)

◆ SetActionMax()

void ScChangeTrack::SetActionMax ( sal_uLong  nTempActionMax)
inline

Definition at line 1119 of file chgtrack.hxx.

Referenced by ScXMLChangeTrackingImportHelper::CreateChangeTrack().

◆ SetFixDateTimeLocal()

void ScChangeTrack::SetFixDateTimeLocal ( const DateTime rDT)
inline

Definition at line 986 of file chgtrack.hxx.

References DateTime::ConvertToUTC().

◆ SetFixDateTimeUTC()

void ScChangeTrack::SetFixDateTimeUTC ( const DateTime rDT)
inline

Definition at line 983 of file chgtrack.hxx.

Referenced by ScDocShell::MergeDocument().

◆ SetInDelete()

void ScChangeTrack::SetInDelete ( bool  bVal)
inlineprivate

Definition at line 875 of file chgtrack.hxx.

Referenced by ScChangeActionDel::Reject(), and UpdateReference().

◆ SetInDeleteRange()

void ScChangeTrack::SetInDeleteRange ( const ScRange rRange)
inlineprivate

◆ SetInDeleteTop()

void ScChangeTrack::SetInDeleteTop ( bool  bVal)
inlineprivate

◆ SetInDeleteUndo()

void ScChangeTrack::SetInDeleteUndo ( bool  bVal)
inlineprivate

Definition at line 879 of file chgtrack.hxx.

Referenced by ScChangeActionDel::Reject(), and UpdateReference().

◆ SetInPasteCut()

void ScChangeTrack::SetInPasteCut ( bool  bVal)
inlineprivate

Definition at line 881 of file chgtrack.hxx.

Referenced by AppendContentRange().

◆ SetLastCutMoveRange()

void ScChangeTrack::SetLastCutMoveRange ( const ScRange rRange,
ScDocument pRefDoc 
)
private

◆ SetLastMerge()

void ScChangeTrack::SetLastMerge ( sal_uLong  nVal)
inlineprivate

Definition at line 886 of file chgtrack.hxx.

Referenced by MergePrepare().

◆ SetLastSavedActionNumber()

void ScChangeTrack::SetLastSavedActionNumber ( sal_uLong  nNew)

Definition at line 2139 of file chgtrack.cxx.

References nMarkLastSaved.

Referenced by ScXMLChangeTrackingImportHelper::CreateChangeTrack().

◆ SetMergeState()

void ScChangeTrack::SetMergeState ( ScChangeTrackMergeState  eState)
inlineprivate

Definition at line 883 of file chgtrack.hxx.

Referenced by MergeOwn(), MergePrepare(), and Undo().

◆ SetModifiedLink()

void ScChangeTrack::SetModifiedLink ( const Link< ScChangeTrack &, void > &  r)
inline

◆ SetProtection()

void ScChangeTrack::SetProtection ( const css::uno::Sequence< sal_Int8 > &  rPass)
inline

◆ SetTimeNanoSeconds()

void ScChangeTrack::SetTimeNanoSeconds ( bool  bVal)
inline

◆ SetUseFixDateTime()

void ScChangeTrack::SetUseFixDateTime ( bool  bVal)
inline

Definition at line 980 of file chgtrack.hxx.

Referenced by ScDocShell::MergeDocument().

◆ SetUser()

void ScChangeTrack::SetUser ( const OUString &  rUser)

◆ StartBlockModify()

void ScChangeTrack::StartBlockModify ( ScChangeTrackMsgType  eMsgType,
sal_uLong  nStartAction 
)
private

◆ Undo()

void ScChangeTrack::Undo ( sal_uLong  nStartAction,
sal_uLong  nEndAction,
bool  bMerge = false 
)

◆ UpdateReference() [1/2]

void ScChangeTrack::UpdateReference ( ScChangeAction **  ppFirstAction,
ScChangeAction pAct,
bool  bUndo 
)
private

Definition at line 3244 of file chgtrack.cxx.

References ScChangeActionDel::AddContent(), ScChangeActionMove::AddContent(), ScChangeActionDel::AddCutOffMove(), ScChangeAction::AddDependent(), AddDependentWithNotify(), ScChangeAction::AddLink(), ScBigRange::aEnd, ScBigRange::aStart, ScBigAddress::Col(), ScBigRange::Contains(), eMode, ScChangeAction::GetActionNumber(), ScChangeAction::GetBigRange(), ScChangeAction::GetFirstDependentEntry(), ScChangeActionMove::GetFromRange(), GetLastMerge(), GetMergeState(), ScChangeActionContent::GetNextContent(), ScChangeActionContent::GetPrevContent(), ScChangeAction::GetType(), ScBigAddress::IncCol(), ScBigAddress::IncRow(), ScBigAddress::IncTab(), ScBigRange::Intersects(), ScChangeAction::IsDeletedIn(), ScChangeAction::IsDeleteType(), ScChangeAction::IsInsertType(), ScChangeAction::IsRejected(), nEndLastCut, ScBigRange::nRangeMax, p, pFirstGeneratedDelContent, pLastCutMove, pLink, ScChangeAction::RemoveDeletedIn(), ScBigAddress::Row(), SC_CAT_CONTENT, SC_CAT_DELETE_COLS, SC_CAT_DELETE_ROWS, SC_CAT_DELETE_TABS, SC_CAT_INSERT_COLS, SC_CAT_INSERT_ROWS, SC_CAT_INSERT_TABS, SC_CAT_MOVE, SC_CAT_NONE, SC_CTMS_NONE, SC_CTMS_OTHER, SC_CTMS_OWN, SC_CTMS_PREPARE, SC_CTMS_UNDO, ScBigAddress::SetCol(), ScChangeActionDel::SetCutOffInsert(), ScChangeAction::SetDeletedIn(), ScChangeActionContent::SetNextContent(), ScChangeActionContent::SetPrevContent(), ScBigAddress::SetRow(), ScBigAddress::SetTab(), ScBigAddress::Tab(), ScChangeActionDel::UndoCutOffInsert(), ScChangeActionDel::UndoCutOffMoves(), URM_INSDEL, and URM_MOVE.

◆ UpdateReference() [2/2]

void ScChangeTrack::UpdateReference ( ScChangeAction pAct,
bool  bUndo 
)
private

Friends And Related Function Documentation

◆ ScChangeAction::RejectRestoreContents

◆ ScChangeActionDel::DeleteCellEntries

◆ ScChangeActionDel::Reject

bool ScChangeActionDel::Reject ( ScDocument pDoc)
friend

◆ ScChangeActionMove::DeleteCellEntries

◆ ScChangeActionMove::Reject

bool ScChangeActionMove::Reject ( ScDocument pDoc)
friend

Member Data Documentation

◆ aFixDateTime

DateTime ScChangeTrack::aFixDateTime
private

Definition at line 835 of file chgtrack.hxx.

Referenced by Append().

◆ aGeneratedMap

ScChangeActionMap ScChangeTrack::aGeneratedMap
private

◆ aInDeleteRange

ScRange ScChangeTrack::aInDeleteRange
private

Definition at line 834 of file chgtrack.hxx.

◆ aMap

ScChangeActionMap ScChangeTrack::aMap
private

Definition at line 825 of file chgtrack.hxx.

Referenced by Append(), AppendCloned(), AppendLoaded(), Clear(), GetAction(), GetLastSaved(), Remove(), and Undo().

◆ aModifiedLink

Link<ScChangeTrack&,void> ScChangeTrack::aModifiedLink
private

◆ aMsgQueue

ScChangeTrackMsgQueue ScChangeTrack::aMsgQueue
private

Definition at line 828 of file chgtrack.hxx.

Referenced by ClearMsgQueue(), EndBlockModify(), and GetMsgQueue().

◆ aMsgStackFinal

ScChangeTrackMsgStack ScChangeTrack::aMsgStackFinal
private

Definition at line 830 of file chgtrack.hxx.

Referenced by ClearMsgQueue(), and EndBlockModify().

◆ aMsgStackTmp

ScChangeTrackMsgStack ScChangeTrack::aMsgStackTmp
private

Definition at line 829 of file chgtrack.hxx.

Referenced by ClearMsgQueue(), EndBlockModify(), and StartBlockModify().

◆ aPasteCutMap

ScChangeActionMap ScChangeTrack::aPasteCutMap
private

Definition at line 827 of file chgtrack.hxx.

Referenced by Clear(), DtorClear(), and Undo().

◆ aProtectPass

css::uno::Sequence< sal_Int8 > ScChangeTrack::aProtectPass
private

Definition at line 824 of file chgtrack.hxx.

◆ bInDelete

bool ScChangeTrack::bInDelete
private

Definition at line 854 of file chgtrack.hxx.

Referenced by Init().

◆ bInDeleteTop

bool ScChangeTrack::bInDeleteTop
private

Definition at line 856 of file chgtrack.hxx.

Referenced by Init().

◆ bInDeleteUndo

bool ScChangeTrack::bInDeleteUndo
private

Definition at line 855 of file chgtrack.hxx.

Referenced by Init().

◆ bInPasteCut

bool ScChangeTrack::bInPasteCut
private

Definition at line 857 of file chgtrack.hxx.

Referenced by Init().

◆ bTimeNanoSeconds

bool ScChangeTrack::bTimeNanoSeconds
private

Definition at line 859 of file chgtrack.hxx.

Referenced by Init().

◆ bUseFixDateTime

bool ScChangeTrack::bUseFixDateTime
private

Definition at line 858 of file chgtrack.hxx.

Referenced by Append(), and Init().

◆ eMergeState

ScChangeTrackMergeState ScChangeTrack::eMergeState
private

Definition at line 853 of file chgtrack.hxx.

Referenced by Init().

◆ maUser

OUString ScChangeTrack::maUser
private

Definition at line 832 of file chgtrack.hxx.

Referenced by Append(), Clear(), and SetUser().

◆ maUserCollection

std::set<OUString> ScChangeTrack::maUserCollection
private

Definition at line 831 of file chgtrack.hxx.

Referenced by Clear(), ConfigurationChanged(), and SetUser().

◆ mnContentRowsPerSlot

SCROW ScChangeTrack::mnContentRowsPerSlot
private

Definition at line 821 of file chgtrack.hxx.

Referenced by ComputeContentSlot(), and Init().

◆ mnContentSlots

SCSIZE ScChangeTrack::mnContentSlots
private

Definition at line 822 of file chgtrack.hxx.

Referenced by ComputeContentSlot(), Init(), and ScChangeTrack().

◆ nActionMax

sal_uLong ScChangeTrack::nActionMax
private

Definition at line 847 of file chgtrack.hxx.

Referenced by Append(), Init(), IsLastAction(), Remove(), and Undo().

◆ nEndLastCut

sal_uLong ScChangeTrack::nEndLastCut
private

Definition at line 851 of file chgtrack.hxx.

Referenced by AppendContentRange(), Init(), Undo(), and UpdateReference().

◆ nGeneratedMin

sal_uLong ScChangeTrack::nGeneratedMin
private

◆ nLastMerge

sal_uLong ScChangeTrack::nLastMerge
private

Definition at line 852 of file chgtrack.hxx.

Referenced by Init().

◆ nMarkLastSaved

sal_uLong ScChangeTrack::nMarkLastSaved
private

◆ nStartLastCut

sal_uLong ScChangeTrack::nStartLastCut
private

Definition at line 850 of file chgtrack.hxx.

Referenced by AppendContentRange(), Init(), and Undo().

◆ pFirst

ScChangeAction* ScChangeTrack::pFirst
private

Definition at line 836 of file chgtrack.hxx.

Referenced by Append(), AppendCloned(), AppendLoaded(), Init(), Remove(), and UpdateReference().

◆ pFirstGeneratedDelContent

ScChangeActionContent* ScChangeTrack::pFirstGeneratedDelContent
private

◆ pLast

ScChangeAction* ScChangeTrack::pLast
private

Definition at line 837 of file chgtrack.hxx.

Referenced by Append(), AppendCloned(), AppendLoaded(), Init(), IsLastAction(), Remove(), and Undo().

◆ pLastCutMove

std::unique_ptr<ScChangeActionMove> ScChangeTrack::pLastCutMove
private

◆ pLinkInsertCol

ScChangeActionLinkEntry* ScChangeTrack::pLinkInsertCol
private

Definition at line 841 of file chgtrack.hxx.

Referenced by Dependencies(), Init(), and MasterLinks().

◆ pLinkInsertRow

ScChangeActionLinkEntry* ScChangeTrack::pLinkInsertRow
private

Definition at line 842 of file chgtrack.hxx.

Referenced by Dependencies(), Init(), and MasterLinks().

◆ pLinkInsertTab

ScChangeActionLinkEntry* ScChangeTrack::pLinkInsertTab
private

Definition at line 843 of file chgtrack.hxx.

Referenced by Dependencies(), Init(), and MasterLinks().

◆ pLinkMove

ScChangeActionLinkEntry* ScChangeTrack::pLinkMove
private

Definition at line 844 of file chgtrack.hxx.

Referenced by Dependencies(), Init(), and MasterLinks().

◆ ppContentSlots

std::unique_ptr<ScChangeActionContent*[]> ScChangeTrack::ppContentSlots
private

Definition at line 839 of file chgtrack.hxx.

Referenced by MasterLinks(), ScChangeTrack(), and SearchContentAt().

◆ rDoc

ScDocument& ScChangeTrack::rDoc
private

◆ xBlockModifyMsg

std::optional<ScChangeTrackMsgInfo> ScChangeTrack::xBlockModifyMsg
private

Definition at line 845 of file chgtrack.hxx.

Referenced by ClearMsgQueue(), EndBlockModify(), Init(), NotifyModified(), and StartBlockModify().


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