Lines Matching refs:xSpreadDoc

104 …tring &aNewName, rtl::OUString aOldName, uno::Reference <sheet::XSpreadsheetDocument>& xSpreadDoc )  in getNewSpreadsheetName()  argument
106 if (!xSpreadDoc.is()) in getNewSpreadsheetName()
112 while ( ScVbaWorksheets::nameExists(xSpreadDoc,aNewName, nTab ) ) in getNewSpreadsheetName()
119 static void removeAllSheets( uno::Reference <sheet::XSpreadsheetDocument>& xSpreadDoc, rtl::OUStrin… in removeAllSheets() argument
121 if (!xSpreadDoc.is()) in removeAllSheets()
123 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in removeAllSheets()
168 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( xComponent, uno::UNO_QUERY_THROW ); in openNewDoc() local
169 if ( xSpreadDoc.is() ) in openNewDoc()
171 removeAllSheets(xSpreadDoc,aSheetName); in openNewDoc()
173 xModel.set(xSpreadDoc,uno::UNO_QUERY_THROW); in openNewDoc()
200 uno::Reference< sheet::XSpreadsheetDocument > xSpreadDoc( mxModel, uno::UNO_QUERY_THROW ); in ScVbaWorksheet() local
201 …uno::Reference< container::XNameAccess > xNameAccess( xSpreadDoc->getSheets(), uno::UNO_QUERY_THRO… in ScVbaWorksheet()
268 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in getEnableSelection() local
270 if ( ScVbaWorksheets::nameExists(xSpreadDoc, getName(), nTab) ) in getEnableSelection()
306 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in setEnableSelection() local
308 if ( ScVbaWorksheets::nameExists(xSpreadDoc, getName(), nTab) ) in setEnableSelection()
493 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in Move() local
495 if ( ScVbaWorksheets::nameExists (xSpreadDoc, xSheet->getName(), nDest) ) in Move()
500 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Move()
527 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY ); in Copy() local
530 if ( ScVbaWorksheets::nameExists (xSpreadDoc, aSheetName, nDest ) ) in Copy()
535 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Copy()
536 getNewSpreadsheetName(aSheetName,aCurrSheetName,xSpreadDoc); in Copy()
555 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in Delete() local
557 if ( xSpreadDoc.is() ) in Delete()
560 if (!ScVbaWorksheets::nameExists(xSpreadDoc, aSheetName, nTab )) in Delete()
564 uno::Reference<sheet::XSpreadsheets> xSheets = xSpreadDoc->getSheets(); in Delete()
574 uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW ); in getSheetAtOffset() local
575 uno::Reference <sheet::XSpreadsheets> xSheets( xSpreadDoc->getSheets(), uno::UNO_QUERY_THROW ); in getSheetAtOffset()
579 if ( !ScVbaWorksheets::nameExists (xSpreadDoc, getName(), nIdx ) ) in getSheetAtOffset()