Lines Matching refs:pDoc

121     ScDocument* pDoc = rDocShell.GetDocument();  in IMPL_LINK()  local
122 SCTAB nTabCount = pDoc->GetTableCount(); in IMPL_LINK()
124 if (pDoc->IsStreamValid(nTab)) in IMPL_LINK()
125 pDoc->SetStreamValid(nTab, sal_False); in IMPL_LINK()
149 ScDocument* pDoc = rDocShell.GetDocument(); in AdjustRowHeight() local
150 if ( pDoc->IsImportingXML() ) in AdjustRowHeight()
155 if ( !pDoc->IsAdjustHeightEnabled() ) in AdjustRowHeight()
167 sal_Bool bChanged = pDoc->SetOptimalHeight( nStartRow, nEndRow, nTab, 0, aProv.GetDevice(), in AdjustRowHeight()
185 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddPred() local
186 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveAddPred()
187 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveAddPred()
194 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).ShowPred( nCol, nRow ); in DetectiveAddPred()
201 pDoc->AddDetectiveOperation( aOperation ); in DetectiveAddPred()
220 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelPred() local
222 sal_Bool bUndo(pDoc->IsUndoEnabled()); in DetectiveDelPred()
223 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveDelPred()
235 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).DeletePred( nCol, nRow ); in DetectiveDelPred()
242 pDoc->AddDetectiveOperation( aOperation ); in DetectiveDelPred()
264 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddSucc() local
266 sal_Bool bUndo(pDoc->IsUndoEnabled()); in DetectiveAddSucc()
267 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveAddSucc()
274 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).ShowSucc( nCol, nRow ); in DetectiveAddSucc()
281 pDoc->AddDetectiveOperation( aOperation ); in DetectiveAddSucc()
300 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelSucc() local
302 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveDelSucc()
303 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveDelSucc()
315 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).DeleteSucc( nCol, nRow ); in DetectiveDelSucc()
322 pDoc->AddDetectiveOperation( aOperation ); in DetectiveDelSucc()
344 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddError() local
346 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveAddError()
347 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveAddError()
354 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).ShowError( nCol, nRow ); in DetectiveAddError()
361 pDoc->AddDetectiveOperation( aOperation ); in DetectiveAddError()
383 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveMarkInvalid() local
385 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveMarkInvalid()
386 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveMarkInvalid()
394 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).MarkInvalid( bOverflow ); in DetectiveMarkInvalid()
422 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelAll() local
424 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveDelAll()
425 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveDelAll()
433 sal_Bool bDone = ScDetectiveFunc( pDoc,nTab ).DeleteAll( SC_DET_DETECTIVE ); in DetectiveDelAll()
439 ScDetOpList* pOldList = pDoc->GetDetOpList(); in DetectiveDelAll()
444 pDoc->ClearDetectiveOperations(); in DetectiveDelAll()
465 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveRefresh() local
467 sal_Bool bUndo (pDoc->IsUndoEnabled()); in DetectiveRefresh()
468 ScDetOpList* pList = pDoc->GetDetOpList(); in DetectiveRefresh()
472 ScDrawLayer* pModel = pDoc->GetDrawLayer(); in DetectiveRefresh()
478 SCTAB nTabCount = pDoc->GetTableCount(); in DetectiveRefresh()
480 ScDetectiveFunc( pDoc,nTab ).DeleteAll( SC_DET_ARROWS ); // don't remove circles in DetectiveRefresh()
491 ScDetectiveFunc aFunc( pDoc, aPos.Tab() ); in DetectiveRefresh()
548 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteContents() local
550 if (bRecord && !pDoc->IsUndoEnabled()) in DeleteContents()
553 ScEditableTester aTester( pDoc, rMark ); in DeleteContents()
577 if ( pDoc->ExtendMerge( aExtendedRange, sal_True ) ) in DeleteContents()
586 SCTAB nTabCount = pDoc->GetTableCount(); in DeleteContents()
588 if (aMultiMark.GetTableSelect(nTab) && pDoc->IsTabProtected(nTab)) in DeleteContents()
604 pDoc->BeginDrawUndo(); in DeleteContents()
609 pDoc->DeleteObjectsInSelection( aMultiMark ); in DeleteContents()
611 pDoc->DeleteObjectsInArea( aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), in DeleteContents()
619 pUndoDoc->InitUndo( pDoc, aMarkRange.aStart.Tab(), aMarkRange.aEnd.Tab() ); in DeleteContents()
632 pDoc->CopyToDocument( aExtendedRange, nUndoDocFlags, bMulti, pUndoDoc, &aMultiMark ); in DeleteContents()
637 pDoc->DeleteArea( aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), in DeleteContents()
642 pDoc->DeleteSelection( nFlags, aMultiMark ); in DeleteContents()
683 ScDocument* pDoc = rDocShell.GetDocument(); in TransliterateText() local
684 if (bRecord && !pDoc->IsUndoEnabled()) in TransliterateText()
687 ScEditableTester aTester( pDoc, rMark ); in TransliterateText()
704 SCTAB nTabCount = pDoc->GetTableCount(); in TransliterateText()
707 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); in TransliterateText()
715 pDoc->CopyToDocument( aCopyRange, IDF_CONTENTS, sal_True, pUndoDoc, &aMultiMark ); in TransliterateText()
721 pDoc->TransliterateText( aMultiMark, nType ); in TransliterateText()
736 ScDocument* pDoc = rDocShell.GetDocument(); in SetNormalString() local
738 sal_Bool bUndo(pDoc->IsUndoEnabled()); in SetNormalString()
739 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in SetNormalString()
751 ScBaseCell* pDocCell = pDoc->GetCell( rPos ); in SetNormalString()
758 ppOldCells[0] = pDocCell ? pDocCell->CloneWithoutNote( *pDoc ) : 0; in SetNormalString()
763 const ScPatternAttr* pPattern = pDoc->GetPattern( rPos.Col(),rPos.Row(),rPos.Tab() ); in SetNormalString()
774 pDoc->SetString( rPos.Col(), rPos.Row(), rPos.Tab(), rText ); in SetNormalString()
783 if ( bEditDeleted || pDoc->HasAttrib( ScRange(rPos), HASATTR_NEEDHEIGHT ) ) in SetNormalString()
799 ScDocument* pDoc = rDocShell.GetDocument(); in PutCell() local
800 sal_Bool bUndo (pDoc->IsUndoEnabled()); in PutCell()
801 sal_Bool bXMLLoading(pDoc->IsImportingXML()); in PutCell()
806 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in PutCell()
817 ScBaseCell* pDocCell = pDoc->GetCell( rPos ); in PutCell()
820 pDoc->HasAttrib( ScRange(rPos), HASATTR_NEEDHEIGHT ) ); in PutCell()
822 ScBaseCell* pUndoCell = (bUndo && pDocCell) ? pDocCell->CloneWithoutNote( *pDoc, rPos ) : 0; in PutCell()
823 ScBaseCell* pRedoCell = (bUndo && pNewCell) ? pNewCell->CloneWithoutNote( *pDoc, rPos ) : 0; in PutCell()
825 pDoc->PutCell( rPos, pNewCell ); in PutCell()
885 ScDocument* pDoc = rDocShell.GetDocument(); in PutData() local
893 sal_Bool bLoseContent = pDoc->IsImportingXML(); in PutData()
923 new ScEditCell( pNewData, pDoc, rEngine.GetEditTextObjectPool() ), in PutData()
957 ScPatternAttr aPattern( pDoc->GetPool() ); in PutData()
959 aPattern.DeleteUnchanged( pDoc->GetPattern( rPos.Col(), rPos.Row(), rPos.Tab() ) ); in PutData()
987 ScDocument* pDoc = rDocShell.GetDocument(); in InterpretEnglishString() local
993 if ( pDoc->IsImportingXML() ) in InterpretEnglishString()
996 pDoc->IncXMLImportedFormulaCount( rText.Len() ); in InterpretEnglishString()
1000 ScCompiler aComp( pDoc, rPos ); in InterpretEnglishString()
1004 pNewCell = new ScFormulaCell( pDoc, rPos, pCode, eGrammar, MM_NONE ); in InterpretEnglishString()
1011 pNewCell = ScBaseCell::CreateTextCell( rText.Copy( 1 ), pDoc ); in InterpretEnglishString()
1015 SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); in InterpretEnglishString()
1026 pNewCell = ScBaseCell::CreateTextCell( rText, pDoc ); in InterpretEnglishString()
1042 ScDocument* pDoc = rDocShell.GetDocument(); in SetCellText() local
1050 pExtRefGuard.reset(new ScExternalRefManager::ApiGuard(pDoc)); in SetCellText()
1062 pNewCell = ScBaseCell::CreateTextCell( rText, pDoc ); // immer Text in SetCellText()
1098 ScDocument* pDoc = rDocShell.GetDocument(); in SetNoteText() local
1099 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in SetNoteText()
1110 …if( ScPostIt* pNote = (aNewText.Len() > 0) ? pDoc->GetOrCreateNote( rPos ) : pDoc->GetNote( rPos )… in SetNoteText()
1115 if (pDoc->IsStreamValid(rPos.Tab())) in SetNoteText()
1116 pDoc->SetStreamValid(rPos.Tab(), sal_False); in SetNoteText()
1191 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyAttributes() local
1192 if ( bRecord && !pDoc->IsUndoEnabled() ) in ApplyAttributes()
1195 sal_Bool bImportingXML = pDoc->IsImportingXML(); in ApplyAttributes()
1199 if ( !bImportingXML && !pDoc->IsSelectionEditable( rMark, &bOnlyNotBecauseOfMatrix ) in ApplyAttributes()
1221 pUndoDoc->InitUndo( pDoc, aMultiRange.aStart.Tab(), aMultiRange.aEnd.Tab() ); in ApplyAttributes()
1222 pDoc->CopyToDocument( aMultiRange, IDF_ATTRIB, bMulti, pUndoDoc, &rMark ); in ApplyAttributes()
1236 pDoc->ApplySelectionPattern( rPattern, rMark ); in ApplyAttributes()
1254 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyStyle() local
1255 if ( bRecord && !pDoc->IsUndoEnabled() ) in ApplyStyle()
1258 sal_Bool bImportingXML = pDoc->IsImportingXML(); in ApplyStyle()
1262 if ( !bImportingXML && !pDoc->IsSelectionEditable( rMark, &bOnlyNotBecauseOfMatrix ) in ApplyStyle()
1270 ScStyleSheet* pStyleSheet = (ScStyleSheet*) pDoc->GetStyleSheetPool()->Find( in ApplyStyle()
1288 SCTAB nTabCount = pDoc->GetTableCount(); in ApplyStyle()
1289 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); in ApplyStyle()
1297 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, bMulti, pUndoDoc, &rMark ); in ApplyStyle()
1308 pDoc->ApplySelectionStyle( (ScStyleSheet&)*pStyleSheet, rMark ); in ApplyStyle()
1344 ScDocument* pDoc = rDocShell.GetDocument(); in InsertCells() local
1345 SCTAB nTabCount = pDoc->GetTableCount(); in InsertCells()
1363 if (bRecord && !pDoc->IsUndoEnabled()) in InsertCells()
1374 if( !pDoc->IsScenario(i) ) in InsertCells()
1390 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in InsertCells()
1406 if( rRange.aStart == rRange.aEnd && pDoc->HasAttrib(rRange, HASATTR_MERGED) ) in InsertCells()
1408 pDoc->ExtendMerge( aExtendMergeRange ); in InsertCells()
1409 pDoc->ExtendOverlapped( aExtendMergeRange ); in InsertCells()
1435 …ScEditableTester aTester( pDoc, nMergeTestStartX, nMergeTestStartY, nEditTestEndX, nEditTestEndY, … in InsertCells()
1450 pRefUndoDoc->InitUndo( pDoc, 0, nTabCount-1, sal_False, sal_False ); in InsertCells()
1454 pUndoData = new ScRefUndoData( pDoc ); in InsertCells()
1456 pDoc->BeginDrawUndo(); in InsertCells()
1471 …if( pDoc->HasAttrib( nMergeTestStartX, nMergeTestStartY, i, nMergeTestEndX, nMergeTestEndY, i, HAS… in InsertCells()
1481 pDoc->ExtendMerge( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, i ); in InsertCells()
1482 pDoc->ExtendOverlapped( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, i ); in InsertCells()
1497 …ScDocAttrIterator aTestIter( pDoc, i, nMergeTestStartX, nMergeTestStartY, nMergeTestEndX, nMergeTe… in InsertCells()
1510 pDoc->ExtendOverlapped(aRange); in InsertCells()
1511 pDoc->ExtendMerge(aRange, sal_True, sal_True); in InsertCells()
1518 pDoc->ExtendOverlapped( aTestRange ); in InsertCells()
1519 pDoc->ExtendMerge( aTestRange, sal_True, sal_True); in InsertCells()
1576 if( pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) in InsertCells()
1597 …bSuccess = pDoc->InsertRow( nStartCol, 0, nEndCol, MAXTAB, nStartRow, static_cast<SCSIZE>(nEndRow-… in InsertCells()
1601 …bSuccess = pDoc->InsertRow( 0, 0, MAXCOL, MAXTAB, nStartRow, static_cast<SCSIZE>(nEndRow-nStartRow… in InsertCells()
1608 …bSuccess = pDoc->InsertCol( nStartRow, 0, nEndRow, MAXTAB, nStartCol, static_cast<SCSIZE>(nEndCol-… in InsertCells()
1612 …bSuccess = pDoc->InsertCol( 0, 0, MAXROW, MAXTAB, nStartCol, static_cast<SCSIZE>(nEndCol-nStartCol… in InsertCells()
1640 for( SCTAB j=i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in InsertCells()
1664 if( !pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) in InsertCells()
1692pDoc->ExtendMerge( nMergeTestStartX, nMergeTestStartY, nMergeTestEndX, nMergeTestEndY, i, sal_True… in InsertCells()
1694pDoc->RefreshAutoFilter( nMergeTestStartX, nMergeTestStartY, nMergeTestEndX, nMergeTestEndY, i ); in InsertCells()
1697 pDoc->UpdatePageBreaks( i ); in InsertCells()
1704 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in InsertCells()
1772 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteCells() local
1773 SCTAB nTabCount = pDoc->GetTableCount(); in DeleteCells()
1781 if (bRecord && !pDoc->IsUndoEnabled()) in DeleteCells()
1792 if( !pDoc->IsScenario(i) ) in DeleteCells()
1808 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in DeleteCells()
1821 if( rRange.aStart == rRange.aEnd && pDoc->HasAttrib(rRange, HASATTR_MERGED) ) in DeleteCells()
1823 pDoc->ExtendMerge( aExtendMergeRange ); in DeleteCells()
1824 pDoc->ExtendOverlapped( aExtendMergeRange ); in DeleteCells()
1849 ScEditableTester aTester( pDoc, nUndoStartX, nUndoStartY, nEditTestEndX, nEditTestEndY, aMark ); in DeleteCells()
1877 …if ( pDoc->HasAttrib( nUndoStartX, nUndoStartY, i, nMergeTestEndX, nMergeTestEndY, i, HASATTR_MERG… in DeleteCells()
1884 pDoc->ExtendMerge( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, i ); in DeleteCells()
1885 pDoc->ExtendOverlapped( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, i ); in DeleteCells()
1901 … ScDocAttrIterator aTestIter( pDoc, i, nUndoStartX, nUndoStartY, nMergeTestEndX, nMergeTestEndY ); in DeleteCells()
1914 pDoc->ExtendOverlapped( aRange ); in DeleteCells()
1915 pDoc->ExtendMerge( aRange, sal_True, sal_True ); in DeleteCells()
1922 pDoc->ExtendOverlapped( aTestRange ); in DeleteCells()
1923 pDoc->ExtendMerge( aTestRange, sal_True, sal_True); in DeleteCells()
1985 if( pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) in DeleteCells()
2018 pUndoDoc->InitUndo( pDoc, 0, nTabCount-1, (eCmd==DEL_DELCOLS), (eCmd==DEL_DELROWS) ); in DeleteCells()
2025 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in DeleteCells()
2028pDoc->CopyToDocument( nUndoStartX, nUndoStartY, i, nUndoEndX, nUndoEndY, i+nScenarioCount, in DeleteCells()
2034 pRefUndoDoc->InitUndo( pDoc, 0, nTabCount-1, sal_False, sal_False ); in DeleteCells()
2036 pUndoData = new ScRefUndoData( pDoc ); in DeleteCells()
2038 pDoc->BeginDrawUndo(); in DeleteCells()
2052pDoc->DeleteRow( nStartCol, 0, nEndCol, MAXTAB, nStartRow, static_cast<SCSIZE>(nEndRow-nStartRow+1… in DeleteCells()
2056pDoc->DeleteRow( 0, 0, MAXCOL, MAXTAB, nStartRow, static_cast<SCSIZE>(nEndRow-nStartRow+1), pRefUn… in DeleteCells()
2063pDoc->DeleteCol( nStartRow, 0, nEndRow, MAXTAB, nStartCol, static_cast<SCSIZE>(nEndCol-nStartCol+1… in DeleteCells()
2067pDoc->DeleteCol( 0, 0, MAXROW, MAXTAB, nStartCol, static_cast<SCSIZE>(nEndCol-nStartCol+1), pRefUn… in DeleteCells()
2102 for( SCTAB j=i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in DeleteCells()
2163 if( !pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) in DeleteCells()
2182 ScPatternAttr aPattern( pDoc->GetPool() ); in DeleteCells()
2185pDoc->ApplyPatternArea( nExtendStartCol, nExtendStartRow, nMergeTestEndX, nMergeTestEndY, aMark, a… in DeleteCells()
2193 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in DeleteCells()
2197 pDoc->ExtendMerge( aMergedRange, sal_True ); in DeleteCells()
2207 pDoc->UpdatePageBreaks( i ); in DeleteCells()
2213 for( SCTAB j = i+1; j<nTabCount && pDoc->IsScenario(j); j++ ) in DeleteCells()
2259 ScDocument* pDoc = rDocShell.GetDocument(); in MoveBlock() local
2260 if (bRecord && !pDoc->IsUndoEnabled()) in MoveBlock()
2263 SCTAB nTabCount = pDoc->GetTableCount(); in MoveBlock()
2264 if ( nDestTab == nStartTab && !pDoc->IsScenario(nEndTab) ) in MoveBlock()
2265 while ( nEndTab+1 < nTabCount && pDoc->IsScenario(nEndTab+1) ) in MoveBlock()
2283 if ( pDoc->HasOLEObjectsInArea( rSource ) ) in MoveBlock()
2291 pDoc->CopyToClip(aClipParam, pClipDoc, &aSourceMark, false, bScenariosAdded, true); in MoveBlock()
2302 if (pDoc->ExtendMerge( nStartCol, nStartRow, nTmpEndCol, nTmpEndRow, nTab )) in MoveBlock()
2339 aTester.TestBlock( pDoc, nTab, nDestCol,nDestRow, nUndoEndCol,nUndoEndRow ); in MoveBlock()
2342 aTester.TestBlock( pDoc, nTab, nStartCol,nStartRow, nEndCol,nEndRow ); in MoveBlock()
2355 if (pDoc->HasAttrib( nDestCol,nDestRow,nDestTab, nUndoEndCol,nUndoEndRow,nDestEndTab, in MoveBlock()
2385 pUndoDoc->InitUndo( pDoc, nStartTab, nEndTab, bWholeCols, bWholeRows ); in MoveBlock()
2389 pDoc->CopyToDocument( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab, in MoveBlock()
2392 pRefUndoDoc->InitUndo( pDoc, 0, nTabCount-1, sal_False, sal_False ); in MoveBlock()
2397 pDoc->CopyToDocument( nDestCol, nDestRow, nDestTab, in MoveBlock()
2401 pUndoData = new ScRefUndoData( pDoc ); in MoveBlock()
2403 pDoc->BeginDrawUndo(); in MoveBlock()
2412 pDoc->DeleteAreaTab( nStartCol,nStartRow, nOldEndCol,nOldEndRow, nTab, IDF_ALL ); in MoveBlock()
2415 pDoc->DeleteObjectsInArea( nStartCol,nStartRow, nOldEndCol,nOldEndRow, aDelMark ); in MoveBlock()
2420 if (pDoc->HasAttrib( nDestCol,nDestRow,nDestTab, in MoveBlock()
2424 pDoc->CopyFromClip( rSource, aSourceMark, IDF_ALL, pRefUndoDoc, pClipDoc ); in MoveBlock()
2429 pDoc->ExtendMerge( nStartCol, nStartRow, nTmpEndCol, nTmpEndRow, nTab, sal_True ); in MoveBlock()
2458 pDoc->CopyFromClip( aPasteDest, aDestMark, IDF_ALL & ~(IDF_NOTE | IDF_OBJECTS), in MoveBlock()
2478 pDoc->CopyFromClip( aPasteDest, aDestMark, IDF_NOTE | IDF_ADDNOTES | IDF_OBJECTS, in MoveBlock()
2509 pDoc->ExtendMerge( nDestCol, nDestRow, nTmpEndCol, nTmpEndRow, nTab, sal_True ); in MoveBlock()
2516 pDoc->RefreshAutoFilter( nStartCol, nStartRow, nEndCol, nEndRow, nTab ); in MoveBlock()
2694 ScDocument* pDoc = rDocShell.GetDocument(); in InsertTable() local
2703 bInsertDocModule = pDoc ? pDoc->IsInVBAMode() : false; in InsertTable()
2705 if ( bInsertDocModule || ( bRecord && !pDoc->IsUndoEnabled() ) ) in InsertTable()
2709 pDoc->BeginDrawUndo(); // InsertTab erzeugt ein SdrUndoNewPage in InsertTable()
2711 SCTAB nTabCount = pDoc->GetTableCount(); in InsertTable()
2716 if (pDoc->InsertTab( nTab, rName )) in InsertTable()
2727 VBA_InsertModule( *pDoc, nTab, sCodeName, sSource ); in InsertTable()
2749 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteTable() local
2750 sal_Bool bVbaEnabled = pDoc ? pDoc->IsInVBAMode() : false; in DeleteTable()
2751 if (bRecord && !pDoc->IsUndoEnabled()) in DeleteTable()
2755 sal_Bool bWasLinked = pDoc->IsLinked(nTab); in DeleteTable()
2761 SCTAB nCount = pDoc->GetTableCount(); in DeleteTable()
2763 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_True ); // nur nTab mit Flags in DeleteTable()
2766 pDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,sal_False, pUndoDoc ); in DeleteTable()
2768 pDoc->GetName( nTab, aOldName ); in DeleteTable()
2771 pUndoDoc->SetLink( nTab, pDoc->GetLinkMode(nTab), pDoc->GetLinkDoc(nTab), in DeleteTable()
2772 pDoc->GetLinkFlt(nTab), pDoc->GetLinkOpt(nTab), in DeleteTable()
2773 pDoc->GetLinkTab(nTab), in DeleteTable()
2774 pDoc->GetLinkRefreshDelay(nTab) ); in DeleteTable()
2776 if ( pDoc->IsScenario(nTab) ) in DeleteTable()
2782 pDoc->GetScenarioData( nTab, aComment, aColor, nScenFlags ); in DeleteTable()
2784 sal_Bool bActive = pDoc->IsActiveScenario( nTab ); in DeleteTable()
2787 pUndoDoc->SetVisible( nTab, pDoc->IsVisible( nTab ) ); in DeleteTable()
2788 pUndoDoc->SetTabBgColor( nTab, pDoc->GetTabBgColor(nTab) ); in DeleteTable()
2789 pUndoDoc->SetSheetEvents( nTab, pDoc->GetSheetEvents( nTab ) ); in DeleteTable()
2792 pDoc->BeginDrawUndo(); // DeleteTab erzeugt ein SdrUndoDelPage in DeleteTable()
2794 pUndoData = new ScRefUndoData( pDoc ); in DeleteTable()
2798 sal_Bool bHasCodeName = pDoc->GetCodeName( nTab, sCodeName ); in DeleteTable()
2799 if (pDoc->DeleteTab( nTab, pUndoDoc )) in DeleteTable()
2846 ScDocument* pDoc = rDocShell.GetDocument(); in SetTableVisible() local
2847 sal_Bool bUndo(pDoc->IsUndoEnabled()); in SetTableVisible()
2848 if ( pDoc->IsVisible( nTab ) == bVisible ) in SetTableVisible()
2851 if ( !pDoc->IsDocEditable() ) in SetTableVisible()
2860 if ( !bVisible && !pDoc->IsImportingXML() ) // #i57869# allow hiding in any order for loading in SetTableVisible()
2865 SCTAB nCount = pDoc->GetTableCount(); in SetTableVisible()
2867 if (pDoc->IsVisible(i)) in SetTableVisible()
2878 pDoc->SetVisible( nTab, bVisible ); in SetTableVisible()
2895 ScDocument* pDoc = rDocShell.GetDocument(); in SetLayoutRTL() local
2896 sal_Bool bUndo(pDoc->IsUndoEnabled()); in SetLayoutRTL()
2897 if ( pDoc->IsLayoutRTL( nTab ) == bRTL ) in SetLayoutRTL()
2904 pDoc->SetLayoutRTL( nTab, bRTL ); in SetLayoutRTL()
2963 ScDocument* pDoc = rDocShell.GetDocument(); in RenameTable() local
2964 if (bRecord && !pDoc->IsUndoEnabled()) in RenameTable()
2966 if ( !pDoc->IsDocEditable() ) in RenameTable()
2977 pDoc->GetName(nTab, sOldName); in RenameTable()
2978 if (pDoc->RenameTab( nTab, rName )) in RenameTable()
2997 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor() local
2998 if (bRecord && !pDoc->IsUndoEnabled()) in SetTabBgColor()
3000 if ( !pDoc->IsDocEditable() || pDoc->IsTabProtected(nTab) ) in SetTabBgColor()
3008 aOldTabBgColor = pDoc->GetTabBgColor(nTab); in SetTabBgColor()
3011 pDoc->SetTabBgColor(nTab, rColor); in SetTabBgColor()
3012 if ( pDoc->GetTabBgColor(nTab) == rColor) in SetTabBgColor()
3034 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor() local
3035 if (bRecord && !pDoc->IsUndoEnabled()) in SetTabBgColor()
3038 if ( !pDoc->IsDocEditable() ) in SetTabBgColor()
3054 if ( !pDoc->IsTabProtected(nTab) ) in SetTabBgColor()
3057 rInfo.maOldTabBgColor = pDoc->GetTabBgColor(nTab); in SetTabBgColor()
3058 pDoc->SetTabBgColor(nTab, aNewTabBgColor); in SetTabBgColor()
3059 if ( pDoc->GetTabBgColor(nTab) != aNewTabBgColor) in SetTabBgColor()
3108 ScDocument* pDoc = rDocShell.GetDocument(); in lcl_GetOptimalColWidth() local
3110 nTwips = pDoc->GetOptimalColWidth( nCol, nTab, pDev, nPPTX, nPPTY, aOne, aOne, in lcl_GetOptimalColWidth()
3125 ScDocument* pDoc = rDocShell.GetDocument(); in SetWidthOrHeight() local
3126 if ( bRecord && !pDoc->IsUndoEnabled() ) in SetWidthOrHeight()
3130 if ( !pDoc->IsChangeReadOnlyEnabled() && !rDocShell.IsEditable() ) in SetWidthOrHeight()
3153 pDoc->BeginDrawUndo(); // Drawing Updates in SetWidthOrHeight()
3158 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_False ); in SetWidthOrHeight()
3159pDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, static_cast<SCCOL>(nEnd), MAXROW, nTab,… in SetWidthOrHeight()
3163 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in SetWidthOrHeight()
3164pDoc->CopyToDocument( 0, static_cast<SCROW>(nStart), nTab, MAXCOL, static_cast<SCROW>(nEnd), nTab,… in SetWidthOrHeight()
3170 ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab ); in SetWidthOrHeight()
3178 pDoc->IncSizeRecalcLevel( nTab ); // nicht fuer jede Spalte einzeln in SetWidthOrHeight()
3195 sal_uInt8 nOld = pDoc->GetRowFlags(nRow,nTab); in SetWidthOrHeight()
3197 bool bHidden = pDoc->RowHidden(nRow, nTab, nLastRow); in SetWidthOrHeight()
3199 pDoc->SetRowFlags( nRow, nTab, nOld & ~CR_MANUALSIZE ); in SetWidthOrHeight()
3205 pDoc->SetOptimalHeight( nStartNo, nEndNo, nTab, 0, aProv.GetDevice(), in SetWidthOrHeight()
3209 pDoc->ShowRows( nStartNo, nEndNo, nTab, sal_True ); in SetWidthOrHeight()
3218 pDoc->SetRowHeightRange( nStartNo, nEndNo, nTab, nSizeTwips ); in SetWidthOrHeight()
3219 pDoc->SetManualHeight( nStartNo, nEndNo, nTab, sal_True ); // height was set manually in SetWidthOrHeight()
3222 pDoc->ShowRows( nStartNo, nEndNo, nTab, nSizeTwips != 0 ); in SetWidthOrHeight()
3226 pDoc->ShowRows( nStartNo, nEndNo, nTab, sal_True ); in SetWidthOrHeight()
3234 if ( eMode != SC_SIZE_VISOPT || !pDoc->ColHidden(nCol, nTab, nLastCol) ) in SetWidthOrHeight()
3242 pDoc->SetColWidth( nCol, nTab, nThisSize ); in SetWidthOrHeight()
3245 pDoc->ShowCol( nCol, nTab, bShow ); in SetWidthOrHeight()
3255 bOutline = bOutline || pDoc->UpdateOutlineCol( in SetWidthOrHeight()
3259 bOutline = bOutline || pDoc->UpdateOutlineRow( in SetWidthOrHeight()
3264 pDoc->DecSizeRecalcLevel( nTab ); // nicht fuer jede Spalte einzeln in SetWidthOrHeight()
3280 pDoc->UpdatePageBreaks( nTab ); in SetWidthOrHeight()
3294 ScDocument* pDoc = rDocShell.GetDocument(); in InsertPageBreak() local
3295 if (bRecord && !pDoc->IsUndoEnabled()) in InsertPageBreak()
3306 pDoc->HasColBreak(static_cast<SCCOL>(nPos), nTab) : in InsertPageBreak()
3307 pDoc->HasRowBreak(static_cast<SCROW>(nPos), nTab); in InsertPageBreak()
3316 pDoc->SetColBreak(static_cast<SCCOL>(nPos), nTab, false, true); in InsertPageBreak()
3318 pDoc->SetRowBreak(static_cast<SCROW>(nPos), nTab, false, true); in InsertPageBreak()
3320 pDoc->InvalidatePageBreaks(nTab); in InsertPageBreak()
3321 pDoc->UpdatePageBreaks( nTab ); in InsertPageBreak()
3323 if (pDoc->IsStreamValid(nTab)) in InsertPageBreak()
3324 pDoc->SetStreamValid(nTab, sal_False); in InsertPageBreak()
3358 ScDocument* pDoc = rDocShell.GetDocument(); in RemovePageBreak() local
3359 if (bRecord && !pDoc->IsUndoEnabled()) in RemovePageBreak()
3369 nBreak = pDoc->HasColBreak(static_cast<SCCOL>(nPos), nTab); in RemovePageBreak()
3371 nBreak = pDoc->HasRowBreak(static_cast<SCROW>(nPos), nTab); in RemovePageBreak()
3381 pDoc->RemoveColBreak(static_cast<SCCOL>(nPos), nTab, false, true); in RemovePageBreak()
3383 pDoc->RemoveRowBreak(static_cast<SCROW>(nPos), nTab, false, true); in RemovePageBreak()
3385 pDoc->UpdatePageBreaks( nTab ); in RemovePageBreak()
3387 if (pDoc->IsStreamValid(nTab)) in RemovePageBreak()
3388 pDoc->SetStreamValid(nTab, sal_False); in RemovePageBreak()
3421 ScDocument* pDoc = rDocShell.GetDocument(); in ProtectSheet() local
3423 pDoc->SetTabProtection(nTab, &rProtect); in ProtectSheet()
3424 if (pDoc->IsUndoEnabled()) in ProtectSheet()
3426 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in ProtectSheet()
3446 ScDocument* pDoc = rDocShell.GetDocument(); in Protect() local
3453 pDoc->SetDocProtection(&aProtection); in Protect()
3454 if (pDoc->IsUndoEnabled()) in Protect()
3456 ScDocProtection* pProtect = pDoc->GetDocProtection(); in Protect()
3475 pDoc->SetTabProtection(nTab, &aProtection); in Protect()
3476 if (pDoc->IsUndoEnabled()) in Protect()
3478 ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); in Protect()
3500 ScDocument* pDoc = rDocShell.GetDocument(); in Unprotect() local
3506 ScDocProtection* pDocProtect = pDoc->GetDocProtection(); in Unprotect()
3524 pDoc->SetDocProtection(NULL); in Unprotect()
3525 if (pDoc->IsUndoEnabled()) in Unprotect()
3537 ScTableProtection* pTabProtect = pDoc->GetTabProtection(nTab); in Unprotect()
3554 pDoc->SetTabProtection(nTab, NULL); in Unprotect()
3555 if (pDoc->IsUndoEnabled()) in Unprotect()
3577 ScDocument* pDoc = rDocShell.GetDocument(); in ClearItems() local
3578 sal_Bool bUndo (pDoc->IsUndoEnabled()); in ClearItems()
3579 ScEditableTester aTester( pDoc, rMark ); in ClearItems()
3604 pUndoDoc->InitUndo( pDoc, nStartTab, nEndTab ); in ClearItems()
3605 pDoc->CopyToDocument( aMarkRange, IDF_ATTRIB, sal_True, pUndoDoc, (ScMarkData*)&aMultiMark ); in ClearItems()
3611 pDoc->ClearSelectionItems( pWhich, aMultiMark ); in ClearItems()
3625 ScDocument* pDoc = rDocShell.GetDocument(); in ChangeIndent() local
3626 sal_Bool bUndo(pDoc->IsUndoEnabled()); in ChangeIndent()
3627 ScEditableTester aTester( pDoc, rMark ); in ChangeIndent()
3642 SCTAB nTabCount = pDoc->GetTableCount(); in ChangeIndent()
3645 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); in ChangeIndent()
3653 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, sal_True, pUndoDoc, (ScMarkData*)&rMark ); in ChangeIndent()
3659 pDoc->ChangeSelectionIndent( bIncrement, rMark ); in ChangeIndent()
3693 ScDocument* pDoc = rDocShell.GetDocument(); in AutoFormat() local
3701 if (bRecord && !pDoc->IsUndoEnabled()) in AutoFormat()
3713 ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); in AutoFormat()
3720 SCTAB nTabCount = pDoc->GetTableCount(); in AutoFormat()
3725 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab, bSize, bSize ); in AutoFormat()
3733 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, sal_False, pUndoDoc, &aMark ); in AutoFormat()
3736 pDoc->CopyToDocument( nStartCol,0,0, nEndCol,MAXROW,nTabCount-1, in AutoFormat()
3738 pDoc->CopyToDocument( 0,nStartRow,0, MAXCOL,nEndRow,nTabCount-1, in AutoFormat()
3741 pDoc->BeginDrawUndo(); in AutoFormat()
3744 pDoc->AutoFormat( nStartCol, nStartRow, nEndCol, nEndRow, nFormatNo, aMark ); in AutoFormat()
3806 ScDocument* pDoc = rDocShell.GetDocument(); in EnterMatrix() local
3814 sal_Bool bUndo(pDoc->IsUndoEnabled()); in EnterMatrix()
3825 ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); in EnterMatrix()
3836 pUndoDoc->InitUndo( pDoc, nStartTab, nEndTab ); in EnterMatrix()
3837 pDoc->CopyToDocument( rRange, IDF_ALL & ~IDF_NOTE, sal_False, pUndoDoc ); in EnterMatrix()
3843 pDoc->InsertMatrixFormula( nStartCol, nStartRow, nEndCol, nEndRow, in EnterMatrix()
3846 else if ( pDoc->IsImportingXML() ) in EnterMatrix()
3849 pDoc->InsertMatrixFormula( nStartCol, nStartRow, nEndCol, nEndRow, in EnterMatrix()
3852 pDoc->IncXMLImportedFormulaCount( rString.Len() ); in EnterMatrix()
3856 ScCompiler aComp( pDoc, rRange.aStart); in EnterMatrix()
3859 pDoc->InsertMatrixFormula( nStartCol, nStartRow, nEndCol, nEndRow, in EnterMatrix()
3864 pDoc->InsertMatrixFormula( nStartCol, nStartRow, nEndCol, nEndRow, in EnterMatrix()
3895 ScDocument* pDoc = rDocShell.GetDocument(); in TabOp() local
3903 if (bRecord && !pDoc->IsUndoEnabled()) in TabOp()
3915 ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); in TabOp()
3919 pDoc->SetDirty( rRange ); in TabOp()
3924 pUndoDoc->InitUndo( pDoc, nStartTab, nEndTab ); in TabOp()
3925 pDoc->CopyToDocument( rRange, IDF_ALL & ~IDF_NOTE, sal_False, pUndoDoc ); in TabOp()
3937 pDoc->InsertTableOp(rParam, nStartCol, nStartRow, nEndCol, nEndRow, aMark); in TabOp()
3968 ScDocument* pDoc = rDocShell.GetDocument(); in FillSimple() local
3976 if (bRecord && !pDoc->IsUndoEnabled()) in FillSimple()
3988 ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); in FillSimple()
4020 SCTAB nTabCount = pDoc->GetTableCount(); in FillSimple()
4024 pUndoDoc->InitUndo( pDoc, nDestStartTab, nDestStartTab ); in FillSimple()
4032 pDoc->CopyToDocument( aCopyRange, IDF_AUTOFILL, sal_False, pUndoDoc, &aMark ); in FillSimple()
4035 pDoc->Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(), in FillSimple()
4045 pDoc->GetRangeName()->GetSharedMaxIndex()+1 ) ); in FillSimple()
4068 ScDocument* pDoc = rDocShell.GetDocument(); in FillSeries() local
4076 if (bRecord && !pDoc->IsUndoEnabled()) in FillSeries()
4088 ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); in FillSeries()
4096 SCSIZE nCount = pDoc->GetEmptyLinesInBlock( in FillSeries()
4127 SCTAB nTabCount = pDoc->GetTableCount(); in FillSeries()
4131 pUndoDoc->InitUndo( pDoc, nDestStartTab, nDestStartTab ); in FillSeries()
4136 pDoc->CopyToDocument( in FillSeries()
4150 pDoc->SetValue( nValX, nValY, nTab, fStart ); in FillSeries()
4152 pDoc->Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(), in FillSeries()
4167 pDoc->GetRangeName()->GetSharedMaxIndex()+1 ) ); in FillSeries()
4183 ScDocument* pDoc = rDocShell.GetDocument(); in FillAuto() local
4191 if (bRecord && !pDoc->IsUndoEnabled()) in FillAuto()
4244 ScEditableTester aTester( pDoc, aDestArea ); in FillAuto()
4252 if ( pDoc->HasSelectedBlockMatrixFragment( nStartCol, nStartRow, in FillAuto()
4265 SCTAB nTabCount = pDoc->GetTableCount(); in FillAuto()
4269 pUndoDoc->InitUndo( pDoc, nDestStartTab, nDestStartTab ); in FillAuto()
4275 pDoc->CopyToDocument( in FillAuto()
4281 pDoc->Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(), in FillAuto()
4292 pDoc->GetRangeName()->GetSharedMaxIndex()+1 ) ); in FillAuto()
4309 ScDocument* pDoc = rDocShell.GetDocument(); in MergeCells() local
4316 if (bRecord && !pDoc->IsUndoEnabled()) in MergeCells()
4319 ScEditableTester aTester( pDoc, nTab, nStartCol, nStartRow, nEndCol, nEndRow ); in MergeCells()
4333 if ( pDoc->HasAttrib( nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab, in MergeCells()
4343 ( !pDoc->IsBlockEmpty( nTab, nStartCol,nStartRow+1, nStartCol,nEndRow, true ) || in MergeCells()
4344 !pDoc->IsBlockEmpty( nTab, nStartCol+1,nStartRow, nEndCol,nEndRow, true ) ); in MergeCells()
4353 …bHasNotes = ((aPos.Col() != nStartCol) || (aPos.Row() != nStartRow)) && (pDoc->GetNote( aPos ) != … in MergeCells()
4358 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in MergeCells()
4360 pDoc->CopyToDocument( nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab, in MergeCells()
4364 pDoc->BeginDrawUndo(); in MergeCells()
4368 pDoc->DoMergeContents( nTab, nStartCol,nStartRow, nEndCol,nEndRow ); in MergeCells()
4369 pDoc->DoMerge( nTab, nStartCol,nStartRow, nEndCol,nEndRow ); in MergeCells()
4373 SdrUndoGroup* pDrawUndo = pDoc->GetDrawLayer() ? pDoc->GetDrawLayer()->GetCalcUndo() : 0; in MergeCells()
4384 pDoc->SetDirty( rRange ); in MergeCells()
4402 ScDocument* pDoc = rDocShell.GetDocument(); in UnmergeCells() local
4405 if (bRecord && !pDoc->IsUndoEnabled()) in UnmergeCells()
4408 if ( pDoc->HasAttrib( rRange, HASATTR_MERGED ) ) in UnmergeCells()
4411 pDoc->ExtendMerge( aExtended ); in UnmergeCells()
4413 pDoc->ExtendOverlapped( aRefresh ); in UnmergeCells()
4418 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in UnmergeCells()
4419 pDoc->CopyToDocument( aExtended, IDF_ATTRIB, sal_False, pUndoDoc ); in UnmergeCells()
4424 const SfxPoolItem& rDefAttr = pDoc->GetPool()->GetDefaultItem( ATTR_MERGE ); in UnmergeCells()
4425 ScPatternAttr aPattern( pDoc->GetPool() ); in UnmergeCells()
4427 pDoc->ApplyPatternAreaTab( rRange.aStart.Col(), rRange.aStart.Row(), in UnmergeCells()
4431 pDoc->RemoveFlagsTab( aExtended.aStart.Col(), aExtended.aStart.Row(), in UnmergeCells()
4435 pDoc->ExtendMerge( aRefresh, sal_True, sal_False ); in UnmergeCells()
4459 ScDocument* pDoc = rDocShell.GetDocument(); in SetNewRangeNames() local
4460 sal_Bool bUndo(pDoc->IsUndoEnabled()); in SetNewRangeNames()
4464 ScRangeName* pOld = pDoc->GetRangeName(); in SetNewRangeNames()
4474 sal_Bool bCompile = ( !pDoc->IsImportingXML() && pDoc->GetNamedRangesLockCount() == 0 ); in SetNewRangeNames()
4477 pDoc->CompileNameFormula( sal_True ); // CreateFormulaString in SetNewRangeNames()
4478 pDoc->SetRangeName( pNewRanges ); // takes ownership in SetNewRangeNames()
4480 pDoc->CompileNameFormula( sal_False ); // CompileFormulaString in SetNewRangeNames()
4502 ScDocument* pDoc = rDocShell.GetDocument(); in CreateOneName() local
4503 if (!pDoc->HasValueData( nPosX, nPosY, nTab )) in CreateOneName()
4506 pDoc->GetString( nPosX, nPosY, nTab, aName ); in CreateOneName()
4511 ScRange( nX1, nY1, nTab, nX2, nY2, nTab ).Format( aContent, SCR_ABS_3D, pDoc ); in CreateOneName()
4550 ScRangeData* pData = new ScRangeData( pDoc, aName, aContent, in CreateOneName()
4587 ScDocument* pDoc = rDocShell.GetDocument(); in CreateNames() local
4588 ScRangeName* pNames = pDoc->GetRangeName(); in CreateNames()
4655 ScDocument* pDoc = rDocShell.GetDocument(); in InsertNameList() local
4656 const sal_Bool bRecord = pDoc->IsUndoEnabled(); in InsertNameList()
4660 ScRangeName* pList = pDoc->GetRangeName(); in InsertNameList()
4678 ScEditableTester aTester( pDoc, nTab, nStartCol,nStartRow, nEndCol,nEndRow ); in InsertNameList()
4684 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in InsertNameList()
4685 pDoc->CopyToDocument( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab, in InsertNameList()
4688 pDoc->BeginDrawUndo(); // wegen Hoehenanpassung in InsertNameList()
4718 pDoc->PutCell( nStartCol,nOutRow,nTab, new ScStringCell( aName ) ); in InsertNameList()
4719 pDoc->PutCell( nEndCol ,nOutRow,nTab, new ScStringCell( aFormula ) ); in InsertNameList()
4728 pRedoDoc->InitUndo( pDoc, nTab, nTab ); in InsertNameList()
4729 pDoc->CopyToDocument( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab, in InsertNameList()
4754 ScDocument* pDoc = rDocShell.GetDocument(); in ResizeMatrix() local
4759 sal_Bool bUndo(pDoc->IsUndoEnabled()); in ResizeMatrix()
4764 pDoc->GetFormula( nStartCol, nStartRow, nTab, aFormula ); in ResizeMatrix()
4806 ScDocument* pDoc = rDocShell.GetDocument(); in InsertAreaLink() local
4807 sal_Bool bUndo (pDoc->IsUndoEnabled()); in InsertAreaLink()
4809 sfx2::LinkManager* pLinkManager = pDoc->GetLinkManager(); in InsertAreaLink()
4872 if (pDoc->IsExecuteLinkEnabled()) in InsertAreaLink()