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
ScChangeActionContent Class Reference

#include <chgtrack.hxx>

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

Public Member Functions

 ScChangeActionContent (const ScRange &rRange)
 
 ScChangeActionContent (const sal_uLong nActionNumber, const ScChangeActionState eState, const sal_uLong nRejectingNumber, const ScBigRange &aBigRange, const OUString &aUser, const DateTime &aDateTime, const OUString &sComment, const ScCellValue &rOldCell, const ScDocument *pDoc, const OUString &sOldValue)
 
 ScChangeActionContent (const sal_uLong nActionNumber, const ScCellValue &rNewCell, const ScBigRange &aBigRange, const ScDocument *pDoc, const OUString &sNewValue)
 
virtual ~ScChangeActionContent () override
 
ScChangeActionContentGetNextContent () const
 
ScChangeActionContentGetPrevContent () const
 
ScChangeActionContentGetTopContent () const
 
bool IsTopContent () const
 
virtual ScChangeActionLinkEntryGetDeletedIn () const override
 
virtual ScChangeActionLinkEntry ** GetDeletedInAddress () override
 
void PutOldValueToDoc (ScDocument *, SCCOL nDx, SCROW nDy) const
 
void PutNewValueToDoc (ScDocument *, SCCOL nDx, SCROW nDy) const
 
void SetOldValue (const ScCellValue &rCell, const ScDocument *pFromDoc, ScDocument *pToDoc, sal_uLong nFormat)
 
void SetOldValue (const ScCellValue &rCell, const ScDocument *pFromDoc, ScDocument *pToDoc)
 
void SetNewValue (const ScCellValue &rCell, ScDocument *pDoc)
 
void SetOldNewCells (const ScCellValue &rOldCell, sal_uLong nOldFormat, const ScCellValue &rNewCell, sal_uLong nNewFormat, const ScDocument *pDoc)
 
void SetNewCell (const ScCellValue &rCell, const ScDocument *pDoc, const OUString &rFormatted)
 
void SetNextContent (ScChangeActionContent *p)
 
void SetPrevContent (ScChangeActionContent *p)
 
void SetOldValue (const OUString &rOld, ScDocument *pDoc)
 
void GetOldString (OUString &rStr, const ScDocument *pDoc) const
 
void GetNewString (OUString &rStr, const ScDocument *pDoc) const
 
const ScCellValueGetOldCell () const
 
const ScCellValueGetNewCell () const
 
