diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-21 16:41:13 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-09-26 11:46:52 +0200 |
commit | 5c87937273c93ff9e9630f9b718fc911bb1665f9 (patch) | |
tree | eef39dca7531995c50df2069c6f410e718b07eac | |
parent | bc234b4e1103cf8f79a7526ad80dcd9d0b78b89b (diff) |
unusedcode: more removing
Change-Id: Ic8be585925edd63724d28a255c9e33170a4a041e
-rw-r--r-- | sc/source/ui/vba/excelvbahelper.cxx | 17 | ||||
-rw-r--r-- | sc/source/ui/vba/excelvbahelper.hxx | 2 | ||||
-rwxr-xr-x | unusedcode.easy | 2 |
3 files changed, 0 insertions, 21 deletions
diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx index 2da0df5c1a32..cfbb7e79b64b 100644 --- a/sc/source/ui/vba/excelvbahelper.cxx +++ b/sc/source/ui/vba/excelvbahelper.cxx @@ -102,23 +102,6 @@ getUnoSheetModuleObj( const uno::Reference< table::XCellRange >& xRange ) throw return getUnoSheetModuleObj( xSheet ); } -ScDocShell* GetDocShellFromRanges( const uno::Reference< sheet::XSheetCellRangeContainer >& xRanges ) throw ( uno::RuntimeException ) -{ - // need the ScCellRangesBase to get docshell - uno::Reference< uno::XInterface > xIf( xRanges, uno::UNO_QUERY_THROW ); - return GetDocShellFromRange( xIf ); -} - -ScDocument* GetDocumentFromRange( const uno::Reference< uno::XInterface >& xRange ) throw ( uno::RuntimeException ) -{ - ScDocShell* pDocShell = GetDocShellFromRange( xRange ); - if ( !pDocShell ) - { - throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Failed to access underlying document from uno range object" ) ), uno::Reference< uno::XInterface >() ); - } - return pDocShell->GetDocument(); -} - void implSetZoom( const uno::Reference< frame::XModel >& xModel, sal_Int16 nZoom, std::vector< SCTAB >& nTabs ) { ScTabViewShell* pViewSh = excel::getBestViewShell( xModel ); diff --git a/sc/source/ui/vba/excelvbahelper.hxx b/sc/source/ui/vba/excelvbahelper.hxx index 2009cc39a128..955802c8e796 100644 --- a/sc/source/ui/vba/excelvbahelper.hxx +++ b/sc/source/ui/vba/excelvbahelper.hxx @@ -68,8 +68,6 @@ css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const cs css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::frame::XModel >& xModel, SCTAB nTab ) throw ( css::uno::RuntimeException ); ScDocShell* GetDocShellFromRange( const css::uno::Reference< css::uno::XInterface >& xRange ) throw ( css::uno::RuntimeException ); -ScDocShell* GetDocShellFromRanges( const css::uno::Reference< css::sheet::XSheetCellRangeContainer >& xRanges ) throw ( css::uno::RuntimeException ); -ScDocument* GetDocumentFromRange( const css::uno::Reference< css::uno::XInterface >& xRange ) throw ( css::uno::RuntimeException ); void setUpDocumentModules( const css::uno::Reference< css::sheet::XSpreadsheetDocument >& xDoc ); // ============================================================================ diff --git a/unusedcode.easy b/unusedcode.easy index 9a307b0badef..71c68b7f0847 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -84,8 +84,6 @@ dbtools::getConnection(rtl::OUString const&, rtl::OUString const&, rtl::OUString formula::FormulaTokenIterator::First() framework::OReadMenuDocumentHandler::getServiceFactory() jfw_plugin::VendorBase::createInstance() -ooo::vba::excel::GetDocShellFromRanges(com::sun::star::uno::Reference<com::sun::star::sheet::XSheetCellRangeContainer> const&) -ooo::vba::excel::GetDocumentFromRange(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&) oox::drawingml::TextListStyle::dump() const oox::ole::AxFormPageModel::AxFormPageModel() oox::ole::AxMultiPageModel::AxMultiPageModel() |