summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-09-21 16:41:13 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-09-26 11:46:52 +0200
commit5c87937273c93ff9e9630f9b718fc911bb1665f9 (patch)
treeeef39dca7531995c50df2069c6f410e718b07eac /sc
parentbc234b4e1103cf8f79a7526ad80dcd9d0b78b89b (diff)
unusedcode: more removing
Change-Id: Ic8be585925edd63724d28a255c9e33170a4a041e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/excelvbahelper.cxx17
-rw-r--r--sc/source/ui/vba/excelvbahelper.hxx2
2 files changed, 0 insertions, 19 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 );
// ============================================================================