Lines Matching refs:pDoc

357 	ScDocument* pDoc = pDocShell->GetDocument();  in Undo()  local
368 sal_Bool bOk = pDoc->InsertTab( nTab, aName ); in Undo()
374 pRefUndoDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,sal_False, pDoc ); in Undo()
378 pDoc->RenameTab( nTab, aOldName, sal_False ); in Undo()
381 pDoc->SetLink( nTab, pRefUndoDoc->GetLinkMode(nTab), pRefUndoDoc->GetLinkDoc(nTab), in Undo()
389 pDoc->SetScenario( nTab, sal_True ); in Undo()
394 pDoc->SetScenarioData( nTab, aComment, aColor, nScenFlags ); in Undo()
396 pDoc->SetActiveScenario( nTab, bActive ); in Undo()
398 pDoc->SetVisible( nTab, pRefUndoDoc->IsVisible( nTab ) ); in Undo()
399 pDoc->SetTabBgColor( nTab, pRefUndoDoc->GetTabBgColor(nTab) ); in Undo()
400 pDoc->SetSheetEvents( nTab, pRefUndoDoc->GetSheetEvents( nTab ) ); in Undo()
403 pDoc->SetTabProtection(nTab, pRefUndoDoc->GetTabProtection(nTab)); in Undo()
434 pViewShell->SetTabNo( lcl_GetVisibleTabBefore( *pDoc, theTabs.front() ), sal_True ); in Undo()
500 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
501 pDoc->RenameTab( nTabP, rName ); in DoChange()
563 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
573 nDestTab = pDoc->GetTableCount() - 1; in DoChange()
575 pDoc->MoveTab( nDestTab, nOldTab ); in DoChange()
588 nDestTab = pDoc->GetTableCount() - 1; in DoChange()
590 pDoc->MoveTab( nOldTab, nNewTab ); in DoChange()
667 ScDocument* pDoc = pDocShell->GetDocument(); in Undo() local
669 DoSdrUndoAction( pDrawUndo, pDoc ); // before the sheets are deleted in Undo()
675 nDestTab = pDoc->GetTableCount() - 1; in Undo()
678 pDoc->DeleteTab(nDestTab); in Undo()
689 nDestTab = pDoc->GetTableCount() - 1; in Undo()
699 ScDocument* pDoc = pDocShell->GetDocument(); in Redo() local
709 nDestTab = pDoc->GetTableCount() - 1; in Redo()
712 pDoc->CopyTab( nOldTab, nNewTab ); in Redo()
721 if ( pDoc->IsScenario(nAdjSource) ) in Redo()
723 pDoc->SetScenario(nNewTab, sal_True ); in Redo()
727 pDoc->GetScenarioData(nAdjSource, aComment, aColor, nScenFlags ); in Redo()
728 pDoc->SetScenarioData(nNewTab, aComment, aColor, nScenFlags ); in Redo()
729 sal_Bool bActive = pDoc->IsActiveScenario(nAdjSource); in Redo()
730 pDoc->SetActiveScenario(nNewTab, bActive ); in Redo()
731 sal_Bool bVisible=pDoc->IsVisible(nAdjSource); in Redo()
732 pDoc->SetVisible(nNewTab,bVisible ); in Redo()
735 if ( pDoc->IsTabProtected( nAdjSource ) ) in Redo()
736 pDoc->CopyTabProtection(nAdjSource, nNewTab); in Redo()
793 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
794 if (!pDoc) in DoChange()
801 pDoc->SetTabBgColor(rTabColor.mnTabId, in DoChange()
865 ScDocument* pDoc = pDocShell->GetDocument(); in Undo() local
869 pDoc->DeleteTab( nDestTab ); in Undo()
873 DoSdrUndoAction( pDrawUndo, pDoc ); in Undo()
954 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
955 SCTAB nTabCount = pDoc->GetTableCount(); in DoChange()
978 ScDocument* pDoc = pDocShell->GetDocument(); in Undo() local
983 pRedoDoc->InitUndo( pDoc, nTab,nTab+nCount-1, sal_True,sal_True ); in Undo()
990 pDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pRedoDoc ); in Undo()
991 pDoc->GetName( nTabPos, aOldName ); in Undo()
993 pRedoDoc->SetTabBgColor( nTabPos, pDoc->GetTabBgColor(nTabPos) ); in Undo()
995 if ( pDoc->IsScenario(nTabPos) ) in Undo()
1001 pDoc->GetScenarioData(nTabPos, aComment, aColor, nScenFlags ); in Undo()
1003 sal_Bool bActive = pDoc->IsActiveScenario(nTabPos); in Undo()
1005 sal_Bool bVisible=pDoc->IsVisible(nTabPos); in Undo()
1009 if ( pDoc->IsTabProtected( nTabPos ) ) in Undo()
1010 pRedoDoc->SetTabProtection(nTabPos, pDoc->GetTabProtection(nTabPos)); in Undo()
1015 DoSdrUndoAction( pDrawUndo, pDoc ); // before the sheets are deleted in Undo()
1019 pDoc->DeleteTab( nTab ); in Undo()
1033 ScDocument* pDoc = pDocShell->GetDocument(); in Redo() local
1041 pDoc->InsertTab(nTabPos,aName); in Redo()
1047 pRedoDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pDoc ); in Redo()
1048 pDoc->SetTabBgColor( nTabPos, pRedoDoc->GetTabBgColor(nTabPos) ); in Redo()
1052 pDoc->SetScenario(nTabPos, sal_True ); in Redo()
1057 pDoc->SetScenarioData(nTabPos, aComment, aColor, nScenFlags ); in Redo()
1059 pDoc->SetActiveScenario(nTabPos, bActive ); in Redo()
1061 pDoc->SetVisible(nTabPos,bVisible ); in Redo()
1065 pDoc->SetTabProtection(nTabPos, pRedoDoc->GetTabProtection(nTabPos)); in Redo()
1096 ScDocument* pDoc = pDocShell->GetDocument(); in ScUndoRemoveLink() local
1097 SCTAB nTabCount = pDoc->GetTableCount(); in ScUndoRemoveLink()
1104 sal_uInt8 nMode = pDoc->GetLinkMode(i); in ScUndoRemoveLink()
1106 if (pDoc->GetLinkDoc(i) == aDocName) in ScUndoRemoveLink()
1110 aFltName = pDoc->GetLinkFlt(i); in ScUndoRemoveLink()
1111 aOptions = pDoc->GetLinkOpt(i); in ScUndoRemoveLink()
1112 nRefreshDelay = pDoc->GetLinkRefreshDelay(i); in ScUndoRemoveLink()
1116 DBG_ASSERT(aFltName == pDoc->GetLinkFlt(i) && in ScUndoRemoveLink()
1117 aOptions == pDoc->GetLinkOpt(i), in ScUndoRemoveLink()
1122 pTabNames[nCount] = pDoc->GetLinkTab(i); in ScUndoRemoveLink()
1142 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
1146 pDoc->SetLink( pTabs[i], pModes[i], aDocName, aFltName, aOptions, pTabNames[i], nRefreshDelay ); in DoChange()
1148 pDoc->SetLink( pTabs[i], SC_LINK_NONE, aEmpty, aEmpty, aEmpty, aEmpty, 0 ); in DoChange()
1191 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
1192 pDoc->SetVisible( nTab, bShowP ); in DoChange()
1245 ScDocument* pDoc = pDocShell->GetDocument(); in DoProtect() local
1252 pDoc->SetDocProtection(pCopy.get()); in DoProtect()
1257 pDoc->SetDocProtection(NULL); in DoProtect()
1315 ScDocument* pDoc = pDocShell->GetDocument(); in DoProtect() local
1322 pDoc->SetTabProtection(mnTab, pCopy.get()); in DoProtect()
1327 pDoc->SetTabProtection(mnTab, NULL); in DoProtect()
1392 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
1394 pDoc->RestorePrintRanges( *pOldRanges ); in DoChange()
1396 pDoc->RestorePrintRanges( *pNewRanges ); in DoChange()
1471 ScDocument* pDoc = pDocShell->GetDocument(); in Undo() local
1473 pDoc->RenameTab( nTab, aOldName ); in Undo()
1474 pDoc->SetScenarioData( nTab, aOldComment, aOldColor, nOldFlags ); in Undo()
1488 ScDocument* pDoc = pDocShell->GetDocument(); in Redo() local
1490 pDoc->RenameTab( nTab, aNewName ); in Redo()
1491 pDoc->SetScenarioData( nTab, aNewComment, aNewColor, nNewFlags ); in Redo()
1541 ScDocument* pDoc = pDocShell->GetDocument(); in GetObject() local
1542 ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer(); in GetObject()
1616 ScDocument* pDoc = pDocShell->GetDocument(); in DoChange() local
1617 pDoc->SetLayoutRTL( nTab, bNew ); in DoChange()