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

#include <chgtrack.hxx>

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

Public Member Functions

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 void GetDescription (OUString &rStr, ScDocument *pDoc, bool bSplitRange=false, bool bWarning=true) const
 
virtual void GetRefString (OUString &rStr, ScDocument *pDoc, 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)
 

Protected Member Functions

 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 *pDoc, 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 *pDoc)=0
 
void RejectRestoreContents (ScChangeTrack *, SCCOL nDx, SCROW nDy)
 
bool IsInternalRejectable () const
 
virtual const ScChangeTrackGetChangeTrack () const =0
 

Protected Attributes

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
 

Private Member Functions

 ScChangeAction (const ScChangeAction &)=delete
 
ScChangeActionoperator= (const ScChangeAction &)=delete
 

Friends

class ScChangeTrack
 
class ScChangeActionIns
 
class ScChangeActionDel
 
class ScChangeActionMove
 
class ScChangeActionContent
 

Detailed Description

Definition at line 178 of file chgtrack.hxx.

Constructor & Destructor Documentation

ScChangeAction::ScChangeAction ( const ScChangeAction )
privatedelete
ScChangeAction::ScChangeAction ( ScChangeActionType  eTypeP,
const ScRange rRange 
)
protected

Definition at line 55 of file chgtrack.cxx.

References aDateTime, DateTime::ConvertToUTC(), and eType.

ScChangeAction::ScChangeAction ( ScChangeActionType  eTypeP,
const ScBigRange rRange,
const sal_uLong  nAction,
const sal_uLong  nRejectAction,
const ScChangeActionState  eState,
const DateTime aDateTime,
const OUString &  aUser,
const OUString &  aComment 
)
protected

Definition at line 73 of file chgtrack.cxx.

References eType.

ScChangeAction::ScChangeAction ( ScChangeActionType  eTypeP,
const ScBigRange rRange,
const sal_uLong  nAction 
)
protected

Definition at line 95 of file chgtrack.cxx.

References aDateTime, DateTime::ConvertToUTC(), and eType.

ScChangeAction::~ScChangeAction ( )
virtual

Definition at line 114 of file chgtrack.cxx.

References RemoveAllLinks().

Member Function Documentation

void ScChangeAction::Accept ( )
protected
virtual void ScChangeAction::AddContent ( ScChangeActionContent )
protectedpure virtual
ScChangeActionLinkEntry* ScChangeAction::AddDeleted ( ScChangeAction p)
inlineprotected

Definition at line 249 of file chgtrack.hxx.

Referenced by SetDeletedIn().

ScChangeActionLinkEntry* ScChangeAction::AddDependent ( ScChangeAction p)
inlineprotected
void ScChangeAction::AddDependent ( sal_uLong  nActionNumber,
const ScChangeTrack pTrack 
)

Definition at line 634 of file chgtrack.cxx.

References AddDependent(), AddLink(), ScChangeTrack::GetActionOrGenerated(), and pLink.

void ScChangeAction::AddLink ( ScChangeAction p,
ScChangeActionLinkEntry pL 
)
inlineprotected
virtual void ScChangeAction::DeleteCellEntries ( )
protectedpure virtual
sal_uLong ScChangeAction::GetActionNumber ( ) const
inline

Definition at line 320 of file chgtrack.hxx.

References nAction.

Referenced by ScChangeTrack::AddDependentWithNotify(), ScChangeTrack::AddLoadedGenerated(), ScChangeTrack::Append(), ScAcceptChgDlg::AppendChangeAction(), ScChangeTrack::AppendCloned(), ScAcceptChgDlg::AppendFilteredAction(), ScChangeTrack::AppendLoaded(), ScChangeTrack::Clone(), ScChangeTrackingExportHelper::CollectActionAutoStyles(), ScXMLChangeTrackingImportHelper::CreateChangeTrack(), ScChangeTrack::DeleteGeneratedDelContent(), ScConflictsFinder::Find(), ScDocument::GetCellChangeTrackNote(), ScChangeTrack::GetDependents(), ScConflictsResolver::HandleAction(), ScAcceptChgDlg::InsertChangeActionContent(), ScAcceptChgDlg::InsertContentChildren(), ScViewUtil::IsActionShown(), ScChangeTrack::IsLastAction(), lcl_Equal(), lcl_FindAction(), ScChangeTrack::MasterLinks(), ScDocShell::MergeDocument(), ScChangeTrack::MergePrepare(), ScDocShell::MergeSharedDocument(), ScChangeActionMove::Reject(), ScChangeTrack::Reject(), ScChangeTrack::Remove(), ScChangeActionContent::Select(), ScDocShell::SetChangeComment(), ScGridWindow::ShowNoteMarker(), ScChangeTrack::Undo(), ScAcceptChgDlg::UpdateEntries(), ScChangeTrack::UpdateReference(), ScConflictsDlg::UpdateView(), ScChangeTrackingExportHelper::WorkWithChangeAction(), ScChangeTrackingExportHelper::WriteContentChange(), ScChangeTrackingExportHelper::WriteCutOffs(), ScChangeTrackingExportHelper::WriteDeleted(), ScChangeTrackingExportHelper::WriteDepending(), and ScChangeTrackingExportHelper::WriteGenerated().