virtual void GetDescription (OUString &rStr, ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const override
 
virtual void GetRefString (OUString &rStr, ScDocument &rDoc, bool bFlag3D=false) const override
 
bool IsMatrixOrigin () const
 
bool IsOldMatrixReference () const
 
- Public Member Functions inherited from ScChangeAction
virtual ~ScChangeAction ()
 
bool IsInsertType () const
 
bool IsDeleteType () const
 
bool IsVirgin () const
 
SC_DLLPUBLIC bool IsAccepted () const
 
bool IsRejected () const
 
bool IsRejecting () const
 
bool IsVisible () const
 
bool IsTouchable () const
 
bool IsDialogRoot () const
 
bool IsDialogParent () const
 
bool IsMasterDelete () const
 
bool IsClickable () const
 
bool IsRejectable () const
 
const ScBigRangeGetBigRange () const
 
SC_DLLPUBLIC DateTime GetDateTime () const
 
const DateTimeGetDateTimeUTC () const
 
ScChangeActionType GetType () const
 
ScChangeActionState GetState () const
 
sal_uLong GetActionNumber () const
 
sal_uLong GetRejectAction () const
 
ScChangeActionGetNext () const
 
ScChangeActionGetPrev () const
 
bool IsDeletedIn () const
 
bool IsDeletedIn (const ScChangeAction *) const
 
bool IsDeletedInDelType (ScChangeActionType) const
 
void RemoveAllDeletedIn ()
 
const ScChangeActionLinkEntryGetFirstDeletedEntry () const
 
const ScChangeActionLinkEntryGetFirstDependentEntry () const
 
bool HasDependent () const
 
bool HasDeleted () const
 
void SetDateTimeUTC (const DateTime &rDT)
 
const OUString & GetUser () const
 
const OUString & GetComment () const
 
void SetComment (const OUString &rStr)
 
void SetDeletedInThis (sal_uLong nActionNumber, const ScChangeTrack *pTrack)
 
void AddDependent (sal_uLong nActionNumber, const ScChangeTrack *pTrack)
 

Static Public Member Functions

static ScChangeActionContentCellType GetContentCellType (const ScCellValue &rCell)
 
static ScChangeActionContentCellType GetContentCellType (const ScRefCellValue &rIter)
 

Private Member Functions

void InsertInSlot (ScChangeActionContent **pp)
 
void RemoveFromSlot ()
 
ScChangeActionContentGetNextInSlot ()
 
void ClearTrack ()
 
void SetValueString (OUString &rValue, ScCellValue &rCell, const OUString &rStr, ScDocument *pDoc)
 
void GetValueString (OUString &rStr, const OUString &rValue, const ScCellValue &rCell, const ScDocument *pDoc) const
 
void GetFormulaString (OUString &rStr, const ScFormulaCell *pCell) const
 
virtual void AddContent (ScChangeActionContent *) override
 
virtual void DeleteCellEntries () override
 
virtual void UpdateReference (const ScChangeTrack *, UpdateRefMode, const ScBigRange &, sal_Int32 nDx, sal_Int32 nDy, sal_Int32 nDz) override
 
virtual bool Reject (ScDocument &rDoc) override
 
virtual const ScChangeTrackGetChangeTrack () const override
 
bool Select (ScDocument &, ScChangeTrack *, bool bOldest,::std::stack< ScChangeActionContent * > *pRejectActions)
 
void PutValueToDoc (const ScCellValue &rCell, const OUString &rValue, ScDocument *pDoc, SCCOL nDx, SCROW nDy) const
 

Static Private Member Functions

static void GetStringOfCell (OUString &rStr, const ScCellValue &rCell, const ScDocument *pDoc, const ScAddress &rPos)
 
static void GetStringOfCell (OUString &rStr, const ScCellValue &rCell, const ScDocument *pDoc, sal_uLong nFormat)
 
static void SetValue (OUString &rStr, ScCellValue &rCell, const ScAddress &rPos, const ScCellValue &rOrgCell, const ScDocument *pFromDoc, ScDocument *pToDoc)
 
static void SetValue (OUString &rStr, ScCellValue &rCell, sal_uLong nFormat, const ScCellValue &rOrgCell, const ScDocument *pFromDoc, ScDocument *pToDoc)
 
static void SetCell (OUString &rStr, ScCellValue &rCell, sal_uLong nFormat, const ScDocument *pDoc)
 
static bool NeedsNumberFormat (const ScCellValue &rVal)
 

Private Attributes

ScCellValue maOldCell
 
ScCellValue maNewCell
 
OUString maOldValue
 
OUString maNewValue
 
ScChangeActionContentpNextContent
 
ScChangeActionContentpPrevContent
 
ScChangeActionContentpNextInSlot
 
ScChangeActionContent ** ppPrevInSlot
 

Friends

class ScChangeTrack
 

Additional Inherited Members

- Protected Member Functions inherited from ScChangeAction
 ScChangeAction (ScChangeActionType, const ScRange &)
 
 ScChangeAction (ScChangeActionType, const ScBigRange &, const sal_uLong nAction, const sal_uLong nRejectAction, const ScChangeActionState eState, const DateTime &aDateTime, const OUString &aUser, const OUString &aComment)
 
 ScChangeAction (ScChangeActionType, const ScBigRange &, const sal_uLong nAction)
 
OUString GetRefString (const ScBigRange &rRange, const ScDocument &rDoc, bool bFlag3D=false) const
 
void SetActionNumber (sal_uLong n)
 
void SetRejectAction (sal_uLong n)
 
void SetUser (const OUString &r)
 
void SetType (ScChangeActionType e)
 
void SetState (ScChangeActionState e)
 
void SetRejected ()
 
ScBigRangeGetBigRange ()
 
void AddLink (ScChangeAction *p, ScChangeActionLinkEntry *pL)
 
bool RemoveDeletedIn (const ScChangeAction *)
 
void SetDeletedIn (ScChangeAction *)
 
ScChangeActionLinkEntryAddDeleted (ScChangeAction *p)
 
ScChangeActionLinkEntryAddDependent (ScChangeAction *p)
 
void RemoveAllDependent ()
 
void RemoveAllLinks ()
 
void Accept ()
 
void RejectRestoreContents (ScChangeTrack *, SCCOL nDx, SCROW nDy)
 
bool IsInternalRejectable () const
 
- Protected Attributes inherited from ScChangeAction
ScBigRange aBigRange
 
DateTime aDateTime
 
OUString aUser
 UTC. More...
 
OUString aComment
 
ScChangeActionpNext
 
ScChangeActionpPrev
 
ScChangeActionLinkEntrypLinkAny
 
ScChangeActionLinkEntrypLinkDeletedIn
 
ScChangeActionLinkEntrypLinkDeleted
 
ScChangeActionLinkEntrypLinkDependent
 
sal_uLong nAction
 
sal_uLong nRejectAction
 
ScChangeActionType eType
 
ScChangeActionState eState
 

Detailed Description

Definition at line 601 of file chgtrack.hxx.

Constructor & Destructor Documentation

ScChangeActionContent::ScChangeActionContent ( const ScRange rRange)

Definition at line 1277 of file chgtrack.cxx.

Referenced by Select().

ScChangeActionContent::ScChangeActionContent ( const sal_uLong  nActionNumber,
const ScChangeActionState  eState,
const sal_uLong  nRejectingNumber,
const ScBigRange aBigRange,
const OUString &  aUser,
const DateTime aDateTime,
const OUString &  sComment,
const ScCellValue rOldCell,
const ScDocument pDoc,
const OUString &  sOldValue 
)

Definition at line 1285 of file chgtrack.cxx.

References ScCellValue::isEmpty(), maOldCell, maOldValue, and SetCell().

ScChangeActionContent::ScChangeActionContent ( const sal_uLong  nActionNumber,
const ScCellValue rNewCell,
const ScBigRange aBigRange,
const ScDocument pDoc,
const OUString &  sNewValue 
)

Definition at line 1305 of file chgtrack.cxx.

References ScCellValue::isEmpty(), maNewCell, maNewValue, and SetCell().

ScChangeActionContent::~ScChangeActionContent ( )
overridevirtual

Definition at line 1323 of file chgtrack.cxx.

References ClearTrack().

Member Function Documentation

virtual void ScChangeActionContent::AddContent ( ScChangeActionContent )
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 665 of file chgtrack.hxx.

void ScChangeActionContent::ClearTrack ( )
private

Definition at line 1328 of file chgtrack.cxx.

References pNextContent, pPrevContent, and RemoveFromSlot().

Referenced by ScChangeTrack::Remove(), and ~ScChangeActionContent().

virtual void ScChangeActionContent::DeleteCellEntries ( )
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 666 of file chgtrack.hxx.

virtual const ScChangeTrack* ScChangeActionContent::GetChangeTrack ( ) const
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 674 of file chgtrack.hxx.

ScChangeActionContentCellType ScChangeActionContent::GetContentCellType ( const ScCellValue rCell)
static
ScChangeActionContentCellType ScChangeActionContent::GetContentCellType ( const ScRefCellValue rIter)
static
ScChangeActionLinkEntry * ScChangeActionContent::GetDeletedIn ( ) const
overridevirtual

Reimplemented from ScChangeAction.

Definition at line 1349 of file chgtrack.cxx.

References GetTopContent(), ScChangeAction::pLinkDeletedIn, and pNextContent.

ScChangeActionLinkEntry ** ScChangeActionContent::GetDeletedInAddress ( )
overridevirtual

Reimplemented from ScChangeAction.

Definition at line 1356 of file chgtrack.cxx.

References GetDeletedInAddress(), GetTopContent(), ScChangeAction::pLinkDeletedIn, and pNextContent.

Referenced by GetDeletedInAddress().

void ScChangeActionContent::GetDescription ( OUString &  rStr,
ScDocument rDoc,
bool  bSplitRange = false,
bool  bWarning = true 
) const
overridevirtual

Reimplemented from ScChangeAction.

Definition at line 1433 of file chgtrack.cxx.

References ScChangeAction::GetDescription(), GetNewString(), GetOldString(), GetRefString(), nPos, and ScResId().

void ScChangeActionContent::GetFormulaString ( OUString &  rStr,
const ScFormulaCell pCell 
) const
private
const ScCellValue& ScChangeActionContent::GetNewCell ( ) const
inline
void ScChangeActionContent::GetNewString ( OUString &  rStr,
const ScDocument pDoc 
) const
ScChangeActionContent* ScChangeActionContent::GetNextContent ( ) const
inline
ScChangeActionContent* ScChangeActionContent::GetNextInSlot ( )
inlineprivate

Definition at line 636 of file chgtrack.hxx.

const ScCellValue& ScChangeActionContent::GetOldCell ( ) const
inline
void ScChangeActionContent::GetOldString ( OUString &  rStr,
const ScDocument pDoc 
) const
ScChangeActionContent* ScChangeActionContent::GetPrevContent ( ) const
inline
void ScChangeActionContent::GetRefString ( OUString &  rStr,
ScDocument rDoc,
bool  bFlag3D = false 
) const
overridevirtual
void ScChangeActionContent::GetStringOfCell ( OUString &  rStr,
const ScCellValue rCell,
const ScDocument pDoc,
const ScAddress rPos 
)
staticprivate

Definition at line 1586 of file chgtrack.cxx.

References ScDocument::GetNumberFormat(), and NeedsNumberFormat().

Referenced by ScChangeTrack::AppendContent().

void ScChangeActionContent::GetStringOfCell ( OUString &  rStr,
const ScCellValue rCell,
const ScDocument pDoc,
sal_uLong  nFormat 
)
staticprivate
ScChangeActionContent * ScChangeActionContent::GetTopContent ( ) const

Definition at line 1337 of file chgtrack.cxx.

References pContent, and pNextContent.

Referenced by GetDeletedIn(), GetDeletedInAddress(), and ScChangeTrack::SelectContent().

void ScChangeActionContent::GetValueString ( OUString &  rStr,
const OUString &  rValue,
const ScCellValue rCell,
const ScDocument pDoc 
) const
private
void ScChangeActionContent::InsertInSlot ( ScChangeActionContent **  pp)
inlineprivate

Definition at line 615 of file chgtrack.hxx.

References ppPrevInSlot.

Referenced by UpdateReference().

bool ScChangeActionContent::IsMatrixOrigin ( ) const

Definition at line 2014 of file chgtrack.cxx.

References GetContentCellType(), GetNewCell(), and SC_CACCT_MATORG.

Referenced by ScChangeTrack::Dependencies().

bool ScChangeActionContent::IsOldMatrixReference ( ) const

Definition at line 2019 of file chgtrack.cxx.

References GetContentCellType(), GetOldCell(), and SC_CACCT_MATREF.

bool ScChangeActionContent::IsTopContent ( ) const
inline

Definition at line 707 of file chgtrack.hxx.

Referenced by ScXMLChangeTrackingImportHelper::SetNewCell().

bool ScChangeActionContent::NeedsNumberFormat ( const ScCellValue rVal)
staticprivate

Definition at line 1676 of file chgtrack.cxx.

References CELLTYPE_VALUE, and ScCellValue::meType.

Referenced by ScChangeTrack::AppendContent(), GetStringOfCell(), and SetValue().

void ScChangeActionContent::PutNewValueToDoc ( ScDocument pDoc,
SCCOL  nDx,
SCROW  nDy 
) const

Definition at line 1791 of file chgtrack.cxx.

References maNewCell, maNewValue, and PutValueToDoc().

Referenced by ScChangeActionMove::Reject(), and Select().

void ScChangeActionContent::PutOldValueToDoc ( ScDocument pDoc,
SCCOL  nDx,
SCROW  nDy 
) const

Definition at line 1785 of file chgtrack.cxx.

References maOldCell, maOldValue, and PutValueToDoc().

Referenced by Reject(), and Select().

void ScChangeActionContent::PutValueToDoc ( const ScCellValue rCell,
const OUString &  rValue,
ScDocument pDoc,
SCCOL  nDx,
SCROW  nDy 
) const
private
bool ScChangeActionContent::Reject ( ScDocument rDoc)
overrideprivatevirtual
void ScChangeActionContent::RemoveFromSlot ( )
inlineprivate

Definition at line 626 of file chgtrack.hxx.

References ppPrevInSlot.

Referenced by ClearTrack(), and UpdateReference().

bool ScChangeActionContent::Select ( ScDocument rDoc,
ScChangeTrack pTrack,
bool  bOldest,
::std::stack< ScChangeActionContent * > *  pRejectActions 
)
private
void ScChangeActionContent::SetCell ( OUString &  rStr,
ScCellValue rCell,
sal_uLong  nFormat,
const ScDocument pDoc 
)
staticprivate
void ScChangeActionContent::SetNewCell ( const ScCellValue rCell,
const ScDocument pDoc,
const OUString &  rFormatted 
)
void ScChangeActionContent::SetNewValue ( const ScCellValue rCell,
ScDocument pDoc 
)
void ScChangeActionContent::SetNextContent ( ScChangeActionContent p)
inline
void ScChangeActionContent::SetOldNewCells ( const ScCellValue rOldCell,
sal_uLong  nOldFormat,
const ScCellValue rNewCell,
sal_uLong  nNewFormat,
const ScDocument pDoc 
)

Definition at line 1380 of file chgtrack.cxx.

References maNewCell, maNewValue, maOldCell, maOldValue, and SetCell().

Referenced by ScChangeTrack::AppendContentOnTheFly().

void ScChangeActionContent::SetOldValue ( const ScCellValue rCell,
const ScDocument pFromDoc,
ScDocument pToDoc,
sal_uLong  nFormat 
)
void ScChangeActionContent::SetOldValue ( const ScCellValue rCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)
void ScChangeActionContent::SetOldValue ( const OUString &  rOld,
ScDocument pDoc 
)

Definition at line 1418 of file chgtrack.cxx.

References maOldCell, maOldValue, and SetValueString().

void ScChangeActionContent::SetPrevContent ( ScChangeActionContent p)
inline
void ScChangeActionContent::SetValue ( OUString &  rStr,
ScCellValue rCell,
const ScAddress rPos,
const ScCellValue rOrgCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)
staticprivate
void ScChangeActionContent::SetValue ( OUString &  rStr,
ScCellValue rCell,
sal_uLong  nFormat,
const ScCellValue rOrgCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)
staticprivate
void ScChangeActionContent::SetValueString ( OUString &  rValue,
ScCellValue rCell,
const OUString &  rStr,
ScDocument pDoc 
)
private
void ScChangeActionContent::UpdateReference ( const ScChangeTrack pTrack,
UpdateRefMode  eMode,
const ScBigRange rRange,
sal_Int32  nDx,
sal_Int32  nDy,
sal_Int32  nDz 
)
overrideprivatevirtual

Friends And Related Function Documentation

friend class ScChangeTrack
friend

Definition at line 603 of file chgtrack.hxx.

Member Data Documentation

ScCellValue ScChangeActionContent::maNewCell
private
OUString ScChangeActionContent::maNewValue
private
ScCellValue ScChangeActionContent::maOldCell
private
OUString ScChangeActionContent::maOldValue
private
ScChangeActionContent* ScChangeActionContent::pNextContent
private
ScChangeActionContent* ScChangeActionContent::pNextInSlot
private

Definition at line 612 of file chgtrack.hxx.

ScChangeActionContent** ScChangeActionContent::ppPrevInSlot
private

Definition at line 613 of file chgtrack.hxx.

Referenced by InsertInSlot(), and RemoveFromSlot().

ScChangeActionContent* ScChangeActionContent::pPrevContent
private

Definition at line 611 of file chgtrack.hxx.

Referenced by ClearTrack(), ScChangeTrack::Remove(), and Select().


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