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

#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, ScCellValue aOldCell, const ScDocument *pDoc, const OUString &sOldValue)
 
 ScChangeActionContent (const sal_uLong nActionNumber, ScCellValue aNewCell, 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)
 
OUString GetOldString (const ScDocument *pDoc) const
 
OUString GetNewString (const ScDocument *pDoc) const
 
const ScCellValueGetOldCell () const
 
const ScCellValueGetNewCell () const
 
virtual OUString GetDescription (ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const override
 
virtual OUString GetRefString (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
 
virtual OUString GetDescription (ScDocument &rDoc, bool bSplitRange=false, bool bWarning=true) const
 
virtual OUString GetRefString (ScDocument &rDoc, bool bFlag3D=false) 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)
 

Protected Member Functions

OUString GetRefString (const ScBigRange &rRange, const ScDocument &rDoc, bool bFlag3D=false) const
 
virtual OUString GetRefString (ScDocument &rDoc, bool bFlag3D=false) const
 
- Protected Member Functions inherited from ScChangeAction
 ScChangeAction (ScChangeActionType, const ScRange &)
 
 ScChangeAction (ScChangeActionType, ScBigRange, const sal_uLong nAction, const sal_uLong nRejectAction, const ScChangeActionState eState, const DateTime &aDateTime, OUString aUser, OUString aComment)
 
 ScChangeAction (ScChangeActionType, 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)
 
virtual ScChangeActionLinkEntryGetDeletedIn () const
 
virtual ScChangeActionLinkEntry ** GetDeletedInAddress ()
 
bool RemoveDeletedIn (const ScChangeAction *)
 
void SetDeletedIn (ScChangeAction *)
 
ScChangeActionLinkEntryAddDeleted (ScChangeAction *p)
 
ScChangeActionLinkEntryAddDependent (ScChangeAction *p)
 
void RemoveAllDependent ()
 
void RemoveAllLinks ()
 
virtual void AddContent (ScChangeActionContent *)=0
 
virtual void DeleteCellEntries ()=0
 
virtual void UpdateReference (const ScChangeTrack *, UpdateRefMode, const ScBigRange &, sal_Int32 nDx, sal_Int32 nDy, sal_Int32 nDz)
 
void Accept ()
 
virtual bool Reject (ScDocument &rDoc)=0
 
void RejectRestoreContents (ScChangeTrack *, SCCOL nDx, SCROW nDy)
 
bool IsInternalRejectable () const
 
virtual const ScChangeTrackGetChangeTrack () const =0
 

Private Member Functions

void InsertInSlot (ScChangeActionContent **pp)
 
void RemoveFromSlot ()
 
ScChangeActionContentGetNextInSlot ()
 
void ClearTrack ()
 
void SetValueString (OUString &rValue, ScCellValue &rCell, const OUString &rStr, ScDocument *pDoc)
 
OUString GetValueString (const OUString &rValue, const ScCellValue &rCell, const ScDocument *pDoc) const
 
OUString GetFormulaString (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 OUString GetStringOfCell (const ScCellValue &rCell, const ScDocument *pDoc, const ScAddress &rPos)
 
static OUString GetStringOfCell (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 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 594 of file chgtrack.hxx.

Constructor & Destructor Documentation

◆ ScChangeActionContent() [1/3]

ScChangeActionContent::ScChangeActionContent ( const ScRange rRange)

Definition at line 1235 of file chgtrack.cxx.

◆ ScChangeActionContent() [2/3]

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,
ScCellValue  aOldCell,
const ScDocument pDoc,
const OUString &  sOldValue 
)

Definition at line 1243 of file chgtrack.cxx.

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

◆ ScChangeActionContent() [3/3]

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

Definition at line 1263 of file chgtrack.cxx.

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

◆ ~ScChangeActionContent()

ScChangeActionContent::~ScChangeActionContent ( )
overridevirtual

Definition at line 1281 of file chgtrack.cxx.

References ClearTrack().

Member Function Documentation

◆ AddContent()

virtual void ScChangeActionContent::AddContent ( ScChangeActionContent )
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 658 of file chgtrack.hxx.

◆ ClearTrack()

void ScChangeActionContent::ClearTrack ( )
private

Definition at line 1286 of file chgtrack.cxx.

References pNextContent, pPrevContent, and RemoveFromSlot().

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

◆ DeleteCellEntries()

virtual void ScChangeActionContent::DeleteCellEntries ( )
inlineoverrideprivatevirtual

Implements ScChangeAction.

Definition at line 659 of file chgtrack.hxx.

◆ GetChangeTrack()

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

Implements ScChangeAction.

Definition at line 667 of file chgtrack.hxx.

◆ GetContentCellType() [1/2]

ScChangeActionContentCellType ScChangeActionContent::GetContentCellType ( const ScCellValue rCell)
static

◆ GetContentCellType() [2/2]

ScChangeActionContentCellType ScChangeActionContent::GetContentCellType ( const ScRefCellValue rIter)
static

◆ GetDeletedIn()

ScChangeActionLinkEntry * ScChangeActionContent::GetDeletedIn ( ) const
overridevirtual

Reimplemented from ScChangeAction.

Definition at line 1307 of file chgtrack.cxx.

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

◆ GetDeletedInAddress()

ScChangeActionLinkEntry ** ScChangeActionContent::GetDeletedInAddress ( )
overridevirtual

Reimplemented from ScChangeAction.

Definition at line 1314 of file chgtrack.cxx.

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

Referenced by GetDeletedInAddress().

◆ GetDescription()

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

Reimplemented from ScChangeAction.

Definition at line 1390 of file chgtrack.cxx.

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

◆ GetFormulaString()

OUString ScChangeActionContent::GetFormulaString ( const ScFormulaCell pCell) const
private

◆ GetNewCell()

const ScCellValue & ScChangeActionContent::GetNewCell ( ) const
inline

◆ GetNewString()

OUString ScChangeActionContent::GetNewString ( const ScDocument pDoc) const

◆ GetNextContent()

ScChangeActionContent * ScChangeActionContent::GetNextContent ( ) const
inline

◆ GetNextInSlot()

ScChangeActionContent * ScChangeActionContent::GetNextInSlot ( )
inlineprivate

Definition at line 629 of file chgtrack.hxx.

◆ GetOldCell()

const ScCellValue & ScChangeActionContent::GetOldCell ( ) const
inline

◆ GetOldString()

OUString ScChangeActionContent::GetOldString ( const ScDocument pDoc) const

◆ GetPrevContent()

ScChangeActionContent * ScChangeActionContent::GetPrevContent ( ) const
inline

◆ GetRefString() [1/3]

OUString ScChangeAction::GetRefString ( const ScBigRange rRange,
const ScDocument rDoc,
bool  bFlag3D = false 
) const
protected

Definition at line 219 of file chgtrack.cxx.

◆ GetRefString() [2/3]

OUString ScChangeAction::GetRefString ( ScDocument rDoc,
bool  bFlag3D = false 
) const
protectedvirtual

Reimplemented from ScChangeAction.

Definition at line 340 of file chgtrack.cxx.

◆ GetRefString() [3/3]

OUString ScChangeActionContent::GetRefString ( ScDocument rDoc,
bool  bFlag3D = false 
) const
overridevirtual

◆ GetStringOfCell() [1/2]

OUString ScChangeActionContent::GetStringOfCell ( const ScCellValue rCell,
const ScDocument pDoc,
const ScAddress rPos 
)
staticprivate

◆ GetStringOfCell() [2/2]

OUString ScChangeActionContent::GetStringOfCell ( const ScCellValue rCell,
const ScDocument pDoc,
sal_uLong  nFormat 
)
staticprivate

◆ GetTopContent()

ScChangeActionContent * ScChangeActionContent::GetTopContent ( ) const

Definition at line 1295 of file chgtrack.cxx.

References pNextContent.

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

◆ GetValueString()

OUString ScChangeActionContent::GetValueString ( const OUString &  rValue,
const ScCellValue rCell,
const ScDocument pDoc 
) const
private

◆ InsertInSlot()

void ScChangeActionContent::InsertInSlot ( ScChangeActionContent **  pp)
inlineprivate

Definition at line 608 of file chgtrack.hxx.

References ppPrevInSlot.

Referenced by UpdateReference().

◆ IsMatrixOrigin()

bool ScChangeActionContent::IsMatrixOrigin ( ) const

Definition at line 1964 of file chgtrack.cxx.

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

Referenced by ScChangeTrack::Dependencies().

◆ IsOldMatrixReference()

bool ScChangeActionContent::IsOldMatrixReference ( ) const

Definition at line 1969 of file chgtrack.cxx.

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

◆ IsTopContent()

bool ScChangeActionContent::IsTopContent ( ) const
inline

◆ NeedsNumberFormat()

bool ScChangeActionContent::NeedsNumberFormat ( const ScCellValue rVal)
staticprivate

Definition at line 1630 of file chgtrack.cxx.

References CELLTYPE_VALUE, and ScCellValue::getType().

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

◆ PutNewValueToDoc()

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

Definition at line 1741 of file chgtrack.cxx.

References maNewCell, maNewValue, and PutValueToDoc().

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

◆ PutOldValueToDoc()

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

Definition at line 1735 of file chgtrack.cxx.

References maOldCell, maOldValue, and PutValueToDoc().

Referenced by Reject(), and Select().

◆ PutValueToDoc()

void ScChangeActionContent::PutValueToDoc ( const ScCellValue rCell,
const OUString &  rValue,
ScDocument pDoc,
SCCOL  nDx,
SCROW  nDy 
) const
private

◆ Reject()

bool ScChangeActionContent::Reject ( ScDocument rDoc)
overrideprivatevirtual

◆ RemoveFromSlot()

void ScChangeActionContent::RemoveFromSlot ( )
inlineprivate

Definition at line 619 of file chgtrack.hxx.

References ppPrevInSlot.

Referenced by ClearTrack(), and UpdateReference().

◆ Select()

bool ScChangeActionContent::Select ( ScDocument rDoc,
ScChangeTrack pTrack,
bool  bOldest,
::std::stack< ScChangeActionContent * > *  pRejectActions 
)
private

◆ SetCell()

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

◆ SetNewCell()

void ScChangeActionContent::SetNewCell ( const ScCellValue rCell,
const ScDocument pDoc,
const OUString &  rFormatted 
)

◆ SetNewValue()

void ScChangeActionContent::SetNewValue ( const ScCellValue rCell,
ScDocument pDoc 
)

◆ SetNextContent()

void ScChangeActionContent::SetNextContent ( ScChangeActionContent p)
inline

◆ SetOldNewCells()

void ScChangeActionContent::SetOldNewCells ( const ScCellValue rOldCell,
sal_uLong  nOldFormat,
const ScCellValue rNewCell,
sal_uLong  nNewFormat,
const ScDocument pDoc 
)

Definition at line 1338 of file chgtrack.cxx.

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

Referenced by ScChangeTrack::AppendContentOnTheFly().

◆ SetOldValue() [1/3]

void ScChangeActionContent::SetOldValue ( const OUString &  rOld,
ScDocument pDoc 
)

Definition at line 1375 of file chgtrack.cxx.

References maOldCell, maOldValue, and SetValueString().

◆ SetOldValue() [2/3]

void ScChangeActionContent::SetOldValue ( const ScCellValue rCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)

◆ SetOldValue() [3/3]

void ScChangeActionContent::SetOldValue ( const ScCellValue rCell,
const ScDocument pFromDoc,
ScDocument pToDoc,
sal_uLong  nFormat 
)

◆ SetPrevContent()

void ScChangeActionContent::SetPrevContent ( ScChangeActionContent p)
inline

◆ SetValue() [1/2]

void ScChangeActionContent::SetValue ( OUString &  rStr,
ScCellValue rCell,
const ScAddress rPos,
const ScCellValue rOrgCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)
staticprivate

◆ SetValue() [2/2]

void ScChangeActionContent::SetValue ( OUString &  rStr,
ScCellValue rCell,
sal_uLong  nFormat,
const ScCellValue rOrgCell,
const ScDocument pFromDoc,
ScDocument pToDoc 
)
staticprivate

◆ SetValueString()

void ScChangeActionContent::SetValueString ( OUString &  rValue,
ScCellValue rCell,
const OUString &  rStr,
ScDocument pDoc 
)
private

◆ UpdateReference()

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

◆ ScChangeTrack

friend class ScChangeTrack
friend

Definition at line 596 of file chgtrack.hxx.

Member Data Documentation

◆ maNewCell

ScCellValue ScChangeActionContent::maNewCell
private

◆ maNewValue

OUString ScChangeActionContent::maNewValue
private

◆ maOldCell

ScCellValue ScChangeActionContent::maOldCell
private

◆ maOldValue

OUString ScChangeActionContent::maOldValue
private

◆ pNextContent

ScChangeActionContent* ScChangeActionContent::pNextContent
private

◆ pNextInSlot

ScChangeActionContent* ScChangeActionContent::pNextInSlot
private

Definition at line 605 of file chgtrack.hxx.

◆ ppPrevInSlot

ScChangeActionContent** ScChangeActionContent::ppPrevInSlot
private

Definition at line 606 of file chgtrack.hxx.

Referenced by InsertInSlot(), and RemoveFromSlot().

◆ pPrevContent

ScChangeActionContent* ScChangeActionContent::pPrevContent
private

Definition at line 604 of file chgtrack.hxx.

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


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