ScBigRange& ScChangeAction::GetBigRange ( )
inlineprotected

Definition at line 232 of file chgtrack.hxx.

References aBigRange.

Referenced by ScChangeTrackingExportHelper::AddDeletionAttributes(), ScChangeTrackingExportHelper::AddInsertionAttributes(), ScAcceptChgDlg::AppendChangeAction(), ScAcceptChgDlg::AppendFilteredAction(), ScChangeTrack::Clone(), ScChangeTrack::Dependencies(), ScConflictsFinder::DoActionsIntersect(), ScOutputData::DrawChangeTrack(), ScDocument::GetCellChangeTrackNote(), ScDocShell::GetChangeAction(), ScConflictsDlg::GetConflictString(), ScChangeActionMove::GetDelta(), ScChangeActionIns::GetDescription(), ScChangeActionDel::GetDescription(), ScChangeActionMove::GetDescription(), ScChangeActionDel::GetOverAllRange(), GetRefString(), ScChangeActionMove::GetRefString(), ScChangeActionContent::GetRefString(), ScAcceptChgDlg::InsertChangeActionContent(), ScViewUtil::IsActionShown(), ScDocument::IsCellInChangeTrack(), ScChangeActionDel::IsMultiDelete(), ScAcceptChgDlg::IsValidAction(), lcl_FindAction(), ScChangeTrack::MasterLinks(), ScDocShell::MergeDocument(), ScChangeActionMove::Reject(), ScChangeTrack::Reject(), ScRedComDialog::SelectCell(), ScChangeTrack::SelectContent(), ScGridWindow::ShowNoteMarker(), ScChangeActionDel::UndoCutOffInsert(), ScChangeActionDel::UndoCutOffMoves(), UpdateReference(), ScChangeActionDel::UpdateReference(), ScChangeActionMove::UpdateReference(), ScChangeTrack::UpdateReference(), ScChangeTrackingExportHelper::WriteContentChange(), ScChangeTrackingExportHelper::WriteGenerated(), ScChangeTrackingExportHelper::WriteMovement(), and XclExpChangeTrack::XclExpChangeTrack().

const ScBigRange& ScChangeAction::GetBigRange ( ) const
inline

Definition at line 314 of file chgtrack.hxx.

References aBigRange.

virtual const ScChangeTrack* ScChangeAction::GetChangeTrack ( ) const
protectedpure virtual
const OUString& ScChangeAction::GetComment ( ) const
inline
DateTime ScChangeAction::GetDateTime ( ) const
const DateTime& ScChangeAction::GetDateTimeUTC ( ) const
inline
virtual ScChangeActionLinkEntry* ScChangeAction::GetDeletedIn ( ) const
inlineprotectedvirtual

Reimplemented in ScChangeActionContent.

Definition at line 242 of file chgtrack.hxx.

References pLinkDeletedIn.

Referenced by IsDeletedIn(), IsDeletedInDelType(), and RemoveDeletedIn().

virtual ScChangeActionLinkEntry** ScChangeAction::GetDeletedInAddress ( )
inlineprotectedvirtual

Reimplemented in ScChangeActionContent.

Definition at line 244 of file chgtrack.hxx.

References pLinkDeletedIn.

Referenced by SetDeletedIn().

void ScChangeAction::GetDescription ( OUString &  rStr,
ScDocument pDoc,
bool  bSplitRange = false,
bool  bWarning = true 
) const
virtual
const ScChangeActionLinkEntry* ScChangeAction::GetFirstDeletedEntry ( ) const
inline
const ScChangeActionLinkEntry* ScChangeAction::GetFirstDependentEntry ( ) const
inline
ScChangeAction* ScChangeAction::GetNext ( ) const
inline
ScChangeAction* ScChangeAction::GetPrev ( ) const
inline
OUString ScChangeAction::GetRefString ( const ScBigRange rRange,
const ScDocument pDoc,
bool  bFlag3D = false 
) const
protected
void ScChangeAction::GetRefString ( OUString &  rStr,
ScDocument pDoc,
bool  bFlag3D = false 
) const
virtual

