Lines Matching refs:Reference
104 static void getNewSpreadsheetName (rtl::OUString &aNewName, rtl::OUString aOldName, uno::Reference … in getNewSpreadsheetName()
107 …II_USTRINGPARAM( "getNewSpreadsheetName() xSpreadDoc is null" ) ), uno::Reference< uno::XInterface… in getNewSpreadsheetName()
119 static void removeAllSheets( uno::Reference <sheet::XSpreadsheetDocument>& xSpreadDoc, rtl::OUStrin… in removeAllSheets()
122 …NSTASCII_USTRINGPARAM( "removeAllSheets() xSpreadDoc is null" ) ), uno::Reference< uno::XInterface… in removeAllSheets()
123 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in removeAllSheets()
124 uno::Reference <container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY ); in removeAllSheets()
128 uno::Reference<container::XNameContainer> xNameContainer(xSheets,uno::UNO_QUERY_THROW); in removeAllSheets()
131 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(i), uno::UNO_QUERY); in removeAllSheets()
132 uno::Reference< container::XNamed > xNamed( xSheet, uno::UNO_QUERY_THROW ); in removeAllSheets()
139 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(0), uno::UNO_QUERY); in removeAllSheets()
140 uno::Reference< container::XNamed > xNamed( xSheet, uno::UNO_QUERY_THROW ); in removeAllSheets()
148 static uno::Reference<frame::XModel>
151 uno::Reference<frame::XModel> xModel; in openNewDoc()
154 …uno::Reference< beans::XPropertySet > xProps( ::comphelper::getProcessServiceFactory(), uno::UNO_Q… in openNewDoc()
155 …uno::Reference< uno::XComponentContext > xContext( xProps->getPropertyValue( rtl::OUString( RTL_C… in openNewDoc()
156 uno::Reference<lang::XMultiComponentFactory > xServiceManager( in openNewDoc()
159 uno::Reference <frame::XComponentLoader > xComponentLoader( in openNewDoc()
164 uno::Reference<lang::XComponent > xComponent( xComponentLoader->loadComponentFromURL( in openNewDoc()
168 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( xComponent, uno::UNO_QUERY_THROW ); in openNewDoc()
181 ScVbaWorksheet::ScVbaWorksheet( const uno::Reference< XHelperInterface >& xParent, const uno::Refer… in ScVbaWorksheet()
185 ScVbaWorksheet::ScVbaWorksheet(const uno::Reference< XHelperInterface >& xParent, const uno::Refere… in ScVbaWorksheet()
186 const uno::Reference< sheet::XSpreadsheet >& xSheet, in ScVbaWorksheet()
187 …const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException) : WorksheetImpl_BASE… in ScVbaWorksheet()
192 …uno::Reference< uno::XComponentContext> const & xContext ) throw ( lang::IllegalArgumentException … in ScVbaWorksheet()
200 uno::Reference< sheet::XSpreadsheetDocument > xSpreadDoc( mxModel, uno::UNO_QUERY_THROW ); in ScVbaWorksheet()
201 …uno::Reference< container::XNameAccess > xNameAccess( xSpreadDoc->getSheets(), uno::UNO_QUERY_THRO… in ScVbaWorksheet()
212 uno::Reference< container::XNamed > xNamed( getSheet(), uno::UNO_QUERY_THROW ); in getName()
219 uno::Reference< container::XNamed > xNamed( getSheet(), uno::UNO_QUERY_THROW ); in setName()
226 uno::Reference< beans::XPropertySet > xProps( getSheet(), uno::UNO_QUERY_THROW ); in getVisible()
255 uno::Reference< beans::XPropertySet > xProps( getSheet(), uno::UNO_QUERY_THROW ); in setVisible()
268 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in getEnableSelection()
272 uno::Reference< frame::XModel > xModel( getModel(), uno::UNO_QUERY_THROW ); in getEnableSelection()
291 uno::Reference< XInterface >() ); in getEnableSelection()
306 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in setEnableSelection()
310 uno::Reference< frame::XModel > xModel( getModel(), uno::UNO_QUERY_THROW ); in setEnableSelection()
334 uno::Reference< XInterface >() ); in setEnableSelection()
338 uno::Reference< beans::XPropertySet > ScVbaWorksheet::getFirstDBRangeProperties() throw (uno::Runti… in getFirstDBRangeProperties()
340 uno::Reference< beans::XPropertySet > xModelProps( mxModel, uno::UNO_QUERY_THROW ); in getFirstDBRangeProperties()
341 uno::Reference< container::XIndexAccess > xDBRangesIA( xModelProps->getPropertyValue( in getFirstDBRangeProperties()
346 …uno::Reference< sheet::XCellRangeReferrer > xDBRange( xDBRangesIA->getByIndex( nIndex ), uno::UNO_… in getFirstDBRangeProperties()
348 …uno::Reference< sheet::XCellRangeAddressable > xRangeAddr( xDBRange->getReferredCells(), uno::UNO_… in getFirstDBRangeProperties()
350 return uno::Reference< beans::XPropertySet >( xDBRange, uno::UNO_QUERY_THROW ); in getFirstDBRangeProperties()
352 return uno::Reference< beans::XPropertySet >(); in getFirstDBRangeProperties()
357 uno::Reference< beans::XPropertySet > xDBRangeProps = getFirstDBRangeProperties(); in getAutoFilterMode()
367 uno::Reference< beans::XPropertySet > xDBRangeProps = getFirstDBRangeProperties(); in setAutoFilterMode()
372 uno::Reference< excel::XRange >
375 uno::Reference< sheet::XSheetCellRange > xSheetCellRange(getSheet(), uno::UNO_QUERY_THROW ); in getUsedRange()
376 …uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor( getSheet()->createCursorByRange( xShee… in getUsedRange()
377 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW); in getUsedRange()
380 uno::Reference< table::XCellRange > xRange( xSheetCellCursor, uno::UNO_QUERY); in getUsedRange()
384 uno::Reference< excel::XOutline >
387 uno::Reference<sheet::XSheetOutline> xOutline(getSheet(),uno::UNO_QUERY_THROW); in Outline()
391 uno::Reference< excel::XPageSetup >
400 uno::Reference< sheet::XSheetPageBreak > xSheetPageBreak(getSheet(),uno::UNO_QUERY_THROW); in HPageBreaks()
401 …uno::Reference< excel::XHPageBreaks > xHPageBreaks( new ScVbaHPageBreaks( this, mxContext, xSheetP… in HPageBreaks()
410 uno::Reference< sheet::XSheetPageBreak > xSheetPageBreak( getSheet(), uno::UNO_QUERY_THROW ); in VPageBreaks()
411 …uno::Reference< excel::XVPageBreaks > xVPageBreaks( new ScVbaVPageBreaks( this, mxContext, xSheetP… in VPageBreaks()
438 uno::Reference<util::XProtectable > xProtectable(getSheet(), uno::UNO_QUERY_THROW); in getProtectContents()
457 uno::Reference< sheet::XSpreadsheetView > xSpreadsheet( in Activate()
471 uno::Reference<excel::XWorksheet> xSheet; in Move()
476 uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor = getSheet()->createCursor( ); in Move()
477 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW); in Move()
478 uno::Reference< table::XCellRange > xRange1( xSheetCellCursor, uno::UNO_QUERY); in Move()
480 uno::Reference<excel::XRange> xRange = new ScVbaRange( this, mxContext, xRange1); in Move()
484 uno::Reference<frame::XModel> xModel = openNewDoc(aCurrSheetName); in Move()
493 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in Move()
500 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Move()
508 uno::Reference<excel::XWorksheet> xSheet; in Copy()
512 uno::Reference< sheet::XSheetCellCursor > xSheetCellCursor = getSheet()->createCursor( ); in Copy()
513 uno::Reference<sheet::XUsedAreaCursor> xUsedCursor(xSheetCellCursor,uno::UNO_QUERY_THROW); in Copy()
514 uno::Reference< table::XCellRange > xRange1( xSheetCellCursor, uno::UNO_QUERY); in Copy()
515 uno::Reference<excel::XRange> xRange = new ScVbaRange( this, mxContext, xRange1); in Copy()
519 uno::Reference<frame::XModel> xModel = openNewDoc(aCurrSheetName); in Copy()
527 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY ); in Copy()
535 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Copy()
546 uno::Reference<excel::XRange> xRange( Destination, uno::UNO_QUERY ); in Paste()
555 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in Delete()
564 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Delete()
565 uno::Reference<container::XNameContainer> xNameContainer(xSheets,uno::UNO_QUERY_THROW); in Delete()
571 uno::Reference< excel::XWorksheet >
574 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in getSheetAtOffset()
575 uno::Reference <sheet::XSpreadsheets> xSheets( xSpreadDoc->getSheets(), uno::UNO_QUERY_THROW ); in getSheetAtOffset()
576 uno::Reference <container::XIndexAccess> xIndex( xSheets, uno::UNO_QUERY_THROW ); in getSheetAtOffset()
580 return uno::Reference< excel::XWorksheet >(); in getSheetAtOffset()
582 uno::Reference< sheet::XSpreadsheet > xSheet(xIndex->getByIndex(nIdx), uno::UNO_QUERY_THROW); in getSheetAtOffset()
587 uno::Reference< excel::XWorksheet >
593 uno::Reference< excel::XWorksheet >
605 uno::Reference<util::XProtectable > xProtectable(getSheet(), uno::UNO_QUERY_THROW); in Protect()
614 uno::Reference<util::XProtectable > xProtectable(getSheet(), uno::UNO_QUERY_THROW); in Unprotect()
623 uno::Reference <sheet::XCalculatable> xReCalculate(getModel(), uno::UNO_QUERY_THROW); in Calculate()
627 uno::Reference< excel::XRange >
630 uno::Reference< excel::XRange > xSheetRange( new ScVbaRange( this, mxContext in Range()
631 , uno::Reference< table::XCellRange >( getSheet(), uno::UNO_QUERY_THROW ) ) ); in Range()
640 uno::Reference< frame::XModel > xModel( getModel() ); in CheckSpelling()
644 uno::Reference< excel::XRange >
647 uno::Reference< table::XCellRange > xRange( getSheet(),uno::UNO_QUERY_THROW ); in getSheetRange()
648 return uno::Reference< excel::XRange >( new ScVbaRange( this, mxContext, xRange ) ); in getSheetRange()
653 uno::Reference< excel::XRange >
659 uno::Reference< table::XCellRange > xRange( getSheet(), uno::UNO_QUERY_THROW ); in Cells()
663 uno::Reference< excel::XRange >
669 uno::Reference< excel::XRange >
680 uno::Reference< table::XTableChartsSupplier > xChartSupplier( getSheet(), uno::UNO_QUERY_THROW ); in ChartObjects()
681 uno::Reference< table::XTableCharts > xTableCharts = xChartSupplier->getCharts(); in ChartObjects()
683 uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( mxSheet, uno::UNO_QUERY_THROW ); in ChartObjects()
688 uno::Reference< XCollection > xColl( mxCharts, uno::UNO_QUERY_THROW ); in ChartObjects()
699 uno::Reference< css::sheet::XSpreadsheet > xSheet = getSheet(); in PivotTables()
700 uno::Reference< sheet::XDataPilotTablesSupplier > xTables(xSheet, uno::UNO_QUERY_THROW ) ; in PivotTables()
701 …uno::Reference< container::XIndexAccess > xIndexAccess( xTables->getDataPilotTables(), uno::UNO_QU… in PivotTables()
703 uno::Reference< XCollection > xColl( new ScVbaPivotTables( this, mxContext, xIndexAccess ) ); in PivotTables()
712 uno::Reference< css::sheet::XSpreadsheet > xSheet = getSheet(); in Comments()
713 uno::Reference< sheet::XSheetAnnotationsSupplier > xAnnosSupp( xSheet, uno::UNO_QUERY_THROW ); in Comments()
714 …uno::Reference< sheet::XSheetAnnotations > xAnnos( xAnnosSupp->getAnnotations(), uno::UNO_QUERY_TH… in Comments()
715 uno::Reference< container::XIndexAccess > xIndexAccess( xAnnos, uno::UNO_QUERY_THROW ); in Comments()
716 …uno::Reference< XCollection > xColl( new ScVbaComments( this, mxContext, mxModel, xIndexAccess ) … in Comments()
730 …return uno::Reference< XCollection >( mxHlinks, uno::UNO_QUERY_THROW )->Item( aIndex, uno::Any() ); in Hyperlinks()
740 uno::Reference< beans::XPropertySet > xProps( mxModel, uno::UNO_QUERY_THROW ); in Names()
741 …uno::Reference< sheet::XNamedRanges > xNamedRanges( xProps->getPropertyValue( rtl::OUString( RTL_… in Names()
742 uno::Reference< XCollection > xNames( new ScVbaNames( this, mxContext, xNamedRanges, mxModel ) ); in Names()
751 uno::Reference< sheet::XSpreadsheet > xSpreadsheet( getSheet(), uno::UNO_QUERY_THROW ); in OLEObjects()
752 …uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW… in OLEObjects()
753 …uno::Reference< drawing::XDrawPage > xDrawPage( xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY_T… in OLEObjects()
754 uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPage, uno::UNO_QUERY_THROW ); in OLEObjects()
756 …uno::Reference< excel::XOLEObjects >xOleObjects( new ScVbaOLEObjects( this, mxContext, xIndexAcces… in OLEObjects()
765 uno::Reference< sheet::XSpreadsheet > xSpreadsheet( getSheet(), uno::UNO_QUERY_THROW ); in Shapes()
766 …uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW… in Shapes()
767 …uno::Reference< drawing::XShapes > xShapes( xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY_THROW… in Shapes()
768 uno::Reference< container::XIndexAccess > xIndexAccess( xShapes, uno::UNO_QUERY_THROW ); in Shapes()
770 …uno::Reference< msforms::XShapes> xVbaShapes( new ScVbaShapes( this, mxContext, xIndexAccess, getM… in Shapes()
785 return uno::Any( uno::Reference< XCollection >( mxButtons.get() ) ); in Buttons()
840 uno::Reference< frame::XModel > xModel( getModel(), uno::UNO_QUERY_THROW ); in ShowDataForm()
851 …( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Not implemented") ), uno::Reference< uno::XInterface… in ShowDataForm()
866 uno::Reference< beans::XIntrospectionAccess > SAL_CALL
869 return uno::Reference< beans::XIntrospectionAccess >(); in getIntrospection()
889 …uno::Reference< drawing::XControlShape > xControlShape( getControlShape( aPropertyName ), uno::UNO… in getValue()
891 …uno::Reference<lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno… in getValue()
892 …uno::Reference< XControlProvider > xControlProvider( xServiceManager->createInstanceWithContext( r… in getValue()
893 …uno::Reference< msforms::XControl > xControl( xControlProvider->createControl( xControlShape, get… in getValue()
903 uno::Reference< container::XNameAccess >
906 uno::Reference< container::XNameAccess > xFormControls; in getFormControls()
909 uno::Reference< sheet::XSpreadsheet > xSpreadsheet( getSheet(), uno::UNO_QUERY_THROW ); in getFormControls()
910 …uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xSpreadsheet, uno::UNO_QUERY_THROW… in getFormControls()
911 …uno::Reference< form::XFormsSupplier > xFormSupplier( xDrawPageSupplier->getDrawPage(), uno::UNO_… in getFormControls()
912 …uno::Reference< container::XIndexAccess > xIndexAccess( xFormSupplier->getForms(), uno::UNO_QUERY_… in getFormControls()
929 uno::Reference< container::XNameAccess > xFormControls( getFormControls() ); in hasProperty()
947 …uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( getSheet(), uno::UNO_QUERY_THROW ); in getControlShape()
948 …uno::Reference< container::XIndexAccess > xIndexAccess( xDrawPageSupplier->getDrawPage(), uno::UNO… in getControlShape()
955 uno::Reference< drawing::XControlShape > xControlShape( aUnoObj, uno::UNO_QUERY ); in getControlShape()
958 … uno::Reference< container::XNamed > xNamed( xControlShape->getControl(), uno::UNO_QUERY_THROW ); in getControlShape()
978 uno::Reference <sheet::XCalculatable> xCalculatable(getModel(), uno::UNO_QUERY_THROW); in setEnableCalculation()
984 uno::Reference <sheet::XCalculatable> xCalculatable(getModel(), uno::UNO_QUERY_THROW); in getEnableCalculation()
1003 uno::Reference< beans::XPropertySet > xSheetProp( mxSheet, uno::UNO_QUERY_THROW ); in getCodeName()
1010 uno::Reference< sheet::XCellRangeAddressable > xAddressable( mxSheet, uno::UNO_QUERY_THROW ); in getSheetID()
1033 uno::Reference< frame::XModel > xModel( getModel(), uno::UNO_QUERY_THROW ); in PrintOut()