Lines Matching refs:pDocShell
357 pDocShell( pDocSh ), in ScModelObj()
363 if ( pDocShell ) in ScModelObj()
365 pDocShell->GetDocument()->AddUnoObject(*this); // SfxModel is derived from SfxListener in ScModelObj()
371 if (pDocShell) in ~ScModelObj()
372 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScModelObj()
384 if ( !xNumberAgg.is() && pDocShell ) in GetFormatter()
391 …util::XNumberFormatsSupplier> xFormatter(new SvNumberFormatsSupplierObj(pDocShell->GetDocument()->… in GetFormatter()
409 if (pDocShell) in GetDocument()
410 return pDocShell->GetDocument(); in GetDocument()
416 return pDocShell; in GetEmbeddedObject()
421 if (pDocShell) in UpdateAllRowHeights()
424 pDocShell->CalcOutputFactor(); in UpdateAllRowHeights()
425 pDocShell->UpdateAllRowHeights(pTabMark); in UpdateAllRowHeights()
431 if (pDocShell) in BeforeXMLLoading()
432 pDocShell->BeforeXMLLoading(); in BeforeXMLLoading()
437 if (pDocShell) in AfterXMLLoading()
438 pDocShell->AfterXMLLoading(bRet); in AfterXMLLoading()
443 if (pDocShell) in GetSheetSaveData()
444 return pDocShell->GetSheetSaveData(); in GetSheetSaveData()
450 if (pDocShell) in RepaintRange()
451 pDocShell->PostPaint( rRange, PAINT_GRID ); in RepaintRange()
577 pDocShell = NULL; // has become invalid in Notify()
597 if ( pDocShell ) in Notify()
599 ScDocument* pDoc = pDocShell->GetDocument(); in Notify()
626 if ( pNumFmt && pDocShell ) in Notify()
627 pNumFmt->SetNumberFormatter( pDocShell->GetDocument()->GetFormatTable() ); in Notify()
641 if (pDocShell) in getSheets()
642 return new ScTableSheetsObj(pDocShell); in getSheets()
652 if (pDocShell) in getStyleFamilies()
653 return new ScStyleFamiliesObj(pDocShell); in getStyleFamilies()
773 DBG_ASSERT( pDocShell, "FillRenderMarkData: DocShell must be set" ); in FillRenderMarkData()
826 if ( pSelObj && pSelObj->GetDocShell() == pDocShell ) in FillRenderMarkData()
874 if( pDocShell ) in FillRenderMarkData()
876 ScDocument* pDoc = pDocShell->GetDocument(); in FillRenderMarkData()
899 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
919 ScExtDocOptions* pExtOpt = pDocShell->GetDocument()->GetExtDocOptions(); in FillRenderMarkData()
928 SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); in FillRenderMarkData()
956 if (!pDocShell) in getRendererCount()
972 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRendererCount()
1008 if (!pDocShell) in getRenderer()
1021 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in getRenderer()
1033 ScPrintFunc aDefaultFunc( pDocShell, pDocShell->GetPrinter(), nCurTab ); in getRenderer()
1064 ScPrintFunc aFunc( pDocShell, pDocShell->GetPrinter(), nTab, in getRenderer()
1113 if (!pDocShell) in render()
1125 pPrintFuncCache = new ScPrintFuncCache( pDocShell, aMark, aStatus ); in render()
1137 ScDocument* pDoc = pDocShell->GetDocument(); in render()
1163 …ScPrintFunc aFunc( pDev, pDocShell, nTab, pPrintFuncCache->GetFirstAttr(nTab), nTotalPages, pSelRa… in render()
1315 ScDocument *doc = pDocShell->GetDocument(); in authorizeLinks()
1318 SfxMedium* pMedium = pDocShell->GetMedium(); in authorizeLinks()
1330 pDlgParent = pDocShell->GetDialogParent( pMedium ); in authorizeLinks()
1342 if (pDocShell) in getLinks()
1343 return new ScLinkTargetTypesObj(pDocShell); in getLinks()
1353 if (pDocShell) in isActionLocked()
1354 bLocked = ( pDocShell->GetLockCount() != 0 ); in isActionLocked()
1361 if (pDocShell) in addActionLock()
1362 pDocShell->LockDocument(); in addActionLock()
1368 if (pDocShell) in removeActionLock()
1369 pDocShell->UnlockDocument(); in removeActionLock()
1375 if (pDocShell) in setActionLocks()
1376 pDocShell->SetLockCount(nLock); in setActionLocks()
1383 if (pDocShell) in resetActionLocks()
1385 nRet = pDocShell->GetLockCount(); in resetActionLocks()
1386 pDocShell->SetLockCount(0); in resetActionLocks()
1395 if (pDocShell) in lockControllers()
1396 pDocShell->LockPaint(); in lockControllers()
1405 if (pDocShell) in unlockControllers()
1406 pDocShell->UnlockPaint(); in unlockControllers()
1415 if (pDocShell) in calculate()
1416 pDocShell->DoRecalc(sal_True); in calculate()
1426 if (pDocShell) in calculateAll()
1427 pDocShell->DoHardRecalc(sal_True); in calculateAll()
1437 if (pDocShell) in isAutomaticCalculationEnabled()
1438 return pDocShell->GetDocument()->GetAutoCalc(); in isAutomaticCalculationEnabled()
1448 if (pDocShell) in enableAutomaticCalculation()
1450 ScDocument* pDoc = pDocShell->GetDocument(); in enableAutomaticCalculation()
1454 pDocShell->SetDocumentModified(); in enableAutomaticCalculation()
1469 if ( pDocShell && !pDocShell->GetDocument()->IsDocProtected() ) in protect()
1473 ScDocFunc aFunc(*pDocShell); in protect()
1482 if (pDocShell) in unprotect()
1486 ScDocFunc aFunc(*pDocShell); in unprotect()
1496 if (pDocShell) in isProtected()
1497 return pDocShell->GetDocument()->IsDocProtected(); in isProtected()
1508 if (pDocShell) in getDrawPages()
1509 return new ScDrawPagesObj(pDocShell); in getDrawPages()
1521 if (pDocShell)
1523 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1537 if (pDocShell)
1539 SfxPrinter* pPrinter = pDocShell->GetPrinter();
1545 pDocShell->SetPrinter( pNewPrinter, SFX_PRINTER_PRINTER );
1561 if (pDocShell)
1581 if (pDocShell) in seekGoal()
1583 WaitObject aWait( pDocShell->GetActiveDialogParent() ); in seekGoal()
1585 ScDocument* pDoc = pDocShell->GetDocument(); in seekGoal()
1605 if ( pDocShell && !bEmpty ) in createConsolidationDescriptor()
1607 ScDocument* pDoc = pDocShell->GetDocument(); in createConsolidationDescriptor()
1633 if (pDocShell) in consolidate()
1636 pDocShell->DoConsolidate( rParam, sal_True ); in consolidate()
1637 pDocShell->GetDocument()->SetConsolidateDlgData( &rParam ); in consolidate()
1646 if (pDocShell) in refreshArrows()
1648 ScDocFunc aFunc(*pDocShell); in refreshArrows()
1662 if (pDocShell && pDocShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED) in getViewData()
1673 … pDocShell->GetDocument()->GetName( pDocShell->GetDocument()->GetVisibleTab(), sName ); in getViewData()
1706 if (pDocShell) in setPropertyValue()
1708 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
1759 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1762 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1769 ScDrawLayer* pModel = pDocShell->MakeDrawLayer(); in setPropertyValue()
1772 SfxBindings* pBindings = pDocShell->GetViewBindings(); in setPropertyValue()
1778 pDocShell->SetEmpty( !ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); in setPropertyValue()
1786 pDocShell->GetUndoManager()->SetMaxUndoActionCount( nCount ); in setPropertyValue()
1796 pDocShell->UpdateAllRowHeights(); in setPropertyValue()
1826 pDocShell->DoHardRecalc( sal_True ); in setPropertyValue()
1827 pDocShell->SetDocumentModified(); in setPropertyValue()
1840 if (pDocShell) in getPropertyValue()
1842 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
1884 aRet <<= uno::Reference<sheet::XNamedRanges2>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1888 aRet <<= uno::Reference<sheet::XNamedRanges>(new ScNamedRangesObj( pDocShell )); in getPropertyValue()
1892 aRet <<= uno::Reference<sheet::XDatabaseRanges>(new ScDatabaseRangesObj( pDocShell )); in getPropertyValue()
1896 … aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_True )); in getPropertyValue()
1900 … aRet <<= uno::Reference<sheet::XLabelRanges>(new ScLabelRangesObj( pDocShell, sal_False )); in getPropertyValue()
1904 aRet <<= uno::Reference<sheet::XAreaLinks>(new ScAreaLinksObj( pDocShell )); in getPropertyValue()
1908 aRet <<= uno::Reference<container::XNameAccess>(new ScDDELinksObj( pDocShell )); in getPropertyValue()
1912 aRet <<= uno::Reference<sheet::XExternalDocLinks>(new ScExternalDocLinksObj(pDocShell)); in getPropertyValue()
1916 aRet <<= uno::Reference<container::XNameAccess>(new ScSheetLinksObj( pDocShell )); in getPropertyValue()
1934 … aRet <<= uno::Reference<i18n::XForbiddenCharacters>(new ScForbiddenCharsObj( pDocShell )); in getPropertyValue()
1938 … ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetDocument()->GetDrawLayer() != 0) ); in getPropertyValue()
1942 aRet <<= pDocShell->GetBasicContainer(); in getPropertyValue()
1946 aRet <<= pDocShell->GetDialogContainer(); in getPropertyValue()
1967 ScUnoHelpFunctions::SetBoolInAny( aRet, !pDocShell->IsEmpty() ); in getPropertyValue()
1997 …ScUnoHelpFunctions::SetBoolInAny( aRet, (pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL) ); in getPropertyValue()
2036 ( pDocShell->GetCreateMode() == SFX_CREATE_MODE_INTERNAL )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2043 xRet.set(ScServiceProvider::MakeInstance( nType, pDocShell )); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
2166 return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(pDocShell )); in getSomething()
2240 return pDocShell && pDocShell->GetDocument()->HasAnySheetEventScript(SC_SHEETEVENT_CHANGE); in HasChangesListeners()
2246 if ( pDocShell && HasChangesListeners() ) in NotifyChanges()
2261 xRangeObj.set( new ScCellObj( pDocShell, aRange.aStart ) ); in NotifyChanges()
2265 xRangeObj.set( new ScCellRangeObj( pDocShell, aRange ) ); in NotifyChanges()
2289 if ( rOperation.compareToAscii("cell-change") == 0 && pDocShell ) in NotifyChanges()
2293 ScDocument* pDoc = pDocShell->GetDocument(); in NotifyChanges()
2320 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellObj( pDocShell, aRange.aStart ) ) ); in NotifyChanges()
2322 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangeObj( pDocShell, aRange ) ) ); in NotifyChanges()
2325 … xTarget.set( static_cast<cppu::OWeakObject*>( new ScCellRangesObj( pDocShell, aTabRanges ) ) ); in NotifyChanges()
2334 … /*ErrCode eRet =*/ pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in NotifyChanges()
2344 if (pDocShell) in HandleCalculateEvents()
2346 ScDocument* pDoc = pDocShell->GetDocument(); in HandleCalculateEvents()
2364 … pDocShell->CallXScript( *pScript, aParams, aRet, aOutArgsIndex, aOutArgs ); in HandleCalculateEvents()
2388 pDocShell( pDocSh ) in ScDrawPagesObj()
2390 pDocShell->GetDocument()->AddUnoObject(*this); in ScDrawPagesObj()
2395 if (pDocShell) in ~ScDrawPagesObj()
2396 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScDrawPagesObj()
2406 pDocShell = NULL; // ungueltig geworden in Notify()
2412 if (pDocShell) in GetObjectByIndex_Impl()
2414 ScDrawLayer* pDrawLayer = pDocShell->MakeDrawLayer(); in GetObjectByIndex_Impl()
2416 if ( pDrawLayer && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2436 if (pDocShell) in insertNewByIndex()
2439 pDocShell->GetDocument()->CreateValidTabName(aNewName); in insertNewByIndex()
2440 ScDocFunc aFunc(*pDocShell); in insertNewByIndex()
2452 if ( pDocShell && pImp ) in remove()
2458 ScDocFunc aFunc(*pDocShell); in remove()
2469 if (pDocShell) in getCount()
2470 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2502 pDocShell( pDocSh ) in ScTableSheetsObj()
2504 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableSheetsObj()
2509 if (pDocShell) in ~ScTableSheetsObj()
2510 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableSheetsObj()
2520 pDocShell = NULL; // ungueltig geworden in Notify()
2528 if ( pDocShell && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2529 return new ScTableSheetObj( pDocShell, static_cast<SCTAB>(nIndex) ); in GetObjectByIndex_Impl()
2536 if (pDocShell) in GetObjectByName_Impl()
2540 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in GetObjectByName_Impl()
2541 return new ScTableSheetObj( pDocShell, nIndex ); in GetObjectByName_Impl()
2551 if (pDocShell) in insertNewByName()
2554 ScDocFunc aFunc(*pDocShell); in insertNewByName()
2566 if (pDocShell) in moveByName()
2570 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in moveByName()
2571 bDone = pDocShell->MoveTable( nSource, nDestination, sal_False, sal_True ); in moveByName()
2583 if (pDocShell) in copyByName()
2588 if ( pDocShell->GetDocument()->GetTable( aNamStr, nSource ) ) in copyByName()
2590 bDone = pDocShell->MoveTable( nSource, nDestination, sal_True, sal_True ); in copyByName()
2595 … SCTAB nTabCount = pDocShell->GetDocument()->GetTableCount(); // count after copying in copyByName()
2599 ScDocFunc aFunc(*pDocShell); in copyByName()
2618 if ( pDocShell ) in insertByName()
2626 ScDocument* pDoc = pDocShell->GetDocument(); in insertByName()
2637 ScDocFunc aFunc(*pDocShell); in insertByName()
2640 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in insertByName()
2670 if ( pDocShell ) in replaceByName()
2680 if ( pDocShell->GetDocument()->GetTable( aNamStr, nPosition ) ) in replaceByName()
2682 ScDocFunc aFunc(*pDocShell); in replaceByName()
2688 pSheetObj->InitInsertSheet( pDocShell, nPosition ); in replaceByName()
2719 if (pDocShell) in removeByName()
2723 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in removeByName()
2725 ScDocFunc aFunc(*pDocShell); in removeByName()
2770 ScDocument* pDoc = pDocShell->GetDocument(); in getCellRangesByName()
2781 xRet[nIndex] = new ScCellRangeObj(pDocShell, *pRange); in getCellRangesByName()
2806 if (pDocShell) in getCount()
2807 return pDocShell->GetDocument()->GetTableCount(); in getCount()
2855 if (pDocShell) in getElementNames()
2857 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()
2876 if (pDocShell) in hasByName()
2879 if ( pDocShell->GetDocument()->GetTable( String(aName), nIndex ) ) in hasByName()
2888 pDocShell( pDocSh ), in ScTableColumnsObj()
2893 pDocShell->GetDocument()->AddUnoObject(*this); in ScTableColumnsObj()
2898 if (pDocShell) in ~ScTableColumnsObj()
2899 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableColumnsObj()
2913 pDocShell = NULL; // ungueltig geworden in Notify()
2922 if ( pDocShell && nCol <= nEndCol ) in GetObjectByIndex_Impl()
2923 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByIndex_Impl()
2933 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in GetObjectByName_Impl()
2934 return new ScTableColumnObj( pDocShell, nCol, nTab ); in GetObjectByName_Impl()
2944 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartCol+nPosition <= nEndCol && in insertByIndex()
2947 ScDocFunc aFunc(*pDocShell); in insertByIndex()
2962 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartCol+nIndex+nCount-1 <= nEndCol ) in removeByIndex()
2964 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3048 if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol ) in hasByName()
3072 if (!pDocShell) in setPropertyValue()
3075 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3120 if (!pDocShell) in getPropertyValue()
3123 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3165 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3170 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3175 if (pDocShell) in ~ScTableRowsObj()
3176 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScTableRowsObj()
3190 pDocShell = NULL; // ungueltig geworden in Notify()
3199 if ( pDocShell && nRow <= nEndRow ) in GetObjectByIndex_Impl()
3200 return new ScTableRowObj( pDocShell, nRow, nTab ); in GetObjectByIndex_Impl()
3210 if ( pDocShell && nCount > 0 && nPosition >= 0 && nStartRow+nPosition <= nEndRow && in insertByIndex()
3213 ScDocFunc aFunc(*pDocShell); in insertByIndex()
3228 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartRow+nIndex+nCount-1 <= nEndRow ) in removeByIndex()
3230 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3299 if (!pDocShell) in setPropertyValue()
3302 ScDocFunc aFunc(*pDocShell); in setPropertyValue()
3303 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValue()
3378 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in setPropertyValue()
3388 if (!pDocShell) in getPropertyValue()
3391 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyValue()
3435 uno::Reference<beans::XPropertySet> xRangeObj = new ScCellRangeObj( pDocShell, aRange ); in getPropertyValue()
3454 if (pDocShell) in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3455 pDocShell->GetDocument()->RemoveUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3465 pDocShell = NULL; // ungueltig geworden in Notify()
3500 pDocShell( pDocSh ), in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3503 pDocShell->GetDocument()->AddUnoObject(*this); in SC_IMPL_DUMMY_PROPERTY_LISTENER()
3508 if (pDocShell) in ~ScAnnotationsObj()
3509 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScAnnotationsObj()
3519 pDocShell = NULL; // ungueltig geworden in Notify()
3525 if (pDocShell) in GetAddressByIndex_Impl()
3528 ScDocument* pDoc = pDocShell->GetDocument(); in GetAddressByIndex_Impl()
3548 if (pDocShell) in GetObjectByIndex_Impl()
3552 return new ScAnnotationObj( pDocShell, aPos ); in GetObjectByIndex_Impl()
3564 if (pDocShell) in insertNew()
3569 ScDocFunc aFunc( *pDocShell ); in insertNew()
3577 if (pDocShell) in removeByIndex()
3586 ScDocFunc aFunc(*pDocShell); in removeByIndex()
3609 if (pDocShell) in getCount()
3611 ScCellIterator aCellIter( pDocShell->GetDocument(), 0,0, nTab, MAXCOL,MAXROW, nTab ); in getCount()
3647 pDocShell( pDocSh ), in ScScenariosObj()
3650 pDocShell->GetDocument()->AddUnoObject(*this); in ScScenariosObj()
3655 if (pDocShell) in ~ScScenariosObj()
3656 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScScenariosObj()
3670 pDocShell = NULL; // ungueltig geworden in Notify()
3680 if ( pDocShell ) in GetScenarioIndex_Impl()
3685 ScDocument* pDoc = pDocShell->GetDocument(); in GetScenarioIndex_Impl()
3702 if ( pDocShell && nIndex >= 0 && nIndex < nCount ) in GetObjectByIndex_Impl()
3703 return new ScTableSheetObj( pDocShell, nTab+static_cast<SCTAB>(nIndex)+1 ); in GetObjectByIndex_Impl()
3711 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in GetObjectByName_Impl()
3712 return new ScTableSheetObj( pDocShell, nTab+nIndex+1 ); in GetObjectByName_Impl()
3723 if ( pDocShell ) in addNewByName()
3748 pDocShell->MakeScenario( nTab, aNameStr, aCommStr, aColor, nFlags, aMarkData ); in addNewByName()
3757 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in removeByName()
3759 ScDocFunc aFunc(*pDocShell); in removeByName()
3779 if ( pDocShell ) in getCount()
3781 ScDocument* pDoc = pDocShell->GetDocument(); in getCount()
3841 if ( pDocShell ) // sonst ist auch Count = 0 in getElementNames()
3844 ScDocument* pDoc = pDocShell->GetDocument(); in getElementNames()