Reimplemented in ScChangeActionContent, and ScChangeActionMove.

Definition at line 569 of file chgtrack.cxx.

References GetBigRange(), and GetRefString().

sal_uLong ScChangeAction::GetRejectAction ( ) const
inline
ScChangeActionState ScChangeAction::GetState ( ) const
inline
ScChangeActionType ScChangeAction::GetType ( ) const
inline

Definition at line 318 of file chgtrack.hxx.

References eType.

Referenced by ScChangeTrack::Accept(), ScChangeTrackingExportHelper::AddDeletionAttributes(), ScChangeTrackingExportHelper::AddInsertionAttributes(), ScChangeTrack::Append(), ScAcceptChgDlg::AppendChangeAction(), ScAcceptChgDlg::AppendFilteredAction(), ScChangeTrack::Clone(), ScChangeTrackingExportHelper::CollectActionAutoStyles(), ScChangeTrack::Dependencies(), ScOutputData::DrawChangeTrack(), ScAcceptChgDlg::Expand(), ScDocument::GetCellChangeTrackNote(), ScDocShell::GetChangeAction(), ScChangeTrack::GetDependents(), GetDescription(), ScChangeActionIns::GetDescription(), ScChangeActionDel::GetDescription(), GetRefString(), ScConflictsResolver::HandleAction(), IMPL_LINK(), IMPL_LINK_NOARG(), ScAcceptChgDlg::InsertContentChildren(), ScDocument::IsCellInChangeTrack(), IsClickable(), IsDeletedInDelType(), IsDialogParent(), IsInternalRejectable(), ScChangeActionDel::IsMultiDelete(), IsRejectable(), ScChangeActionDel::IsTabDeleteCol(), ScChangeActionDel::IsTopDelete(), IsTouchable(), ScAcceptChgDlg::IsValidAction(), IsVisible(), lcl_Equal(), lcl_FindAction(), lcl_getTrackedChange(), ScChangeTrack::MasterLinks(), ScDocShell::MergeDocument(), XclExpChangeTrack::PushActionRecord(), ScChangeActionIns::Reject(), ScChangeActionDel::Reject(), ScChangeActionMove::Reject(), ScChangeTrack::Reject(), RejectRestoreContents(), ScChangeTrack::Remove(), ScChangeTrack::SelectContent(), ScXMLChangeTrackingImportHelper::SetContentDependencies(), SetDeletedIn(), ScXMLChangeTrackingImportHelper::SetDeletionDependencies(), ScXMLChangeTrackingImportHelper::SetDependencies(), ScGridWindow::ShowNoteMarker(), ScChangeTrack::Undo(), ScChangeActionDel::UndoCutOffInsert(), ScChangeActionDel::UndoCutOffMoves(), ScActionColorChanger::Update(), ScChangeActionDel::UpdateReference(), ScChangeTrack::UpdateReference(), ScConflictsDlg::UpdateView(), ScChangeTrackingExportHelper::WorkWithChangeAction(), ScChangeTrackingExportHelper::WriteDeleted(), XclExpChangeTrack::XclExpChangeTrack(), and XclExpChTrInsert::XclExpChTrInsert().

const OUString& ScChangeAction::GetUser ( ) const
inline
bool ScChangeAction::HasDeleted ( ) const
bool ScChangeAction::HasDependent ( ) const
bool ScChangeAction::IsAccepted ( ) const
bool ScChangeAction::IsClickable ( ) const
bool ScChangeAction::IsDeletedIn ( ) const
bool ScChangeAction::IsDeletedIn ( const ScChangeAction p) const
bool ScChangeAction::IsDeletedInDelType ( ScChangeActionType  eDelType) const
bool ScChangeAction::IsDeleteType ( ) const
bool ScChangeAction::IsDialogParent ( ) const
bool ScChangeAction::IsDialogRoot ( ) const
bool ScChangeAction::IsInsertType ( ) const
bool ScChangeAction::IsInternalRejectable ( ) const
protected
bool ScChangeAction::IsMasterDelete ( ) const
bool ScChangeAction::IsRejectable ( ) const
bool ScChangeAction::IsRejected ( ) const
bool ScChangeAction::IsRejecting ( ) const
bool ScChangeAction::IsTouchable ( ) const
bool ScChangeAction::IsVirgin ( ) const
bool ScChangeAction::IsVisible ( ) const
ScChangeAction& ScChangeAction::operator= ( const ScChangeAction )
privatedelete
virtual bool ScChangeAction::Reject ( ScDocument pDoc)
protectedpure virtual
void ScChangeAction::RejectRestoreContents ( ScChangeTrack pTrack,
SCCOL  nDx,
SCROW  nDy 
)
protected
void ScChangeAction::RemoveAllDeletedIn ( )

