Lines Matching refs:pScChangeAction

354 sal_Bool ScAcceptChgDlg::IsValidAction(const ScChangeAction* pScChangeAction)  in IsValidAction()  argument
356 if(pScChangeAction==NULL) return sal_False; in IsValidAction()
360 ScRange aRef=pScChangeAction->GetBigRange().MakeRange(); in IsValidAction()
361 String aUser=pScChangeAction->GetUser(); in IsValidAction()
362 DateTime aDateTime=pScChangeAction->GetDateTime(); in IsValidAction()
364 ScChangeActionType eType=pScChangeAction->GetType(); in IsValidAction()
368 String aComment=pScChangeAction->GetComment(); in IsValidAction()
373 if(!pScChangeAction->IsDialogParent()) in IsValidAction()
375 pScChangeAction->GetDescription( aDesc, pDoc, sal_True); in IsValidAction()
380 pScChangeAction->GetDescription( aDesc, pDoc,!pScChangeAction->IsMasterDelete()); in IsValidAction()
416 SvLBoxEntry* ScAcceptChgDlg::InsertChangeAction(const ScChangeAction* pScChangeAction, in InsertChangeAction() argument
422 if(pScChangeAction==NULL || pChanges==NULL) return NULL; in InsertChangeAction()
428 ScRange aRef=pScChangeAction->GetBigRange().MakeRange(); in InsertChangeAction()
429 String aUser=pScChangeAction->GetUser(); in InsertChangeAction()
430 DateTime aDateTime=pScChangeAction->GetDateTime(); in InsertChangeAction()
433 ScChangeActionType eType=pScChangeAction->GetType(); in InsertChangeAction()
438 pNewData->pData=(void *)pScChangeAction; in InsertChangeAction()
439 pNewData->nActionNo=pScChangeAction->GetActionNumber(); in InsertChangeAction()
440 pNewData->bIsAcceptable=pScChangeAction->IsClickable(); in InsertChangeAction()
441 pNewData->bIsRejectable=pScChangeAction->IsRejectable(); in InsertChangeAction()
450 if(pScChangeAction->IsDialogParent()) in InsertChangeAction()
460 pScChangeAction->GetDescription( aDesc, pDoc, sal_True); in InsertChangeAction()
469 pScChangeAction->GetDescription( aDesc, pDoc,sal_True); in InsertChangeAction()
474 pScChangeAction->GetDescription( aDesc, pDoc,!pScChangeAction->IsMasterDelete()); in InsertChangeAction()
479 pScChangeAction->GetRefString(aRefStr, pDoc, sal_True); in InsertChangeAction()
485 if(!pChanges->IsGenerated(pScChangeAction->GetActionNumber())) in InsertChangeAction()
503 String aComment=pScChangeAction->GetComment(); in InsertChangeAction()
567 SvLBoxEntry* ScAcceptChgDlg::InsertFilteredAction(const ScChangeAction* pScChangeAction, in InsertFilteredAction() argument
574 if(pScChangeAction==NULL || pChanges==NULL) return NULL; in InsertFilteredAction()
576 sal_Bool bIsGenerated=pChanges->IsGenerated(pScChangeAction->GetActionNumber()); in InsertFilteredAction()
582 ScRange aRef=pScChangeAction->GetBigRange().MakeRange(); in InsertFilteredAction()
583 String aUser=pScChangeAction->GetUser(); in InsertFilteredAction()
584 DateTime aDateTime=pScChangeAction->GetDateTime(); in InsertFilteredAction()
599 pScChangeAction->GetState()==eState) in InsertFilteredAction()
604 else if(pScChangeAction->GetState()==eState && !bIsGenerated) in InsertFilteredAction()
614 ScChangeActionType eType=pScChangeAction->GetType(); in InsertFilteredAction()
620 pNewData->pData=(void *)pScChangeAction; in InsertFilteredAction()
621 pNewData->nActionNo=pScChangeAction->GetActionNumber(); in InsertFilteredAction()
622 pNewData->bIsAcceptable=pScChangeAction->IsClickable(); in InsertFilteredAction()
623 pNewData->bIsRejectable=pScChangeAction->IsRejectable(); in InsertFilteredAction()
632 if(pScChangeAction->IsDialogParent()) in InsertFilteredAction()
642 pScChangeAction->GetDescription( aDesc, pDoc, sal_True); in InsertFilteredAction()
651 pScChangeAction->GetDescription( aDesc, pDoc,sal_True); in InsertFilteredAction()
656 pScChangeAction->GetDescription( aDesc, pDoc,!pScChangeAction->IsMasterDelete()); in InsertFilteredAction()
661 pScChangeAction->GetRefString(aRefStr, pDoc, sal_True); in InsertFilteredAction()
680 String aComment=pScChangeAction->GetComment(); in InsertFilteredAction()
699 SvLBoxEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionContent* pScChangeAction, in InsertChangeActionContent() argument
705 if(pScChangeAction==NULL || pChanges==NULL) return NULL; in InsertChangeActionContent()
707 sal_Bool bIsGenerated=pChanges->IsGenerated(pScChangeAction->GetActionNumber()); in InsertChangeActionContent()
711 ScRange aRef=pScChangeAction->GetBigRange().MakeRange(); in InsertChangeActionContent()
712 String aUser=pScChangeAction->GetUser(); in InsertChangeActionContent()
713 DateTime aDateTime=pScChangeAction->GetDateTime(); in InsertChangeActionContent()
743 pScChangeAction->GetOldString(a2String); in InsertChangeActionContent()
755 pScChangeAction->GetNewString(a2String); in InsertChangeActionContent()
774 pScChangeAction->GetRefString(aRefStr, pDoc, sal_True); in InsertChangeActionContent()
793 String aComment=pScChangeAction->GetComment(); in InsertChangeActionContent()
807 pNewData->pData=(void *)pScChangeAction; in InsertChangeActionContent()
808 pNewData->nActionNo=pScChangeAction->GetActionNumber(); in InsertChangeActionContent()
809 pNewData->bIsAcceptable=pScChangeAction->IsClickable(); in InsertChangeActionContent()
846 const ScChangeAction* pScChangeAction=NULL; in UpdateView() local
861 pScChangeAction=pChanges->GetFirst(); in UpdateView()
867 while(pScChangeAction!=NULL) in UpdateView()
870 switch(pScChangeAction->GetState()) in UpdateView()
874 if(pScChangeAction->IsDialogRoot()) in UpdateView()
876 if(pScChangeAction->IsDialogParent()) in UpdateView()
877 pParent=InsertChangeAction(pScChangeAction,SC_CAS_VIRGIN); in UpdateView()
879 pParent=InsertFilteredAction(pScChangeAction,SC_CAS_VIRGIN); in UpdateView()
898 if(pParent!=NULL && pScChangeAction->IsDialogParent()) in UpdateView()
908 if(Expand(pChanges,pScChangeAction,pParent,!bTestFlag)&&!bTestFlag) in UpdateView()
913 pScChangeAction=pScChangeAction->GetNext(); in UpdateView()
1060 ScChangeAction* pScChangeAction= in IMPL_LINK() local
1063 if(pScChangeAction->GetType()==SC_CAT_INSERT_TABS) in IMPL_LINK()
1067 pChanges->Reject(pScChangeAction); in IMPL_LINK()
1098 ScChangeAction* pScChangeAction= in IMPL_LINK() local
1100 if(pScChangeAction->GetType()==SC_CAT_CONTENT) in IMPL_LINK()
1104 pChanges->SelectContent(pScChangeAction,sal_True); in IMPL_LINK()
1108 pChanges->SelectContent(pScChangeAction); in IMPL_LINK()
1112 pChanges->Accept(pScChangeAction); in IMPL_LINK()
1132 const ScChangeAction* pScChangeAction=NULL; in RejectFiltered() local
1136 pScChangeAction=pChanges->GetLast(); in RejectFiltered()
1139 while(pScChangeAction!=NULL) in RejectFiltered()
1141 if(pScChangeAction->IsDialogRoot()) in RejectFiltered()
1143 if(IsValidAction(pScChangeAction)) in RejectFiltered()
1145 pChanges->Reject((ScChangeAction*)pScChangeAction); in RejectFiltered()
1148 pScChangeAction=pScChangeAction->GetPrev(); in RejectFiltered()
1155 const ScChangeAction* pScChangeAction=NULL; in AcceptFiltered() local
1159 pScChangeAction=pChanges->GetLast(); in AcceptFiltered()
1162 while(pScChangeAction!=NULL) in AcceptFiltered()
1164 if(pScChangeAction->IsDialogRoot()) in AcceptFiltered()
1166 if(IsValidAction(pScChangeAction)) in AcceptFiltered()
1168 pChanges->Accept((ScChangeAction*)pScChangeAction); in AcceptFiltered()
1171 pScChangeAction=pScChangeAction->GetPrev(); in AcceptFiltered()
1246 void ScAcceptChgDlg::GetDependents( const ScChangeAction* pScChangeAction, in GetDependents() argument
1257 if(pParentAction!=pScChangeAction) in GetDependents()
1259 pChanges->GetDependents((ScChangeAction*) pScChangeAction, in GetDependents()
1260 aActionTable,pScChangeAction->IsMasterDelete()); in GetDependents()
1264 pChanges->GetDependents((ScChangeAction*) pScChangeAction, in GetDependents()
1270 pChanges->GetDependents((ScChangeAction*) pScChangeAction, in GetDependents()
1271 aActionTable,pScChangeAction->IsMasterDelete()); in GetDependents()
1279 const ScChangeAction* pScChangeAction = (ScChangeAction*) pEntryData->pData; in InsertContentChilds() local
1286 if ( pScChangeAction->GetType() == SC_CAT_CONTENT && in InsertContentChilds()
1287 ((const ScChangeActionContent*)pScChangeAction)->IsMatrixOrigin() ) in InsertContentChilds()
1289 pActionTable->Insert( pScChangeAction->GetActionNumber(), in InsertContentChilds()
1290 (ScChangeAction*) pScChangeAction ); in InsertContentChilds()
1310 pParentData->pData=(void *)pScChangeAction; in InsertContentChilds()
1311 pParentData->nActionNo=pScChangeAction->GetActionNumber(); in InsertContentChilds()
1312 pParentData->bIsAcceptable=pScChangeAction->IsRejectable(); // select old value in InsertContentChilds()
1331 pScChangeAction,pParent,RD_SPECIAL_NONE); in InsertContentChilds()
1337 pParentData->pData=(void *)pScChangeAction; in InsertContentChilds()
1338 pParentData->nActionNo=pScChangeAction->GetActionNumber(); in InsertContentChilds()
1339 pParentData->bIsAcceptable=pScChangeAction->IsClickable(); in InsertContentChilds()
1370 ScChangeAction* pScChangeAction=pChanges->GetFirst(); in InsertAcceptedORejected() local
1371 while(pScChangeAction!=NULL) in InsertAcceptedORejected()
1373 if(pScChangeAction->GetState()==eState && in InsertAcceptedORejected()
1374 InsertFilteredAction(pScChangeAction,eState,pParent)!=NULL) in InsertAcceptedORejected()
1376 pScChangeAction=pScChangeAction->GetNext(); in InsertAcceptedORejected()
1411 sal_Bool ScAcceptChgDlg::InsertDeletedChilds(const ScChangeAction* pScChangeAction, in InsertDeletedChilds() argument
1423 if(pScChangeAction!=pChild) in InsertDeletedChilds()
1454 sal_Bool ScAcceptChgDlg::Expand(ScChangeTrack* pChanges,const ScChangeAction* pScChangeAction, in Expand() argument
1459 if(pChanges!=NULL &&pEntry!=NULL &&pScChangeAction!=NULL) in Expand()
1463 GetDependents( pScChangeAction,aActionTable,pEntry); in Expand()
1465 switch(pScChangeAction->GetType()) in Expand()
1477 InsertDeletedChilds(pScChangeAction,&aActionTable,pEntry); in Expand()
1496 ScChangeAction* pScChangeAction=NULL; in IMPL_LINK() local
1507 pScChangeAction=(ScChangeAction*) pEntryData->pData; in IMPL_LINK()
1518 pScChangeAction=(ScChangeAction*) pEntryData->pData; in IMPL_LINK()
1520 GetDependents( pScChangeAction,aActionTable,pEntry); in IMPL_LINK()
1522 switch(pScChangeAction->GetType()) in IMPL_LINK()
1533 bTheTestFlag=InsertDeletedChilds(pScChangeAction,&aActionTable,pEntry); in IMPL_LINK()
1566 const ScChangeAction* pScChangeAction=NULL; in AppendChanges() local
1582 pScChangeAction=pChanges->GetAction(i); in AppendChanges()
1583 if(pScChangeAction==NULL) continue; in AppendChanges()
1586 switch(pScChangeAction->GetState()) in AppendChanges()
1590 if(pScChangeAction->IsDialogRoot()) in AppendChanges()
1592 if(pScChangeAction->IsDialogParent()) in AppendChanges()
1593 pParent=InsertChangeAction(pScChangeAction,SC_CAS_VIRGIN); in AppendChanges()
1595 pParent=InsertFilteredAction(pScChangeAction,SC_CAS_VIRGIN); in AppendChanges()
1614 if(pParent!=NULL && pScChangeAction->IsDialogParent()) in AppendChanges()
1624 if(Expand(pChanges,pScChangeAction,pParent,!bTestFlag)&&!bTestFlag) in AppendChanges()
1629 pScChangeAction=pScChangeAction->GetNext(); in AppendChanges()
1714 ScChangeAction* pScChangeAction= in UpdateEntrys() local
1717 sal_uLong nAction=pScChangeAction->GetActionNumber(); in UpdateEntrys()
1827 const ScChangeAction* pScChangeAction = (ScChangeAction*) pEntryData->pData; in IMPL_LINK() local
1828 if( pScChangeAction && (pScChangeAction->GetType() != SC_CAT_DELETE_TABS) && in IMPL_LINK()
1829 (!pEntryData->bDisabled || pScChangeAction->IsVisible()) ) in IMPL_LINK()
1831 const ScBigRange& rBigRange = pScChangeAction->GetBigRange(); in IMPL_LINK()
1902 ScChangeAction* pScChangeAction= in IMPL_LINK() local
1904 if(pScChangeAction!=NULL && !pTheView->GetParent(pEntry)) in IMPL_LINK()
1921 ScChangeAction* pScChangeAction= in IMPL_LINK() local
1924 pViewData->GetDocShell()->ExecuteChangeCommentDialog( pScChangeAction, this,sal_False); in IMPL_LINK()