Lines Matching refs:pDocShell
355 pDocShell( pDocSh ), in ScModelObj()
361 if ( pDocShell ) in ScModelObj()
363 pDocShell->GetDocument()->AddUnoObject(*this); // SfxModel is derived from SfxListener in ScModelObj()
369 if (pDocShell) in ~ScModelObj()
370 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScModelObj()
382 if ( !xNumberAgg.is() && pDocShell ) in GetFormatter()
389 …util::XNumberFormatsSupplier> xFormatter(new SvNumberFormatsSupplierObj(pDocShell->GetDocument()->… in GetFormatter()
407 if (pDocShell) in GetDocument()
408 return pDocShell->GetDocument(); in GetDocument()
414 return pDocShell; in GetEmbeddedObject()
419 if (pDocShell) in UpdateAllRowHeights()
422 pDocShell->CalcOutputFactor(); in UpdateAllRowHeights()
423 pDocShell->UpdateAllRowHeights(pTabMark); in UpdateAllRowHeights()
429 if (pDocShell) in BeforeXMLLoading()
430 pDocShell->BeforeXMLLoading(); in BeforeXMLLoading()
435 if (pDocShell) in AfterXMLLoading()
436 pDocShell->AfterXMLLoading(bRet); in AfterXMLLoading()
441 if (pDocShell) in GetSheetSaveData()
442 return pDocShell->GetSheetSaveData(); in GetSheetSaveData()
448 if (pDocShell) in RepaintRange()
449 pDocShell->PostPaint( rRange, PAINT_GRID ); in RepaintRange()
575 pDocShell = NULL; // has become invalid in Notify()
595 if ( pDocShell ) in Notify()
597 ScDocument* pDoc = pDocShell->GetDocument(); in Notify()
624 if ( pNumFmt && pDocShell ) in Notify()
625 pNumFmt->SetNumberFormatter( pDocShell->GetDocument()->GetFormatTable() ); in Notify()
639 if (pDocShell) in getSheets()
640 return new ScTableSheetsObj(pDocShell); in getSheets()
650 if (pDocShell) in getStyleFamilies()
651 return new ScStyleFamiliesObj(pDocShell); in getStyleFamilies()
771 DBG_ASSERT( pDocShell, "FillRenderMarkData: DocShell must be set" ); in FillRenderMarkData()
824 if ( pSelObj && pSelObj->GetDocShell() == pDocShell ) in FillRenderMarkData()
872 if( pDocShell ) in FillRenderMarkData()
874 ScDocument* pDoc = pDocShell->GetDocument(); in FillRenderMarkData()
897 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
917 ScExtDocOptions* pExtOpt = pDocShell->GetDocument()->GetExtDocOptions(); in FillRenderMarkData()
926 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
954 if (!pDocShell) in getRendererCount()
970 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRendererCount()
1006 if (!pDocShell) in getRenderer()
1019 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRenderer()
1031 ScPrintFunc aDefaultFunc( pDocShell, pDocShell->GetPrinter(), nCurTab ); in getRenderer()
1062 ScPrintFunc aFunc( pDocShell, pDocShell->GetPrinter(), nTab, in getRenderer()
1111 if (!pDocShell) in render()
1123 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in render()
1135 ScDocument* pDoc = pDocShell->GetDocument(); in render()
1161 …ScPrintFunc aFunc( pDev, pDocShell, nTab, pPrintFuncCache->GetFirstAttr(nTab), nTotalPages, pSelRa… in render()
1313 ScDocument *doc = pDocShell->GetDocument(); in authorizeLinks()
1316 SfxMedium* pMedium = pDocShell->GetMedium(); in authorizeLinks()
1328 pDlgParent = pDocShell->GetDialogParent( pMedium ); in authorizeLinks()
1340 if (pDocShell) in getLinks()
1341 return new ScLinkTargetTypesObj(pDocShell); in getLinks()
1351 if (pDocShell) in isActionLocked()
1352 bLocked = ( pDocShell->GetLockCount() != 0 ); in isActionLocked()
1359 if (pDocShell) in addActionLock()
1360 pDocShell->LockDocument(); in addActionLock()
1366 if (pDocShell) in removeActionLock()
1367 pDocShell->UnlockDocument(); in removeActionLock()
1373 if (pDocShell) in setActionLocks()
1374 pDocShell->SetLockCount(nLock); in setActionLocks()
1381 if (pDocShell) in resetActionLocks()
1383 nRet = pDocShell->GetLockCount(); in resetActionLocks()
1384 pDocShell->SetLockCount(0); in resetActionLocks()
1393 if (pDocShell) in lockControllers()
1394 pDocShell->LockPaint(); in lockControllers()
1403 if (pDocShell) in unlockControllers()
1404 pDocShell->UnlockPaint(); in unlockControllers()
1413 if (pDocShell) in calculate()
1414 pDocShell->DoRecalc(sal_True); in calculate()
1424 if (pDocShell) in calculateAll()
1425 pDocShell->DoHardRecalc(sal_True); in calculateAll()
1435 if (pDocShell) in isAutomaticCalculationEnabled()
1436 return pDocShell->GetDocument()->GetAutoCalc(); in isAutomaticCalculationEnabled()
1446 if (pDocShell) in enableAutomaticCalculation()
1448 ScDocument* pDoc = pDocShell->GetDocument(); in enableAutomaticCalculation()
1452 pDocShell->SetDocumentModified(); in enableAutomaticCalculation()
1467 if ( pDocShell && !pDocShell->GetDocument()->IsDocProtected() ) in protect()
1471 ScDocFunc aFunc(*pDocShell); in protect()
1480 if (pDocShell) in unprotect()
1484 ScDocFunc aFunc(*pDocShell); in unprotect()
1494 if (pDocShell) in isProtected()
1495 return pDocShell->GetDocument()->IsDocProtected(); in isProtected()
1506 if (pDocShell) in getDrawPages()
1507 return new ScDrawPagesObj(pDocShell); in getDrawPages()
1519 if (pDocShell)
1521 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1535 if (pDocShell)
1537 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1543 pDocShell->SetPrinter( pNewPrinter, SFX_PRINTER_PRINTER );
1559 if (pDocShell)
1579 if (pDocShell) in seekGoal()
1581 WaitObject aWait( pDocShell->GetActiveDialogParent() ); in seekGoal()
1583 ScDocument* pDoc = pDocShell->GetDocument(); in seekGoal()
1603 if ( pDocShell && !bEmpty ) in createConsolidationDescriptor()
1605 ScDocument* pDoc = pDocShell->GetDocument(); in createConsolidationDescriptor()
1631 if (pDocShell) in consolidate()
1634 pDocShell->DoConsolidate( rParam, sal_True ); in consolidate()
1635 pDocShell->GetDocument()->SetConsolidateDlgData( &rParam ); in consolidate()
1644 if (pDocShell) in refreshArrows()
1646 ScDocFunc aFunc(*pDocShell); in refreshArrows()
1660 if (pDocShell && pDocShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED) in getViewData()
1671 … pDocShell->GetDocument()->GetName( pDocShell->GetDocument()->GetVisibleTab(), sName ); in getViewData()
1704 if (pDocShell) in setPropertyValue()
1706 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
1757 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1760 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1767 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1770 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1776 pDocShell->SetEmpty( !ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); in setPropertyValue()
1784 pDocShell->GetUndoManager()->SetMaxUndoActionCount( nCount ); in setPropertyValue()
1794 pDocShell->UpdateAllRowHeights(); in setPropertyValue()
1824 pDocShell->DoHardRecalc( sal_True ); in setPropertyValue()
1825 pDocShell->SetDocumentModified(); in setPropertyValue()
1838 if (pDocShell) in getPropertyValue()
1840 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
1882 aRet <<= uno::Reference<sheet::XNamedRanges2>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1886 aRet <<= uno::Reference<sheet::XNamedRanges>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1890 aRet <<= uno::Reference<sheet::XDatabaseRanges>(new ScDatabaseRangesObj( pDocShell )); in getPropertyValue()
1894 … aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_True )); in getPropertyValue()
1898 … aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_False )); in getPropertyValue()
1902 aRet <<= uno::Reference<sheet::XAreaLinks>(new ScAreaLinksObj( pDocShell )); in getPropertyValue()
1906 aRet <<= uno::Reference<container::XNameAccess>(new ScDDELinksObj( pDocShell )); in getPropertyValue()
1910 aRet <<= uno::Reference<sheet::XExternalDocLinks>(new ScExternalDocLinksObj(pDocShell)); in getPropertyValue()
1914 aRet <<= uno::Reference<container::XNameAccess>(new ScSheetLinksObj( pDocShell )); in getPropertyValue()
1932 … aRet <<= uno::Reference<i18n::XForbiddenCharacters>(new ScForbiddenCharsObj( pDocShell )); in getPropertyValue()
1936 … ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetDocument()->GetDrawLayer() != 0) ); in getPropertyValue()
1940 aRet <<= pDocShell->GetBasicContainer(); in getPropertyValue()
1944 aRet <<= pDocShell->GetDialogContainer(); in getPropertyValue()
1965 ScUnoHelpFunctions::SetBoolInAny( aRet, !pDocShell->IsEmpty() ); in getPropertyValue()
1995 …ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL) ); in getPropertyValue()
2034 ( pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2041 xRet.set(ScServiceProvider::MakeInstance( nType, pDocShell )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2164 return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(pDocShell )); in getSomething()
2238 return pDocShell && pDocShell->GetDocument()->HasAnySheetEventScript(SC_SHEETEVENT_CHANGE); in HasChangesListeners()
2244 if ( pDocShell && HasChangesListeners() ) in NotifyChanges()
2259 xRangeObj.set( new ScCellObj( pDocShell, aRange.aStart ) ); in NotifyChanges()
2263 xRangeObj.set( new ScCellRangeObj( pDocShell, aRange ) ); in NotifyChanges()
2287 if ( rOperation.compareToAscii("cell-change") == 0 && pDocShell ) in NotifyChanges()
2291 ScDocument* pDoc = pDocShell->GetDocument(); in NotifyChanges()
2318 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellObj( pDocShell, aRange.aStart ) ) ); in NotifyChanges()
2320 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangeObj( pDocShell, aRange ) ) ); in NotifyChanges()
2323 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangesObj( pDocShell, aTabRanges ) ) ); in NotifyChanges()
2332 … /*ErrCode eRet =*/ pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in NotifyChanges()
2342 if (pDocShell) in HandleCalculateEvents()
2344 ScDocument* pDoc = pDocShell->GetDocument(); in HandleCalculateEvents()
2362 … pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in HandleCalculateEvents()
2386 pDocShell( pDocSh ) in ScDrawPagesObj()
2388 pDocShell->GetDocument()->AddUnoObject(*this); in ScDrawPagesObj()
2393 if (pDocShell) in ~ScDrawPagesObj()
2394 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScDrawPagesObj()
2404 pDocShell = NULL; // ungültig geworden in Notify()
2410 if (pDocShell) in GetObjectByIndex_Impl()
2412 ScDrawLayer* pDrawLayer = pDocShell->MakeDrawLayer(); in GetObjectByIndex_Impl()
2414 if ( pDrawLayer && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2434 if (pDocShell) in insertNewByIndex()
2437 pDocShell->GetDocument()->CreateValidTabName(aNewName); in insertNewByIndex()
2438 ScDocFunc aFunc(*pDocShell); in insertNewByIndex()
2450 if ( pDocShell && pImp ) in remove()
2456 ScDocFunc aFunc(*pDocShell); in remove()
2467 if (pDocShell) in getCount()
2468 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2500 pDocShell( pDocSh ) in ScTableSheetsObj()
2502 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableSheetsObj()
2507 if (pDocShell) in ~ScTableSheetsObj()
2508 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableSheetsObj()
2518 pDocShell = NULL; // ungültig geworden in Notify()
2526 if ( pDocShell && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2527 return new ScTableSheetObj( pDocShell, static_cast<SCTAB>(nIndex) ); in GetObjectByIndex_Impl()
2534 if (pDocShell) in GetObjectByName_Impl()
2538 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in GetObjectByName_Impl()
2539 return new ScTableSheetObj( pDocShell, nIndex ); in GetObjectByName_Impl()
2549 if (pDocShell) in insertNewByName()
2552 ScDocFunc aFunc(*pDocShell); in insertNewByName()
2564 if (pDocShell) in moveByName()
2568 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in moveByName()
2569 bDone = pDocShell->MoveTable( nSource, nDestination, sal_False, sal_True ); in moveByName()
2581 if (pDocShell) in copyByName()
2586 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in copyByName()
2588 bDone = pDocShell->MoveTable( nSource, nDestination, sal_True, sal_True ); in copyByName()
2593 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); // count after copying in copyByName()
2597 ScDocFunc aFunc(*pDocShell); in copyByName()
2616 if ( pDocShell ) in insertByName()
2624 ScDocument* pDoc = pDocShell->GetDocument(); in insertByName()
2635 ScDocFunc aFunc(*pDocShell); in insertByName()
2638 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in insertByName()
2668 if ( pDocShell ) in replaceByName()
2678 if ( pDocShell->GetDocument()->GetTable( aNamStr, nPosition ) ) in replaceByName()
2680 ScDocFunc aFunc(*pDocShell); in replaceByName()
2686 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in replaceByName()
2717 if (pDocShell) in removeByName()
2721 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in removeByName()
2723 ScDocFunc aFunc(*pDocShell); in removeByName()
2768 ScDocument* pDoc = pDocShell->GetDocument(); in getCellRangesByName()
2779 xRet[nIndex] = new ScCellRangeObj(pDocShell, *pRange); in getCellRangesByName()
2804 if (pDocShell) in getCount()
2805 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2853 if (pDocShell) in getElementNames()
2855 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()
2874 if (pDocShell) in hasByName()
2877 if ( pDocShell->GetDocument()->GetTable( String(aName), nIndex ) ) in hasByName()
2886 pDocShell( pDocSh ), in ScTableColumnsObj()
2891 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableColumnsObj()
2896 if (pDocShell) in ~ScTableColumnsObj()
2897 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableColumnsObj()
2911 pDocShell = NULL; // ungültig geworden in Notify()
2920 if ( pDocShell && nCol <= nEndCol ) in GetObjectByIndex_Impl()
2921 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByIndex_Impl()
2931 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in GetObjectByName_Impl()
2932 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByName_Impl()
2942 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartCol+nPosition <= nEndCol && in insertByIndex()
2945 ScDocFunc aFunc(*pDocShell); in insertByIndex()
2960 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartCol+nIndex+nCount-1 <= nEndCol ) in removeByIndex()
2962 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3046 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in hasByName()
3070 if (!pDocShell) in setPropertyValue()
3073 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3118 if (!pDocShell) in getPropertyValue()
3121 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3163 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3168 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3173 if (pDocShell) in ~ScTableRowsObj()
3174 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableRowsObj()
3188 pDocShell = NULL; // ungültig geworden in Notify()
3197 if ( pDocShell && nRow <= nEndRow ) in GetObjectByIndex_Impl()
3198 return new ScTableRowObj( pDocShell, nRow, nTab ); in GetObjectByIndex_Impl()
3208 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartRow+nPosition <= nEndRow && in insertByIndex()
3211 ScDocFunc aFunc(*pDocShell); in insertByIndex()
3226 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartRow+nIndex+nCount-1 <= nEndRow ) in removeByIndex()
3228 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3297 if (!pDocShell) in setPropertyValue()
3300 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3301 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
3376 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in setPropertyValue()
3386 if (!pDocShell) in getPropertyValue()
3389 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3433 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in getPropertyValue()
3452 if (pDocShell) in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3453 pDocShell->GetDocument()->RemoveUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3463 pDocShell = NULL; // ungültig geworden in Notify()
3498 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3501 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3506 if (pDocShell) in ~ScAnnotationsObj()
3507 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScAnnotationsObj()
3517 pDocShell = NULL; // ungültig geworden in Notify()
3523 if (pDocShell) in GetAddressByIndex_Impl()
3526 ScDocument* pDoc = pDocShell->GetDocument(); in GetAddressByIndex_Impl()
3546 if (pDocShell) in GetObjectByIndex_Impl()
3550 return new ScAnnotationObj( pDocShell, aPos ); in GetObjectByIndex_Impl()
3562 if (pDocShell) in insertNew()
3567 ScDocFunc aFunc( *pDocShell ); in insertNew()
3575 if (pDocShell) in removeByIndex()
3584 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3607 if (pDocShell) in getCount()
3609 ScCellIterator aCellIter( pDocShell->GetDocument(), 0,0, nTab, MAXCOL,MAXROW, nTab ); in getCount()
3645 pDocShell( pDocSh ), in ScScenariosObj()
3648 pDocShell->GetDocument()->AddUnoObject(*this); in ScScenariosObj()
3653 if (pDocShell) in ~ScScenariosObj()
3654 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScScenariosObj()
3668 pDocShell = NULL; // ungültig geworden in Notify()
3678 if ( pDocShell ) in GetScenarioIndex_Impl()
3683 ScDocument* pDoc = pDocShell->GetDocument(); in GetScenarioIndex_Impl()
3700 if ( pDocShell && nIndex >= 0 && nIndex < nCount ) in GetObjectByIndex_Impl()
3701 return new ScTableSheetObj( pDocShell, nTab+static_cast<SCTAB>(nIndex)+1 ); in GetObjectByIndex_Impl()
3709 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in GetObjectByName_Impl()
3710 return new ScTableSheetObj( pDocShell, nTab+nIndex+1 ); in GetObjectByName_Impl()
3721 if ( pDocShell ) in addNewByName()
3746 pDocShell->MakeScenario( nTab, aNameStr, aCommStr, aColor, nFlags, aMarkData ); in addNewByName()
3755 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in removeByName()
3757 ScDocFunc aFunc(*pDocShell); in removeByName()
3777 if ( pDocShell ) in getCount()
3779 ScDocument* pDoc = pDocShell->GetDocument(); in getCount()
3839 if ( pDocShell ) // sonst ist auch Count = 0 in getElementNames()
3842 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()