Definition at line 341 of file chgtrack.cxx.

References pLinkDeletedIn.

Referenced by ScDocShell::MergeDocument(), ScChangeTrack::Reject(), and RemoveAllLinks().

void ScChangeAction::RemoveAllDependent ( )
protected

Definition at line 404 of file chgtrack.cxx.

References pLinkDependent.

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

void ScChangeAction::RemoveAllLinks ( )
protected
bool ScChangeAction::RemoveDeletedIn ( const ScChangeAction p)
protected
void ScChangeAction::SetActionNumber ( sal_uLong  n)
inlineprotected

Definition at line 225 of file chgtrack.hxx.

Referenced by ScChangeTrack::Append(), and ScChangeTrack::GenerateDelContent().

void ScChangeAction::SetComment ( const OUString &  rStr)

Definition at line 564 of file chgtrack.cxx.

References aComment.

Referenced by ScDocShell::MergeDocument(), and ScDocShell::SetChangeComment().

void ScChangeAction::SetDateTimeUTC ( const DateTime rDT)
inline

Definition at line 349 of file chgtrack.hxx.

Referenced by ScChangeTrack::Append().

void ScChangeAction::SetDeletedIn ( ScChangeAction p)
protected
void ScChangeAction::SetDeletedInThis ( sal_uLong  nActionNumber,
const ScChangeTrack pTrack 
)
void ScChangeAction::SetRejectAction ( sal_uLong  n)
inlineprotected
void ScChangeAction::SetRejected ( )
protected
void ScChangeAction::SetState ( ScChangeActionState  e)
inlineprotected
void ScChangeAction::SetType ( ScChangeActionType  e)
inlineprotected
void ScChangeAction::SetUser ( const OUString &  r)
protected

Definition at line 559 of file chgtrack.cxx.

References aUser.

Referenced by ScChangeTrack::Append().

void ScChangeAction::UpdateReference ( const ScChangeTrack ,
UpdateRefMode  eMode,
const ScBigRange rRange,
sal_Int32  nDx,
sal_Int32  nDy,
sal_Int32  nDz 
)
protectedvirtual

Reimplemented in ScChangeActionContent, ScChangeActionMove, and ScChangeActionDel.

Definition at line 420 of file chgtrack.cxx.

References GetBigRange(), and ScRefUpdate::Update().

Friends And Related Function Documentation

friend class ScChangeActionContent
friend

Definition at line 184 of file chgtrack.hxx.

friend class ScChangeActionDel
friend

Definition at line 182 of file chgtrack.hxx.

friend class ScChangeActionIns
friend

Definition at line 181 of file chgtrack.hxx.

friend class ScChangeActionMove
friend

Definition at line 183 of file chgtrack.hxx.

friend class ScChangeTrack
friend

Definition at line 180 of file chgtrack.hxx.

Member Data Documentation

ScBigRange ScChangeAction::aBigRange
protected
OUString ScChangeAction::aComment
protected

Definition at line 194 of file chgtrack.hxx.

Referenced by GetComment(), and SetComment().

DateTime ScChangeAction::aDateTime
protected

Definition at line 192 of file chgtrack.hxx.

Referenced by GetDateTime(), GetDateTimeUTC(), and ScChangeAction().

OUString ScChangeAction::aUser
protected

UTC.

Definition at line 193 of file chgtrack.hxx.

Referenced by GetUser(), and SetUser().

ScChangeActionState ScChangeAction::eState
protected

Definition at line 205 of file chgtrack.hxx.

Referenced by GetState(), IsAccepted(), IsRejected(), and IsVirgin().

ScChangeActionType ScChangeAction::eType
protected
sal_uLong ScChangeAction::nAction
protected

Definition at line 202 of file chgtrack.hxx.

Referenced by GetActionNumber().

sal_uLong ScChangeAction::nRejectAction
protected

Definition at line 203 of file chgtrack.hxx.

Referenced by GetRejectAction(), and IsRejecting().

ScChangeActionLinkEntry* ScChangeAction::pLinkAny
protected

Definition at line 197 of file chgtrack.hxx.

Referenced by RemoveAllLinks().

ScChangeActionLinkEntry* ScChangeAction::pLinkDeleted
protected
ScChangeActionLinkEntry* ScChangeAction::pLinkDeletedIn
protected
ScChangeActionLinkEntry* ScChangeAction::pLinkDependent
protected
ScChangeAction* ScChangeAction::pNext
protected
ScChangeAction* ScChangeAction::pPrev
protected

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