Lines Matching refs:pDocShell

77     ScVbaObjectForCodeNameProvider( ScDocShell* pDocShell ) : mpDocShell( pDocShell )  in ScVbaObjectForCodeNameProvider()  argument
169 ScVbaCodeNameProvider( ScDocShell* pDocShell ) : mpDocShell( pDocShell ) {} in ScVbaCodeNameProvider() argument
385 sal_uInt16 nType, ScDocShell* pDocShell ) in MakeInstance() argument
418 if (pDocShell) in MakeInstance()
419 xRet.set((sheet::XSheetCellRanges*)new ScCellRangesObj( pDocShell, ScRangeList() )); in MakeInstance()
423 if (pDocShell) in MakeInstance()
424 xRet.set((beans::XPropertySet*)new ScDocDefaultsObj( pDocShell )); in MakeInstance()
427 if (pDocShell) in MakeInstance()
428 xRet.set((beans::XPropertySet*)new ScDrawDefaultsObj( pDocShell )); in MakeInstance()
436 if (pDocShell) in MakeInstance()
437 xRet.set(SvxUnoGradientTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
440 if (pDocShell) in MakeInstance()
441 xRet.set(SvxUnoHatchTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
444 if (pDocShell) in MakeInstance()
445 xRet.set(SvxUnoBitmapTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
448 if (pDocShell) in MakeInstance()
449 xRet.set(SvxUnoTransGradientTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
452 if (pDocShell) in MakeInstance()
453 xRet.set(SvxUnoMarkerTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
456 if (pDocShell) in MakeInstance()
457 xRet.set(SvxUnoDashTable_createInstance( pDocShell->MakeDrawLayer() )); in MakeInstance()
460 if (pDocShell) in MakeInstance()
461 xRet.set(SvxCreateNumRule( pDocShell->MakeDrawLayer() )); in MakeInstance()
466 if (pDocShell) in MakeInstance()
467 xRet.set((beans::XPropertySet*)new ScDocumentConfiguration(pDocShell)); in MakeInstance()
490 if (pDocShell) in MakeInstance()
491 …xRet.set((::cppu::OWeakObject * )new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_M… in MakeInstance()
495 if (pDocShell) in MakeInstance()
496 …xRet.set((::cppu::OWeakObject * )new SvXMLEmbeddedObjectHelper( *pDocShell, EMBEDDEDOBJECTHELPER_M… in MakeInstance()
501 if (pDocShell) in MakeInstance()
504 uno::Reference<sheet::XSpreadsheetDocument> xDoc( pDocShell->GetBaseModel(), uno::UNO_QUERY ); in MakeInstance()
509 if (pDocShell) in MakeInstance()
511 uno::Reference<sheet::XSpreadsheetDocument> xDoc( pDocShell->GetBaseModel(), uno::UNO_QUERY ); in MakeInstance()
517 if (pDocShell) in MakeInstance()
520 xRet.set(*new ScAddressConversionObj( pDocShell, bRange )); in MakeInstance()
525 if (pDocShell && pDocShell->GetDocument()) in MakeInstance()
526 xRet = *new ScChart2DataProvider( pDocShell->GetDocument() ); in MakeInstance()
530 if (pDocShell) in MakeInstance()
531 xRet.set(static_cast<sheet::XFormulaParser*>(new ScFormulaParserObj( pDocShell ))); in MakeInstance()
535 if (pDocShell) in MakeInstance()
537 ScDocument* pDoc = pDocShell->GetDocument(); in MakeInstance()
545 if (pDocShell && pDocShell->GetDocument()->IsInVBAMode()) in MakeInstance()
548 … xRet.set(static_cast<container::XNameAccess*>(new ScVbaObjectForCodeNameProvider( pDocShell ))); in MakeInstance()
552 if (pDocShell && pDocShell->GetDocument()->IsInVBAMode()) in MakeInstance()
555 xRet.set(static_cast<document::XCodeNameQuery*>(new ScVbaCodeNameProvider( pDocShell ))); in MakeInstance()
559 if (pDocShell) in MakeInstance()
562 if ( !pDocShell->GetBasicManager()->GetGlobalUNOConstant( "VBAGlobals", aGlobs ) ) in MakeInstance()
565 aArgs[ 0 ] <<= pDocShell->GetModel(); in MakeInstance()
567 pDocShell->GetBasicManager()->SetGlobalUNOConstant( "VBAGlobals", uno::Any( xRet ) ); in MakeInstance()
574 …::ooo::vba::createVBAUnoAPIServiceWithArgs( pDocShell, "com.sun.star.script.vba.VBASpreadsheetEven… in MakeInstance()
575 pDocShell->GetDocument()->SetVbaEventProcessor( xVbaEvents ); in MakeInstance()