Lines Matching refs:pDoc
239 ScDocument* pDoc = GetViewData()->GetDocument(); in CutToClip() local
242 const sal_Bool bRecord(pDoc->IsUndoEnabled()); // Undo/Redo in CutToClip()
257 pDoc->ExtendMerge( aRange, sal_True ); in CutToClip()
263 pUndoDoc->InitUndoSelected( pDoc, rMark ); in CutToClip()
267 aCopyRange.aEnd.SetTab(pDoc->GetTableCount()-1); in CutToClip()
268 …pDoc->CopyToDocument( aCopyRange, (IDF_ALL & ~IDF_OBJECTS) | IDF_NOCAPTIONS, sal_False, pUndoDoc ); in CutToClip()
269 pDoc->BeginDrawUndo(); in CutToClip()
278 pDoc->DeleteSelection( IDF_ALL, rMark ); in CutToClip()
280 pDoc->DeleteObjectsInSelection( rMark ); in CutToClip()
312 ScDocument* pDoc = GetViewData()->GetDocument(); in CopyToClip() local
316 if ( !pDoc->HasSelectedBlockMatrixFragment( in CopyToClip()
330 ScChangeTrack* pChangeTrack = pDoc->GetChangeTrack(); in CopyToClip()
337 sal_Bool bAnyOle = pDoc->HasOLEObjectsInArea( aRange, &rMark ); in CopyToClip()
343 aClipParam.setSourceDocID( pDoc->GetDocumentID() ); in CopyToClip()
344 pDoc->CopyToClip(aClipParam, pClipDoc, &rMark, false, false, bIncludeObjects); in CopyToClip()
346 if ( pDoc && pClipDoc ) in CopyToClip()
359 … ScChartHelper::FillProtectedChartRangesVector( rRangesVector, pDoc, pPage ); in CopyToClip()
369 ScGlobal::SetClipDocName( pDoc->GetDocumentShell()->GetTitle( SFX_TITLE_FULLNAME ) ); in CopyToClip()
433 if (pDoc->HasSelectedBlockMatrixFragment( in CopyToClip()
485 pDoc->CopyToClip(aClipParam, pDocClip.get(), &rMark, false, false, bIncludeObjects); in CopyToClip()
487 ScChangeTrack* pChangeTrack = pDoc->GetChangeTrack(); in CopyToClip()
534 ScDocument* pDoc = GetViewData()->GetDocument(); in CopyToTransferable() local
536 if ( !pDoc->HasSelectedBlockMatrixFragment( in CopyToTransferable()
543 sal_Bool bAnyOle = pDoc->HasOLEObjectsInArea( aRange, &rMark ); in CopyToTransferable()
547 pDoc->CopyToClip(aClipParam, pClipDoc, &rMark, false, false, true); in CopyToTransferable()
885 sal_Bool lcl_SelHasAttrib( ScDocument* pDoc, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, in lcl_SelHasAttrib() argument
888 SCTAB nTabCount = pDoc->GetTableCount(); in lcl_SelHasAttrib()
890 …if ( rTabSelection.GetTableSelect(nTab) && pDoc->HasAttrib( nCol1, nRow1, nTab, nCol2, nRow2, nTab… in lcl_SelHasAttrib()
920 bool lcl_checkDestRangeForOverwrite(const ScRange& rDestRange, const ScDocument* pDoc, const ScMark… in lcl_checkDestRangeForOverwrite() argument
923 SCTAB nTabCount = pDoc->GetTableCount(); in lcl_checkDestRangeForOverwrite()
929 bIsEmpty = pDoc->IsBlockEmpty(nTab, rDestRange.aStart.Col(), rDestRange.aStart.Row(), in lcl_checkDestRangeForOverwrite()
1030 ScDocument* pDoc = GetViewData()->GetDocument(); in PasteFromClip() local
1034 const sal_Bool bRecord(pDoc->IsUndoEnabled()); in PasteFromClip()
1055 if (ScViewUtil::HasFiltered( aMarkRange, pDoc)) in PasteFromClip()
1061 if (!ScViewUtil::FitToUnfilteredRows( aMarkRange, pDoc, nDestSizeY+1)) in PasteFromClip()
1076 ScViewUtil::UnmarkFiltered( aFilteredMark, pDoc); in PasteFromClip()
1137 ScViewUtil::UnmarkFiltered( aFilteredMark, pDoc ); in PasteFromClip()
1155 if (bMarkIsFiltered || ScViewUtil::HasFiltered( aMarkRange, pDoc)) in PasteFromClip()
1159 if (!ScViewUtil::FitToUnfilteredRows( aMarkRange, pDoc, nDestSizeY+1)) in PasteFromClip()
1169 ScViewUtil::UnmarkFiltered( aFilteredMark, pDoc); in PasteFromClip()
1219 …if (!lcl_checkDestRangeForOverwrite(aUserRange, pDoc, aFilteredMark, GetViewData()->GetDialogParen… in PasteFromClip()
1254 pDoc->ExtendMergeSel( nStartCol,nStartRow, nUndoEndCol,nUndoEndRow, aFilteredMark, sal_False ); in PasteFromClip()
1258 ScEditableTester aTester( pDoc, nStartTab, nStartCol,nStartRow, nUndoEndCol,nUndoEndRow ); in PasteFromClip()
1279 …if (lcl_SelHasAttrib( pDoc, nStartCol,nStartRow, nUndoEndCol,nUndoEndRow, aFilteredMark, HASATTR_O… in PasteFromClip()
1281 … ScDocAttrIterator aIter( pDoc, nStartTab, nStartCol, nStartRow, nUndoEndCol, nUndoEndRow ); in PasteFromClip()
1295 pDoc->ExtendOverlapped(aRange); in PasteFromClip()
1296 pDoc->ExtendMerge(aRange, sal_True, sal_True); in PasteFromClip()
1304 ScChangeTrack* pChangeTrack = pDoc->GetChangeTrack(); in PasteFromClip()
1320 pUndoDoc->InitUndoSelected( pDoc, aFilteredMark, bColInfo, bRowInfo ); in PasteFromClip()
1323 SCTAB nTabCount = pDoc->GetTableCount(); in PasteFromClip()
1324 pDoc->CopyToDocument( nStartCol, nStartRow, 0, nUndoEndCol, nUndoEndRow, nTabCount-1, in PasteFromClip()
1330 pRefUndoDoc->InitUndo( pDoc, 0, nTabCount-1, sal_False, sal_False ); in PasteFromClip()
1332 pUndoData = new ScRefUndoData( pDoc ); in PasteFromClip()
1361 pMixDoc->InitUndo( pDoc, nStartTab, nEndTab ); in PasteFromClip()
1362 pDoc->CopyToDocument( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab, in PasteFromClip()
1374 pDoc->BeginDrawUndo(); in PasteFromClip()
1380 pDoc->CopyFromClip( aUserRange, aFilteredMark, nNoObjFlags, in PasteFromClip()
1386 pDoc->UpdateTranspose( aUserRange.aStart, pOrigClipDoc, aFilteredMark, pRefUndoDoc ); in PasteFromClip()
1391 pDoc->CopyFromClip( aUserRange, aFilteredMark, nNoObjFlags, pRefUndoDoc, pClipDoc, in PasteFromClip()
1397 pDoc->CopyFromClip( aUserRange, aFilteredMark, nContFlags, pRefUndoDoc, pClipDoc ); in PasteFromClip()
1404 …pDoc->ExtendMergeSel( nStartCol, nStartRow, nEndCol, nEndRow, aFilteredMark, sal_True ); // Ref… in PasteFromClip()
1409 pDoc->MixDocument( aUserRange, nFunction, bSkipEmpty, pMixDoc ); in PasteFromClip()
1430 pDoc->CopyFromClip( aUserRange, aFilteredMark, IDF_OBJECTS, pRefUndoDoc, pClipDoc, in PasteFromClip()
1444 if (pDoc->RefreshAutoFilter( nClipStartX,nClipStartY, nClipStartX+nClipSizeX, in PasteFromClip()
1462 pRedoDoc->InitUndo( pDoc, nStartTab, nEndTab, bColInfo, bRowInfo ); in PasteFromClip()
1466 SCTAB nTabCount = pDoc->GetTableCount(); in PasteFromClip()
1468 pDoc->CopyUpdated( pRefUndoDoc, pRedoDoc ); in PasteFromClip()
1530 if ( pDoc && pPage && pModelObj ) in PasteFromClip()
1532 bool bSameDoc = ( rClipParam.getSourceDocID() == pDoc->GetDocumentID() ); in PasteFromClip()
1534 … ScChartHelper::CreateProtectedChartListenersAndNotify( pDoc, pPage, pModelObj, nStartTab, in PasteFromClip()
1548 ScDocument* pDoc = rViewData.GetDocument(); in PasteMultiRangesFromClip() local
1595 if (ScViewUtil::HasFiltered(aMarkedRange, pDoc)) in PasteMultiRangesFromClip()
1597 if (!ScViewUtil::FitToUnfilteredRows(aMarkedRange, pDoc, nRowSize)) in PasteMultiRangesFromClip()
1607 if (!lcl_checkDestRangeForOverwrite(aMarkedRange, pDoc, aMark, rViewData.GetDialogParent())) in PasteMultiRangesFromClip()
1617 if (!InsertCells(eMoveMode, pDoc->IsUndoEnabled(), true)) in PasteMultiRangesFromClip()
1622 if (pDoc->IsUndoEnabled()) in PasteMultiRangesFromClip()
1625 pUndoDoc->InitUndoSelected(pDoc, aMark, false, false); in PasteMultiRangesFromClip()
1626 pDoc->CopyToDocument(aMarkedRange, nUndoFlags, false, pUndoDoc.get(), &aMark, true); in PasteMultiRangesFromClip()
1635 pMixDoc->InitUndoSelected(pDoc, aMark, false, false); in PasteMultiRangesFromClip()
1636 pDoc->CopyToDocument(aMarkedRange, IDF_CONTENTS, false, pMixDoc.get(), &aMark, true); in PasteMultiRangesFromClip()
1646 if (pDoc->IsUndoEnabled()) in PasteMultiRangesFromClip()
1647 pDoc->BeginDrawUndo(); in PasteMultiRangesFromClip()
1651 pDoc->CopyMultiRangeFromClip(rCurPos, aMark, nNoObjFlags, pClipDoc, in PasteMultiRangesFromClip()
1655 pDoc->MixDocument(aMarkedRange, nFunction, bSkipEmpty, pMixDoc.get()); in PasteMultiRangesFromClip()
1662 pDoc->CopyMultiRangeFromClip(rCurPos, aMark, IDF_OBJECTS, pClipDoc, in PasteMultiRangesFromClip()
1670 if (pDoc->IsUndoEnabled()) in PasteMultiRangesFromClip()
1709 ScDocument* pDoc = pViewData->GetDocument(); in PostPasteFromClip() local
1719 SCTAB nTabCount = pDoc->GetTableCount(); in PostPasteFromClip()
1847 ScDocument* pDoc = GetViewData()->GetDocument(); in LinkBlock() local
1849 pDoc->CopyTabToClip( rSource.aStart.Col(), rSource.aStart.Row(), in LinkBlock()