Lines Matching refs:pDoc

51 ScRefUndoData::ScRefUndoData( const ScDocument* pDoc ) :  in ScRefUndoData()  argument
54 ScDBCollection* pOldDBColl = pDoc->GetDBCollection(); in ScRefUndoData()
57 ScRangeName* pOldRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const in ScRefUndoData()
60 pPrintRanges = pDoc->CreatePrintRangeSaver(); // neu erzeugt in ScRefUndoData()
64 ScDPCollection* pOldDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const in ScRefUndoData()
67 ScConditionalFormatList* pOldCond = pDoc->GetCondFormList(); in ScRefUndoData()
70 ScDetOpList* pOldDetOp = pDoc->GetDetOpList(); in ScRefUndoData()
74 pDoc->GetChartListenerCollection(); in ScRefUndoData()
78 pAreaLinks = ScAreaLinkSaveCollection::CreateFromDoc(pDoc); // returns NULL if empty in ScRefUndoData()
80 const_cast<ScDocument*>(pDoc)->BeginUnoRefUndo(); in ScRefUndoData()
96 void ScRefUndoData::DeleteUnchanged( const ScDocument* pDoc ) in DeleteUnchanged() argument
100 ScDBCollection* pNewDBColl = pDoc->GetDBCollection(); in DeleteUnchanged()
106 ScRangeName* pNewRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const in DeleteUnchanged()
113 ScPrintRangeSaver* pNewRanges = pDoc->CreatePrintRangeSaver(); in DeleteUnchanged()
121 ScDPCollection* pNewDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const in DeleteUnchanged()
128 ScConditionalFormatList* pNewCond = pDoc->GetCondFormList(); in DeleteUnchanged()
135 ScDetOpList* pNewDetOp = pDoc->GetDetOpList(); in DeleteUnchanged()
143 pDoc->GetChartListenerCollection(); in DeleteUnchanged()
151 if ( pAreaLinks->IsEqual( pDoc ) ) in DeleteUnchanged()
155 if ( pDoc->HasUnoRefUndo() ) in DeleteUnchanged()
157 pUnoRefs = const_cast<ScDocument*>(pDoc)->EndUnoRefUndo(); in DeleteUnchanged()
165 void ScRefUndoData::DoUndo( ScDocument* pDoc, sal_Bool bUndoRefFirst ) in DoUndo() argument
168 pDoc->SetDBCollection( new ScDBCollection(*pDBCollection) ); in DoUndo()
170 pDoc->SetRangeName( new ScRangeName(*pRangeName) ); in DoUndo()
173 pDoc->RestorePrintRanges(*pPrintRanges); in DoUndo()
177 ScDPCollection* pDocDP = pDoc->GetDPCollection(); in DoUndo()
183 pDoc->SetCondFormList( new ScConditionalFormatList(*pCondFormList) ); in DoUndo()
185 pDoc->SetDetOpList( new ScDetOpList(*pDetOpList) ); in DoUndo()
189 pDoc->SetChartListenerCollection( new ScChartListenerCollection( in DoUndo()
194 sal_Bool bOldAutoCalc = pDoc->GetAutoCalc(); in DoUndo()
195 pDoc->SetAutoCalc( sal_False ); // Mehrfachberechnungen vermeiden in DoUndo()
196 pDoc->CompileAll(); in DoUndo()
197 pDoc->SetDirty(); in DoUndo()
198 pDoc->SetAutoCalc( bOldAutoCalc ); in DoUndo()
202 pAreaLinks->Restore( pDoc ); in DoUndo()
205 pUnoRefs->Undo( pDoc ); in DoUndo()