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 …uno::Reference<util::XNumberFormatsSupplier> xFormatter(new SvNumberFormatsSupplierObj(pDocShell->… 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()
573 pDocShell = NULL; // has become invalid in Notify()
593 if ( pDocShell ) in Notify()
595 ScDocument* pDoc = pDocShell->GetDocument(); in Notify()
622 if ( pNumFmt && pDocShell ) in Notify()
623 pNumFmt->SetNumberFormatter( pDocShell->GetDocument()->GetFormatTable() ); in Notify()
637 if (pDocShell) in getSheets()
638 return new ScTableSheetsObj(pDocShell); in getSheets()
648 if (pDocShell) in getStyleFamilies()
649 return new ScStyleFamiliesObj(pDocShell); in getStyleFamilies()
769 DBG_ASSERT( pDocShell, "FillRenderMarkData: DocShell must be set" ); in FillRenderMarkData()
822 if ( pSelObj && pSelObj->GetDocShell() == pDocShell ) in FillRenderMarkData()
870 if( pDocShell ) in FillRenderMarkData()
872 ScDocument* pDoc = pDocShell->GetDocument(); in FillRenderMarkData()
895 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
915 ScExtDocOptions* pExtOpt = pDocShell->GetDocument()->GetExtDocOptions(); in FillRenderMarkData()
924 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
952 if (!pDocShell) in getRendererCount()
968 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRendererCount()
1004 if (!pDocShell) in getRenderer()
1017 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRenderer()
1029 ScPrintFunc aDefaultFunc( pDocShell, pDocShell->GetPrinter(), nCurTab ); in getRenderer()
1060 ScPrintFunc aFunc( pDocShell, pDocShell->GetPrinter(), nTab, in getRenderer()
1109 if (!pDocShell) in render()
1121 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in render()
1133 ScDocument* pDoc = pDocShell->GetDocument(); in render()
1159 …ScPrintFunc aFunc( pDev, pDocShell, nTab, pPrintFuncCache->GetFirstAttr(nTab), nTotalPages, pSelRa… in render()
1311 if (pDocShell) in getLinks()
1312 return new ScLinkTargetTypesObj(pDocShell); in getLinks()
1322 if (pDocShell) in isActionLocked()
1323 bLocked = ( pDocShell->GetLockCount() != 0 ); in isActionLocked()
1330 if (pDocShell) in addActionLock()
1331 pDocShell->LockDocument(); in addActionLock()
1337 if (pDocShell) in removeActionLock()
1338 pDocShell->UnlockDocument(); in removeActionLock()
1344 if (pDocShell) in setActionLocks()
1345 pDocShell->SetLockCount(nLock); in setActionLocks()
1352 if (pDocShell) in resetActionLocks()
1354 nRet = pDocShell->GetLockCount(); in resetActionLocks()
1355 pDocShell->SetLockCount(0); in resetActionLocks()
1364 if (pDocShell) in lockControllers()
1365 pDocShell->LockPaint(); in lockControllers()
1374 if (pDocShell) in unlockControllers()
1375 pDocShell->UnlockPaint(); in unlockControllers()
1384 if (pDocShell) in calculate()
1385 pDocShell->DoRecalc(sal_True); in calculate()
1395 if (pDocShell) in calculateAll()
1396 pDocShell->DoHardRecalc(sal_True); in calculateAll()
1406 if (pDocShell) in isAutomaticCalculationEnabled()
1407 return pDocShell->GetDocument()->GetAutoCalc(); in isAutomaticCalculationEnabled()
1417 if (pDocShell) in enableAutomaticCalculation()
1419 ScDocument* pDoc = pDocShell->GetDocument(); in enableAutomaticCalculation()
1423 pDocShell->SetDocumentModified(); in enableAutomaticCalculation()
1438 if ( pDocShell && !pDocShell->GetDocument()->IsDocProtected() ) in protect()
1442 ScDocFunc aFunc(*pDocShell); in protect()
1451 if (pDocShell) in unprotect()
1455 ScDocFunc aFunc(*pDocShell); in unprotect()
1465 if (pDocShell) in isProtected()
1466 return pDocShell->GetDocument()->IsDocProtected(); in isProtected()
1477 if (pDocShell) in getDrawPages()
1478 return new ScDrawPagesObj(pDocShell); in getDrawPages()
1490 if (pDocShell)
1492 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1506 if (pDocShell)
1508 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1514 pDocShell->SetPrinter( pNewPrinter, SFX_PRINTER_PRINTER );
1530 if (pDocShell)
1550 if (pDocShell) in seekGoal()
1552 WaitObject aWait( pDocShell->GetActiveDialogParent() ); in seekGoal()
1554 ScDocument* pDoc = pDocShell->GetDocument(); in seekGoal()
1574 if ( pDocShell && !bEmpty ) in createConsolidationDescriptor()
1576 ScDocument* pDoc = pDocShell->GetDocument(); in createConsolidationDescriptor()
1602 if (pDocShell) in consolidate()
1605 pDocShell->DoConsolidate( rParam, sal_True ); in consolidate()
1606 pDocShell->GetDocument()->SetConsolidateDlgData( &rParam ); in consolidate()
1615 if (pDocShell) in refreshArrows()
1617 ScDocFunc aFunc(*pDocShell); in refreshArrows()
1631 if (pDocShell && pDocShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED) in getViewData()
1642 … pDocShell->GetDocument()->GetName( pDocShell->GetDocument()->GetVisibleTab(), sName ); in getViewData()
1675 if (pDocShell) in setPropertyValue()
1677 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
1728 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1731 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1738 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1741 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1747 pDocShell->SetEmpty( !ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); in setPropertyValue()
1755 pDocShell->GetUndoManager()->SetMaxUndoActionCount( nCount ); in setPropertyValue()
1765 pDocShell->UpdateAllRowHeights(); in setPropertyValue()
1795 pDocShell->DoHardRecalc( sal_True ); in setPropertyValue()
1796 pDocShell->SetDocumentModified(); in setPropertyValue()
1809 if (pDocShell) in getPropertyValue()
1811 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
1853 aRet <<= uno::Reference<sheet::XNamedRanges2>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1857 aRet <<= uno::Reference<sheet::XNamedRanges>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1861 aRet <<= uno::Reference<sheet::XDatabaseRanges>(new ScDatabaseRangesObj( pDocShell )); in getPropertyValue()
1865 aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_True )); in getPropertyValue()
1869 aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_False )); in getPropertyValue()
1873 aRet <<= uno::Reference<sheet::XAreaLinks>(new ScAreaLinksObj( pDocShell )); in getPropertyValue()
1877 aRet <<= uno::Reference<container::XNameAccess>(new ScDDELinksObj( pDocShell )); in getPropertyValue()
1881 aRet <<= uno::Reference<sheet::XExternalDocLinks>(new ScExternalDocLinksObj(pDocShell)); in getPropertyValue()
1885 aRet <<= uno::Reference<container::XNameAccess>(new ScSheetLinksObj( pDocShell )); in getPropertyValue()
1903 aRet <<= uno::Reference<i18n::XForbiddenCharacters>(new ScForbiddenCharsObj( pDocShell )); in getPropertyValue()
1907 ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetDocument()->GetDrawLayer() != 0) ); in getPropertyValue()
1911 aRet <<= pDocShell->GetBasicContainer(); in getPropertyValue()
1915 aRet <<= pDocShell->GetDialogContainer(); in getPropertyValue()
1936 ScUnoHelpFunctions::SetBoolInAny( aRet, !pDocShell->IsEmpty() ); in getPropertyValue()
1966 …ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL) ); in getPropertyValue()
2005 ( pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2012 xRet.set(ScServiceProvider::MakeInstance( nType, pDocShell )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2135 return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(pDocShell )); in getSomething()
2209 return pDocShell && pDocShell->GetDocument()->HasAnySheetEventScript(SC_SHEETEVENT_CHANGE); in HasChangesListeners()
2215 if ( pDocShell && HasChangesListeners() ) in NotifyChanges()
2230 xRangeObj.set( new ScCellObj( pDocShell, aRange.aStart ) ); in NotifyChanges()
2234 xRangeObj.set( new ScCellRangeObj( pDocShell, aRange ) ); in NotifyChanges()
2258 if ( rOperation.compareToAscii("cell-change") == 0 && pDocShell ) in NotifyChanges()
2262 ScDocument* pDoc = pDocShell->GetDocument(); in NotifyChanges()
2289 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellObj( pDocShell, aRange.aStart ) ) ); in NotifyChanges()
2291 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangeObj( pDocShell, aRange ) ) ); in NotifyChanges()
2294 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangesObj( pDocShell, aTabRanges ) ) ); in NotifyChanges()
2303 … /*ErrCode eRet =*/ pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in NotifyChanges()
2313 if (pDocShell) in HandleCalculateEvents()
2315 ScDocument* pDoc = pDocShell->GetDocument(); in HandleCalculateEvents()
2333 … pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in HandleCalculateEvents()
2357 pDocShell( pDocSh ) in ScDrawPagesObj()
2359 pDocShell->GetDocument()->AddUnoObject(*this); in ScDrawPagesObj()
2364 if (pDocShell) in ~ScDrawPagesObj()
2365 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScDrawPagesObj()
2375 pDocShell = NULL; // ungueltig geworden in Notify()
2381 if (pDocShell) in GetObjectByIndex_Impl()
2383 ScDrawLayer* pDrawLayer = pDocShell->MakeDrawLayer(); in GetObjectByIndex_Impl()
2385 if ( pDrawLayer && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2405 if (pDocShell) in insertNewByIndex()
2408 pDocShell->GetDocument()->CreateValidTabName(aNewName); in insertNewByIndex()
2409 ScDocFunc aFunc(*pDocShell); in insertNewByIndex()
2421 if ( pDocShell && pImp ) in remove()
2427 ScDocFunc aFunc(*pDocShell); in remove()
2438 if (pDocShell) in getCount()
2439 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2471 pDocShell( pDocSh ) in ScTableSheetsObj()
2473 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableSheetsObj()
2478 if (pDocShell) in ~ScTableSheetsObj()
2479 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableSheetsObj()
2489 pDocShell = NULL; // ungueltig geworden in Notify()
2497 if ( pDocShell && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2498 return new ScTableSheetObj( pDocShell, static_cast<SCTAB>(nIndex) ); in GetObjectByIndex_Impl()
2505 if (pDocShell) in GetObjectByName_Impl()
2509 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in GetObjectByName_Impl()
2510 return new ScTableSheetObj( pDocShell, nIndex ); in GetObjectByName_Impl()
2520 if (pDocShell) in insertNewByName()
2523 ScDocFunc aFunc(*pDocShell); in insertNewByName()
2535 if (pDocShell) in moveByName()
2539 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in moveByName()
2540 bDone = pDocShell->MoveTable( nSource, nDestination, sal_False, sal_True ); in moveByName()
2552 if (pDocShell) in copyByName()
2557 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in copyByName()
2559 bDone = pDocShell->MoveTable( nSource, nDestination, sal_True, sal_True ); in copyByName()
2564 … SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); // count after copying in copyByName()
2568 ScDocFunc aFunc(*pDocShell); in copyByName()
2587 if ( pDocShell ) in insertByName()
2595 ScDocument* pDoc = pDocShell->GetDocument(); in insertByName()
2606 ScDocFunc aFunc(*pDocShell); in insertByName()
2609 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in insertByName()
2639 if ( pDocShell ) in replaceByName()
2649 if ( pDocShell->GetDocument()->GetTable( aNamStr, nPosition ) ) in replaceByName()
2651 ScDocFunc aFunc(*pDocShell); in replaceByName()
2657 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in replaceByName()
2688 if (pDocShell) in removeByName()
2692 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in removeByName()
2694 ScDocFunc aFunc(*pDocShell); in removeByName()
2739 ScDocument* pDoc = pDocShell->GetDocument(); in getCellRangesByName()
2750 xRet[nIndex] = new ScCellRangeObj(pDocShell, *pRange); in getCellRangesByName()
2775 if (pDocShell) in getCount()
2776 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2824 if (pDocShell) in getElementNames()
2826 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()
2845 if (pDocShell) in hasByName()
2848 if ( pDocShell->GetDocument()->GetTable( String(aName), nIndex ) ) in hasByName()
2857 pDocShell( pDocSh ), in ScTableColumnsObj()
2862 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableColumnsObj()
2867 if (pDocShell) in ~ScTableColumnsObj()
2868 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableColumnsObj()
2882 pDocShell = NULL; // ungueltig geworden in Notify()
2891 if ( pDocShell && nCol <= nEndCol ) in GetObjectByIndex_Impl()
2892 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByIndex_Impl()
2902 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in GetObjectByName_Impl()
2903 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByName_Impl()
2913 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartCol+nPosition <= nEndCol && in insertByIndex()
2916 ScDocFunc aFunc(*pDocShell); in insertByIndex()
2931 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartCol+nIndex+nCount-1 <= nEndCol ) in removeByIndex()
2933 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3017 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in hasByName()
3041 if (!pDocShell) in setPropertyValue()
3044 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3089 if (!pDocShell) in getPropertyValue()
3092 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3134 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3139 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3144 if (pDocShell) in ~ScTableRowsObj()
3145 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableRowsObj()
3159 pDocShell = NULL; // ungueltig geworden in Notify()
3168 if ( pDocShell && nRow <= nEndRow ) in GetObjectByIndex_Impl()
3169 return new ScTableRowObj( pDocShell, nRow, nTab ); in GetObjectByIndex_Impl()
3179 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartRow+nPosition <= nEndRow && in insertByIndex()
3182 ScDocFunc aFunc(*pDocShell); in insertByIndex()
3197 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartRow+nIndex+nCount-1 <= nEndRow ) in removeByIndex()
3199 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3268 if (!pDocShell) in setPropertyValue()
3271 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3272 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
3347 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in setPropertyValue()
3357 if (!pDocShell) in getPropertyValue()
3360 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3404 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in getPropertyValue()
3423 if (pDocShell) in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3424 pDocShell->GetDocument()->RemoveUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3434 pDocShell = NULL; // ungueltig geworden in Notify()
3469 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3472 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3477 if (pDocShell) in ~ScAnnotationsObj()
3478 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScAnnotationsObj()
3488 pDocShell = NULL; // ungueltig geworden in Notify()
3494 if (pDocShell) in GetAddressByIndex_Impl()
3497 ScDocument* pDoc = pDocShell->GetDocument(); in GetAddressByIndex_Impl()
3517 if (pDocShell) in GetObjectByIndex_Impl()
3521 return new ScAnnotationObj( pDocShell, aPos ); in GetObjectByIndex_Impl()
3533 if (pDocShell) in insertNew()
3538 ScDocFunc aFunc( *pDocShell ); in insertNew()
3546 if (pDocShell) in removeByIndex()
3555 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3578 if (pDocShell) in getCount()
3580 ScCellIterator aCellIter( pDocShell->GetDocument(), 0,0, nTab, MAXCOL,MAXROW, nTab ); in getCount()
3616 pDocShell( pDocSh ), in ScScenariosObj()
3619 pDocShell->GetDocument()->AddUnoObject(*this); in ScScenariosObj()
3624 if (pDocShell) in ~ScScenariosObj()
3625 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScScenariosObj()
3639 pDocShell = NULL; // ungueltig geworden in Notify()
3649 if ( pDocShell ) in GetScenarioIndex_Impl()
3654 ScDocument* pDoc = pDocShell->GetDocument(); in GetScenarioIndex_Impl()
3671 if ( pDocShell && nIndex >= 0 && nIndex < nCount ) in GetObjectByIndex_Impl()
3672 return new ScTableSheetObj( pDocShell, nTab+static_cast<SCTAB>(nIndex)+1 ); in GetObjectByIndex_Impl()
3680 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in GetObjectByName_Impl()
3681 return new ScTableSheetObj( pDocShell, nTab+nIndex+1 ); in GetObjectByName_Impl()
3692 if ( pDocShell ) in addNewByName()
3717 pDocShell->MakeScenario( nTab, aNameStr, aCommStr, aColor, nFlags, aMarkData ); in addNewByName()
3726 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in removeByName()
3728 ScDocFunc aFunc(*pDocShell); in removeByName()
3748 if ( pDocShell ) in getCount()
3750 ScDocument* pDoc = pDocShell->GetDocument(); in getCount()
3810 if ( pDocShell ) // sonst ist auch Count = 0 in getElementNames()
3813 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()