Lines Matching refs:pDoc
67 ScDocument* pDoc = rDocShell.GetDocument(); in AddDBRange() local
68 ScDBCollection* pDocColl = pDoc->GetDBCollection(); in AddDBRange()
69 sal_Bool bUndo (pDoc->IsUndoEnabled()); in AddDBRange()
82 sal_Bool bCompile = !pDoc->IsImportingXML(); in AddDBRange()
85 pDoc->CompileDBFormula( sal_True ); // CreateFormulaString in AddDBRange()
88 pDoc->CompileDBFormula( sal_False ); // CompileFormulaString in AddDBRange()
112 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteDBRange() local
113 ScDBCollection* pDocColl = pDoc->GetDBCollection(); in DeleteDBRange()
114 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DeleteDBRange()
125 pDoc->CompileDBFormula( sal_True ); // CreateFormulaString in DeleteDBRange()
127 pDoc->CompileDBFormula( sal_False ); // CompileFormulaString in DeleteDBRange()
147 ScDocument* pDoc = rDocShell.GetDocument(); in RenameDBRange() local
148 ScDBCollection* pDocColl = pDoc->GetDBCollection(); in RenameDBRange()
149 sal_Bool bUndo (pDoc->IsUndoEnabled()); in RenameDBRange()
164 pDoc->CompileDBFormula( sal_True ); // CreateFormulaString in RenameDBRange()
170 pDoc->SetDBCollection( pUndoColl ); // gehoert dann dem Dokument in RenameDBRange()
172 pDoc->CompileDBFormula( sal_False ); // CompileFormulaString in RenameDBRange()
197 ScDocument* pDoc = rDocShell.GetDocument(); in ModifyDBData() local
198 ScDBCollection* pDocColl = pDoc->GetDBCollection(); in ModifyDBData()
199 sal_Bool bUndo (pDoc->IsUndoEnabled()); in ModifyDBData()
219 pDoc->CompileDBFormula(); in ModifyDBData()
242 ScDocument* pDoc = rDocShell.GetDocument(); in RepeatDB() local
243 if (bRecord && !pDoc->IsUndoEnabled()) in RepeatDB()
245 ScDBCollection* pColl = pDoc->GetDBCollection(); in RepeatDB()
270 ScDBData* pDest = pDoc->GetDBAtCursor( aQueryParam.nDestCol, aQueryParam.nDestRow, in RepeatDB()
295 SCTAB nTabCount = pDoc->GetTableCount(); in RepeatDB()
297 ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab ); in RepeatDB()
308 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_True ); in RepeatDB()
309 pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, in RepeatDB()
312 pDoc->CopyToDocument( 0, static_cast<SCROW>(nOutStartRow), in RepeatDB()
317 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in RepeatDB()
320 pDoc->CopyToDocument( 0,nStartRow,nTab, MAXCOL,nEndRow,nTab, IDF_ALL, sal_False, pUndoDoc ); in RepeatDB()
323 pDoc->CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1, IDF_FORMULA, sal_False, pUndoDoc ); in RepeatDB()
326 ScRangeName* pDocRange = pDoc->GetRangeName(); in RepeatDB()
329 ScDBCollection* pDocDB = pDoc->GetDBCollection(); in RepeatDB()
379 ScDBData* pDest = pDoc->GetDBAtCursor( aQueryParam.nDestCol, aQueryParam.nDestRow, in RepeatDB()
418 ScDocument* pDoc = rDocShell.GetDocument(); in Sort() local
419 if (bRecord && !pDoc->IsUndoEnabled()) in Sort()
422 ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer(); in Sort()
424 ScDBData* pDBData = pDoc->GetDBAtArea( nTab, rSortParam.nCol1, rSortParam.nRow1, in Sort()
450 pDestData = pDoc->GetDBAtCursor( rSortParam.nDestCol, rSortParam.nDestRow, in Sort()
456 ScEditableTester aTester( pDoc, nTab, aLocalParam.nCol1,aLocalParam.nRow1, in Sort()
465 if ( aLocalParam.bIncludePattern && pDoc->HasAttrib( in Sort()
504 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in Sort()
511 pDoc->CopyToDocument( aLocalParam.nCol1, aLocalParam.nRow1, nTab, in Sort()
524 pDoc->CopyToDocument( aOldDest, IDF_ALL|IDF_NOCAPTIONS, sal_False, pUndoDoc ); in Sort()
531 pDoc->CopyToDocument( 0, aLocalParam.nRow1, nTab, MAXCOL, aLocalParam.nRow2, nTab, in Sort()
535 ScDBCollection* pDocDB = pDoc->GetDBCollection(); in Sort()
550 pDoc->DeleteAreaTab(aOldDest, IDF_CONTENTS); // Zielbereich vorher loeschen in Sort()
561 pDoc->Sort( nTab, aLocalParam, bRepeatQuery ); in Sort()
613 pDoc->SetDirty( aDirtyRange ); in Sort()
657 ScDocument* pDoc = rDocShell.GetDocument(); in Query() local
658 if (bRecord && !pDoc->IsUndoEnabled()) in Query()
660 ScDBData* pDBData = pDoc->GetDBAtArea( nTab, rQueryParam.nCol1, rQueryParam.nRow1, in Query()
710 ScEditableTester aTester( pDoc, nDestTab, aLocalParam.nCol1,aLocalParam.nRow1, in Query()
719 pDestData = pDoc->GetDBAtCursor( rQueryParam.nDestCol, rQueryParam.nDestRow, in Query()
739 pDoc->GetCellType(ScAddress( nTestCol, nTestRow, nTab )) == CELLTYPE_FORMULA ) in Query()
744 if ( bDoSize && !pDoc->CanFitBlock( aOldDest, aDestTotal ) ) in Query()
776 pUndoDoc->InitUndo( pDoc, nDestTab, nDestTab, sal_False, sal_True ); in Query()
777 pDoc->CopyToDocument( aLocalParam.nCol1, aLocalParam.nRow1, nDestTab, in Query()
784 pDoc->CopyToDocument( aOldDest, IDF_ALL, sal_False, pUndoDoc ); in Query()
790 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in Query()
791 pDoc->CopyToDocument( 0, rQueryParam.nRow1, nTab, MAXCOL, rQueryParam.nRow2, nTab, in Query()
795 ScDBCollection* pDocDB = pDoc->GetDBCollection(); in Query()
799 pDoc->BeginDrawUndo(); in Query()
819 pAttribDoc->InitUndo( pDoc, nDestTab, nDestTab, sal_False, sal_True ); in Query()
820 pDoc->CopyToDocument( aAttribRange, IDF_ATTRIB, sal_False, pAttribDoc ); in Query()
824 pDoc->FitBlock( aOldDest, aDestTotal ); in Query()
826 pDoc->DeleteAreaTab(aOldDest, IDF_ALL); // einfach loeschen in Query()
830 SCSIZE nCount = pDoc->Query( nTab, rQueryParam, bKeepSub ); in Query()
844 pDoc->FitBlock( aDestTotal, aNewDest, sal_False ); // sal_False - nicht loeschen in Query()
855 pDoc->FitBlock( aOldForm, aNewForm, sal_False ); in Query()
860 pDoc->Fill( aLocalParam.nCol2+1, nFStartY, in Query()
874 pAttribDoc->CopyToDocument( aHdrRange, IDF_ATTRIB, sal_False, pDoc ); in Query()
886 pDoc->ApplyPatternAreaTab( nCol, nAttrRow, nCol, aLocalParam.nRow2, in Query()
890 pDoc->ApplyStyleAreaTab( nCol, nAttrRow, nCol, aLocalParam.nRow2, in Query()
940 pDoc->InvalidatePageBreaks(nTab); in Query()
941 pDoc->UpdatePageBreaks( nTab ); in Query()
947 pDoc->SetDirty( aDirtyRange ); in Query()
995 ScDocument* pDoc = rDocShell.GetDocument(); in DoSubTotals() local
996 if (bRecord && !pDoc->IsUndoEnabled()) in DoSubTotals()
998 ScDBData* pDBData = pDoc->GetDBAtArea( nTab, rParam.nCol1, rParam.nRow1, in DoSubTotals()
1006 ScEditableTester aTester( pDoc, nTab, 0,rParam.nRow1+1, MAXCOL,MAXROW ); in DoSubTotals()
1014 if (pDoc->HasAttrib( rParam.nCol1, rParam.nRow1+1, nTab, in DoSubTotals()
1025 if (pDoc->TestRemoveSubTotals( nTab, rParam )) in DoSubTotals()
1051 nTabCount = pDoc->GetTableCount(); in DoSubTotals()
1053 ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab ); in DoSubTotals()
1064 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_True ); in DoSubTotals()
1065 …pDoc->CopyToDocument( static_cast<SCCOL>(nOutStartCol), 0, nTab, static_cast<SCCOL>(nOutEndCol), M… in DoSubTotals()
1066 …pDoc->CopyToDocument( 0, nOutStartRow, nTab, MAXCOL, nOutEndRow, nTab, IDF_NONE, sal_False, pUndoD… in DoSubTotals()
1069 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, bOldFilter ); in DoSubTotals()
1072 pDoc->CopyToDocument( 0,rParam.nRow1+1,nTab, MAXCOL,rParam.nRow2,nTab, in DoSubTotals()
1076 pDoc->CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1, in DoSubTotals()
1080 ScRangeName* pDocRange = pDoc->GetRangeName(); in DoSubTotals()
1083 ScDBCollection* pDocDB = pDoc->GetDBCollection(); in DoSubTotals()
1089 ScOutlineTable* pOut = pDoc->GetOutlineTable( nTab ); in DoSubTotals()
1094 pDoc->RemoveSubTotals( nTab, aNewParam ); in DoSubTotals()
1112 bSuccess = pDoc->DoSubTotals( nTab, aNewParam ); in DoSubTotals()
1116 pDoc->SetDirty( aDirtyRange ); in DoSubTotals()
1138 pDoc->CompileDBFormula(); in DoSubTotals()
1151 sal_Bool lcl_EmptyExcept( ScDocument* pDoc, const ScRange& rRange, const ScRange& rExcept ) in lcl_EmptyExcept() argument
1153 ScCellIterator aIter( pDoc, rRange ); in lcl_EmptyExcept()
1184 ScDocument* pDoc = rDocShell.GetDocument(); in DataPilotUpdate() local
1185 if (bRecord && !pDoc->IsUndoEnabled()) in DataPilotUpdate()
1187 if ( !rDocShell.IsEditable() || pDoc->GetChangeTrack() ) in DataPilotUpdate()
1197 ScEditableTester aTester( pDoc, aOldOut ); in DataPilotUpdate()
1208 ScEditableTester aTester( pDoc, aNewStart ); in DataPilotUpdate()
1226 pOldUndoDoc->InitUndo( pDoc, nTab, nTab ); in DataPilotUpdate()
1227 pDoc->CopyToDocument( aRange, IDF_ALL, sal_False, pOldUndoDoc ); in DataPilotUpdate()
1230 pDoc->DeleteAreaTab( aRange.aStart.Col(), aRange.aStart.Row(), in DataPilotUpdate()
1233 pDoc->RemoveFlagsTab( aRange.aStart.Col(), aRange.aStart.Row(), in DataPilotUpdate()
1237 pDoc->GetDPCollection()->FreeTable( pOldObj ); // object is deleted here in DataPilotUpdate()
1254 pOldUndoDoc->InitUndo( pDoc, nTab, nTab ); in DataPilotUpdate()
1255 pDoc->CopyToDocument( aRange, IDF_ALL, sal_False, pOldUndoDoc ); in DataPilotUpdate()
1284 if ( pDoc->GetDPCollection()->GetByName(pDestObj->GetName()) ) in DataPilotUpdate()
1288 if ( !pDoc->GetDPCollection()->InsertNewTable(pDestObj) ) in DataPilotUpdate()
1306 pDestObj->SetName( pDoc->GetDPCollection()->CreateNewName() ); in DataPilotUpdate()
1335 ScEditableTester aTester( pDoc, aNewOut ); in DataPilotUpdate()
1354 bEmpty = lcl_EmptyExcept( pDoc, aNewOut, pOldObj->GetOutRange() ); in DataPilotUpdate()
1356 bEmpty = pDoc->IsBlockEmpty( aNewOut.aStart.Tab(), in DataPilotUpdate()
1377 pNewUndoDoc->InitUndo( pDoc, nTab, nTab ); in DataPilotUpdate()
1378 pDoc->CopyToDocument( aNewOut, IDF_ALL, sal_False, pNewUndoDoc ); in DataPilotUpdate()
1419 pDoc->BroadcastUno( ScDataPilotModifiedHint( pDestObj->GetName() ) ); in DataPilotUpdate()
1437 ScDocument* pDoc = rDocShell.GetDocument(); in UpdateImport() local
1438 ScDBCollection& rDBColl = *pDoc->GetDBCollection(); in UpdateImport()