LibreOffice Module sc (master) 1
|
#include <XMLChangeTrackingImportHelper.hxx>
Public Member Functions | |
ScXMLChangeTrackingImportHelper () | |
~ScXMLChangeTrackingImportHelper () | |
void | SetProtection (const css::uno::Sequence< sal_Int8 > &rProtect) |
void | StartChangeAction (const ScChangeActionType nActionType) |
void | SetActionNumber (const sal_uInt32 nActionNumber) |
void | SetActionState (const ScChangeActionState nActionState) |
void | SetRejectingNumber (const sal_uInt32 nRejectingNumber) |
void | SetActionInfo (const ScMyActionInfo &aInfo) |
void | SetBigRange (const ScBigRange &aBigRange) |
void | SetPreviousChange (const sal_uInt32 nPreviousAction, ScMyCellInfo *pCellInfo) |
void | SetPosition (const sal_Int32 nPosition, const sal_Int32 nCount, const sal_Int32 nTable) |
void | AddDependence (const sal_uInt32 nID) |
void | AddDeleted (const sal_uInt32 nID) |
void | AddDeleted (const sal_uInt32 nID, std::unique_ptr< ScMyCellInfo > pCellInfo) |
void | SetMultiSpanned (const sal_Int16 nMultiSpanned) |
void | SetInsertionCutOff (const sal_uInt32 nID, const sal_Int32 nPosition) |
void | AddMoveCutOff (const sal_uInt32 nID, const sal_Int32 nStartPosition, const sal_Int32 nEndPosition) |
void | SetMoveRanges (const ScBigRange &aSourceRange, const ScBigRange &aTargetRange) |
void | GetMultiSpannedRange () |
void | AddGenerated (std::unique_ptr< ScMyCellInfo > pCellInfo, const ScBigRange &aBigRange) |
void | EndChangeAction () |
void | SetDeletionDependencies (ScMyDelAction *pAction, ScChangeActionDel *pDelAct) |
void | SetMovementDependencies (ScMyMoveAction *pAction, ScChangeActionMove *pMoveAct) |
void | SetContentDependencies (const ScMyContentAction *pAction, ScChangeActionContent *pActContent, const ScDocument &rDoc) |
void | SetDependencies (ScMyBaseAction *pAction, ScDocument &rDoc) |
void | SetNewCell (const ScMyContentAction *pAction, ScDocument &rDoc) |
void | CreateChangeTrack (ScDocument *pDoc) |
Static Public Member Functions | |
static sal_uInt32 | GetIDFromString (std::string_view sID) |
Private Member Functions | |
void | ConvertInfo (const ScMyActionInfo &aInfo, OUString &rUser, DateTime &aDateTime) |
std::unique_ptr< ScChangeAction > | CreateInsertAction (const ScMyInsAction *pAction) |
std::unique_ptr< ScChangeAction > | CreateDeleteAction (const ScMyDelAction *pAction) |
std::unique_ptr< ScChangeAction > | CreateMoveAction (const ScMyMoveAction *pAction) |
std::unique_ptr< ScChangeAction > | CreateRejectionAction (const ScMyRejAction *pAction) |
std::unique_ptr< ScChangeAction > | CreateContentAction (const ScMyContentAction *pAction, ScDocument &rDoc) |
void | CreateGeneratedActions (std::vector< ScMyGenerated > &rList, ScDocument &rDoc) |
Private Attributes | |
std::set< OUString > | aUsers |
std::vector< std::unique_ptr< ScMyBaseAction > > | aActions |
css::uno::Sequence< sal_Int8 > | aProtect |
ScChangeTrack * | pTrack |
std::unique_ptr< ScMyBaseAction > | pCurrentAction |
sal_Int16 | nMultiSpanned |
sal_Int16 | nMultiSpannedSlaveCount |
Definition at line 163 of file XMLChangeTrackingImportHelper.hxx.
ScXMLChangeTrackingImportHelper::ScXMLChangeTrackingImportHelper | ( | ) |
Definition at line 139 of file XMLChangeTrackingImportHelper.cxx.
ScXMLChangeTrackingImportHelper::~ScXMLChangeTrackingImportHelper | ( | ) |
Definition at line 146 of file XMLChangeTrackingImportHelper.cxx.
void ScXMLChangeTrackingImportHelper::AddDeleted | ( | const sal_uInt32 | nID | ) |
Definition at line 262 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction.
void ScXMLChangeTrackingImportHelper::AddDeleted | ( | const sal_uInt32 | nID, |
std::unique_ptr< ScMyCellInfo > | pCellInfo | ||
) |
Definition at line 267 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction.
|
inline |
Definition at line 199 of file XMLChangeTrackingImportHelper.hxx.
References pCurrentAction.
void ScXMLChangeTrackingImportHelper::AddGenerated | ( | std::unique_ptr< ScMyCellInfo > | pCellInfo, |
const ScBigRange & | aBigRange | ||
) |
Definition at line 343 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction, SC_CAT_DELETE_COLS, SC_CAT_DELETE_ROWS, and SC_CAT_MOVE.
void ScXMLChangeTrackingImportHelper::AddMoveCutOff | ( | const sal_uInt32 | nID, |
const sal_Int32 | nStartPosition, | ||
const sal_Int32 | nEndPosition | ||
) |
Definition at line 296 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.
|
private |
Definition at line 383 of file XMLChangeTrackingImportHelper.cxx.
References ScMyActionInfo::aDateTime, ScChangeTrack::GetUserCollection(), pTrack, ScChangeTrack::SetTimeNanoSeconds(), and ScMyActionInfo::sUser.
Referenced by CreateContentAction(), CreateDeleteAction(), CreateInsertAction(), CreateMoveAction(), and CreateRejectionAction().
void ScXMLChangeTrackingImportHelper::CreateChangeTrack | ( | ScDocument * | pDoc | ) |
Definition at line 712 of file XMLChangeTrackingImportHelper.cxx.
References aActions, ScMyDelAction::aGeneratedList, ScMyMoveAction::aGeneratedList, ScChangeTrack::AppendLoaded(), aProtect, aUsers, CreateContentAction(), CreateDeleteAction(), CreateGeneratedActions(), CreateInsertAction(), CreateMoveAction(), CreateRejectionAction(), ScChangeAction::GetActionNumber(), ScDocument::GetChangeTrack(), ScChangeTrack::GetLast(), ScChangeTrack::GetProtection(), ScChangeTrack::IsProtected(), pTrack, 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_REJECT, ScChangeTrack::SetActionMax(), ScDocument::SetChangeTrack(), SetDependencies(), ScChangeTrack::SetLastSavedActionNumber(), SetNewCell(), ScChangeTrack::SetProtection(), and ScChangeTrack::SetTimeNanoSeconds().
Referenced by ScXMLBodyContext::endFastElement().
|
private |
Definition at line 455 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aBigRange, ScMyBaseAction::aInfo, ConvertInfo(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionState, ScMyBaseAction::nRejectingNumber, ScMyContentAction::pCellInfo, and ScMyActionInfo::sComment.
Referenced by CreateChangeTrack().
|
private |
Definition at line 414 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aBigRange, ScMyBaseAction::aInfo, ConvertInfo(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionState, ScMyBaseAction::nActionType, ScMyDelAction::nD, ScMyBaseAction::nRejectingNumber, pTrack, and ScMyActionInfo::sComment.
Referenced by CreateChangeTrack().
|
private |
Definition at line 475 of file XMLChangeTrackingImportHelper.cxx.
References ScChangeTrack::AddLoadedGenerated(), ScCellValue::isEmpty(), and pTrack.
Referenced by CreateChangeTrack().
|
private |
Definition at line 402 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aBigRange, ScMyBaseAction::aInfo, ConvertInfo(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionState, ScMyBaseAction::nActionType, ScMyBaseAction::nRejectingNumber, and ScMyActionInfo::sComment.
Referenced by CreateChangeTrack().
|
private |
Definition at line 426 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aInfo, ConvertInfo(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionState, ScMyBaseAction::nRejectingNumber, ScMyMoveAction::pMoveRanges, pTrack, and ScMyActionInfo::sComment.
Referenced by CreateChangeTrack().
|
private |
Definition at line 443 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aBigRange, ScMyBaseAction::aInfo, ConvertInfo(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionState, ScMyBaseAction::nRejectingNumber, and ScMyActionInfo::sComment.
Referenced by CreateChangeTrack().
void ScXMLChangeTrackingImportHelper::EndChangeAction | ( | ) |
Definition at line 361 of file XMLChangeTrackingImportHelper.cxx.
References aActions, GetMultiSpannedRange(), pCurrentAction, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.
|
static |
Definition at line 191 of file XMLChangeTrackingImportHelper.cxx.
References sax::Converter::convertNumber(), nValue, and SC_CHANGE_ID_PREFIX.
void ScXMLChangeTrackingImportHelper::GetMultiSpannedRange | ( | ) |
Definition at line 321 of file XMLChangeTrackingImportHelper.cxx.
References nMultiSpanned, nMultiSpannedSlaveCount, pCurrentAction, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.
Referenced by EndChangeAction().
void ScXMLChangeTrackingImportHelper::SetActionInfo | ( | const ScMyActionInfo & | aInfo | ) |
Definition at line 211 of file XMLChangeTrackingImportHelper.cxx.
References aUsers, pCurrentAction, and ScMyActionInfo::sUser.
|
inline |
Definition at line 192 of file XMLChangeTrackingImportHelper.hxx.
References pCurrentAction.
|
inline |
Definition at line 193 of file XMLChangeTrackingImportHelper.hxx.
References pCurrentAction.
|
inline |
Definition at line 196 of file XMLChangeTrackingImportHelper.hxx.
References pCurrentAction.
void ScXMLChangeTrackingImportHelper::SetContentDependencies | ( | const ScMyContentAction * | pAction, |
ScChangeActionContent * | pActContent, | ||
const ScDocument & | rDoc | ||
) |
Definition at line 569 of file XMLChangeTrackingImportHelper.cxx.
References ScChangeTrack::GetAction(), ScChangeActionContent::GetOldCell(), ScChangeAction::GetType(), ScCellValue::isEmpty(), ScMyBaseAction::nActionType, ScMyBaseAction::nPreviousAction, pTrack, SC_CAT_CONTENT, ScChangeActionContent::SetNewCell(), ScChangeActionContent::SetNextContent(), and ScChangeActionContent::SetPrevContent().
Referenced by SetDependencies().
void ScXMLChangeTrackingImportHelper::SetDeletionDependencies | ( | ScMyDelAction * | pAction, |
ScChangeActionDel * | pDelAct | ||
) |
Definition at line 491 of file XMLChangeTrackingImportHelper.cxx.
References ScChangeActionDel::AddCutOffMove(), ScMyDelAction::aGeneratedList, ScMyDelAction::aMoveCutOffs, ScChangeTrack::GetAction(), ScChangeAction::GetType(), ScChangeAction::IsInsertType(), ScMyDelAction::moInsCutOff, ScMyBaseAction::nActionType, ScMyMoveCutOff::nEndPosition, ScMyGenerated::nID, ScMyMoveCutOff::nID, ScMyMoveCutOff::nStartPosition, pTrack, SC_CAT_DELETE_COLS, SC_CAT_DELETE_ROWS, SC_CAT_DELETE_TABS, SC_CAT_MOVE, ScChangeActionDel::SetCutOffInsert(), and ScChangeAction::SetDeletedInThis().
Referenced by SetDependencies().
void ScXMLChangeTrackingImportHelper::SetDependencies | ( | ScMyBaseAction * | pAction, |
ScDocument & | rDoc | ||
) |
Definition at line 590 of file XMLChangeTrackingImportHelper.cxx.
References ScChangeAction::AddDependent(), ScMyBaseAction::aDeletedList, ScMyBaseAction::aDependencies, ScCellValue::equalsWithoutFormat(), ScChangeTrack::GetAction(), ScChangeActionContent::GetNewCell(), ScChangeAction::GetType(), ScMyBaseAction::nActionNumber, ScMyBaseAction::nActionType, ScMyDeleted::nID, ScMyDeleted::pCellInfo, pTrack, SC_CAT_CONTENT, SC_CAT_DELETE_COLS, SC_CAT_DELETE_ROWS, SC_CAT_MOVE, SetContentDependencies(), ScChangeAction::SetDeletedInThis(), SetDeletionDependencies(), SetMovementDependencies(), and ScChangeActionContent::SetNewCell().
Referenced by CreateChangeTrack().
void ScXMLChangeTrackingImportHelper::SetInsertionCutOff | ( | const sal_uInt32 | nID, |
const sal_Int32 | nPosition | ||
) |
Definition at line 283 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.
void ScXMLChangeTrackingImportHelper::SetMovementDependencies | ( | ScMyMoveAction * | pAction, |
ScChangeActionMove * | pMoveAct | ||
) |
Definition at line 550 of file XMLChangeTrackingImportHelper.cxx.
References ScMyMoveAction::aGeneratedList, ScMyBaseAction::nActionType, ScMyGenerated::nID, pTrack, SC_CAT_MOVE, and ScChangeAction::SetDeletedInThis().
Referenced by SetDependencies().
void ScXMLChangeTrackingImportHelper::SetMoveRanges | ( | const ScBigRange & | aSourceRange, |
const ScBigRange & | aTargetRange | ||
) |
Definition at line 309 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction, and SC_CAT_MOVE.
void ScXMLChangeTrackingImportHelper::SetMultiSpanned | ( | const sal_Int16 | nMultiSpanned | ) |
Definition at line 272 of file XMLChangeTrackingImportHelper.cxx.
References nMultiSpanned, nMultiSpannedSlaveCount, pCurrentAction, SC_CAT_DELETE_COLS, and SC_CAT_DELETE_ROWS.
void ScXMLChangeTrackingImportHelper::SetNewCell | ( | const ScMyContentAction * | pAction, |
ScDocument & | rDoc | ||
) |
Definition at line 639 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::aBigRange, ScCellValue::assign(), CELLTYPE_FORMULA, Formula, ScChangeTrack::GetAction(), ScCellValue::getFormula(), ScFormulaCell::GetFormula(), ScFormulaCell::GetMatColsRows(), ScFormulaCell::GetMatrixFlag(), ScCellValue::getType(), ScBigRange::GetVars(), formula::FormulaGrammar::GRAM_ODFF, ScChangeAction::IsDeletedIn(), ScCellValue::isEmpty(), ScChangeActionContent::IsTopContent(), ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, ScMyBaseAction::nActionNumber, NONE, pTrack, ScCellValue::set(), ScFormulaCell::SetInChangeTrack(), ScFormulaCell::SetMatColsRows(), ScChangeActionContent::SetNewCell(), ScChangeActionContent::SetNewValue(), and sFormula.
Referenced by CreateChangeTrack().
void ScXMLChangeTrackingImportHelper::SetPosition | ( | const sal_Int32 | nPosition, |
const sal_Int32 | nCount, | ||
const sal_Int32 | nTable | ||
) |
Definition at line 226 of file XMLChangeTrackingImportHelper.cxx.
References nCount, ScBigRange::nRangeMax, ScBigRange::nRangeMin, pCurrentAction, 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, and SC_CAT_REJECT.
void ScXMLChangeTrackingImportHelper::SetPreviousChange | ( | const sal_uInt32 | nPreviousAction, |
ScMyCellInfo * | pCellInfo | ||
) |
Definition at line 217 of file XMLChangeTrackingImportHelper.cxx.
References ScMyBaseAction::nPreviousAction, ScMyContentAction::pCellInfo, pCurrentAction, and SC_CAT_CONTENT.
|
inline |
Definition at line 187 of file XMLChangeTrackingImportHelper.hxx.
References aProtect.
Referenced by ScXMLTrackedChangesContext::ScXMLTrackedChangesContext().
|
inline |
Definition at line 194 of file XMLChangeTrackingImportHelper.hxx.
References pCurrentAction.
void ScXMLChangeTrackingImportHelper::StartChangeAction | ( | const ScChangeActionType | nActionType | ) |
Definition at line 150 of file XMLChangeTrackingImportHelper.cxx.
References pCurrentAction, 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, and SC_CAT_REJECT.
|
private |
Definition at line 166 of file XMLChangeTrackingImportHelper.hxx.
Referenced by CreateChangeTrack(), and EndChangeAction().
|
private |
Definition at line 167 of file XMLChangeTrackingImportHelper.hxx.
Referenced by CreateChangeTrack(), and SetProtection().
|
private |
Definition at line 165 of file XMLChangeTrackingImportHelper.hxx.
Referenced by CreateChangeTrack(), and SetActionInfo().
|
private |
Definition at line 170 of file XMLChangeTrackingImportHelper.hxx.
Referenced by GetMultiSpannedRange(), and SetMultiSpanned().
|
private |
Definition at line 171 of file XMLChangeTrackingImportHelper.hxx.
Referenced by GetMultiSpannedRange(), and SetMultiSpanned().
|
private |
Definition at line 169 of file XMLChangeTrackingImportHelper.hxx.
Referenced by AddDeleted(), AddDependence(), AddGenerated(), AddMoveCutOff(), EndChangeAction(), GetMultiSpannedRange(), SetActionInfo(), SetActionNumber(), SetActionState(), SetBigRange(), SetInsertionCutOff(), SetMoveRanges(), SetMultiSpanned(), SetPosition(), SetPreviousChange(), SetRejectingNumber(), and StartChangeAction().
|
private |
Definition at line 168 of file XMLChangeTrackingImportHelper.hxx.
Referenced by ConvertInfo(), CreateChangeTrack(), CreateDeleteAction(), CreateGeneratedActions(), CreateMoveAction(), SetContentDependencies(), SetDeletionDependencies(), SetDependencies(), SetMovementDependencies(), and SetNewCell().