diff options
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 37 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlimprt.hxx | 1 | ||||
-rwxr-xr-x | unusedcode.easy | 1 |
3 files changed, 0 insertions, 39 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 55693ef799a6..dcf37b4abe85 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -3199,43 +3199,6 @@ void ScXMLImport::ProgressBarIncrement(bool bEditCell, sal_Int32 nInc) } } -SCTAB ScXMLImport::GetVisibleSheet() -{ - // Get the visible sheet number from model's view data (after settings were loaded), - // or 0 (default: first sheet) if no settings available. - - uno::Reference<document::XViewDataSupplier> xSupp(GetModel(), uno::UNO_QUERY); - if (xSupp.is()) - { - uno::Reference<container::XIndexAccess> xIndex = xSupp->getViewData(); - if ( xIndex.is() && xIndex->getCount() > 0 ) - { - uno::Any aAny( xIndex->getByIndex(0) ); - uno::Sequence<beans::PropertyValue> aViewSettings; // settings for (first) view - if ( aAny >>= aViewSettings ) - { - sal_Int32 nCount = aViewSettings.getLength(); - for (sal_Int32 i = 0; i < nCount; ++i) - { - if ( aViewSettings[i].Name.compareToAscii(SC_ACTIVETABLE) == 0 ) - { - rtl::OUString sValue; - if(aViewSettings[i].Value >>= sValue) - { - String sTabName(sValue); - SCTAB nTab = 0; - if (pDoc->GetTable(sTabName, nTab)) - return nTab; - } - } - } - } - } - } - - return 0; -} - void ScXMLImport::ExtractFormulaNamespaceGrammar( OUString& rFormula, OUString& rFormulaNmsp, FormulaGrammar::Grammar& reGrammar, const OUString& rAttrValue, bool bRestrictToExternalNmsp ) const diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx index 65f7a5e59540..f3706d9854cf 100644 --- a/sc/source/filter/xml/xmlimprt.hxx +++ b/sc/source/filter/xml/xmlimprt.hxx @@ -1105,7 +1105,6 @@ public: void SetLabelRanges(); void AddDefaultNote( const com::sun::star::table::CellAddress& aCell ); - SCTAB GetVisibleSheet(); /** Extracts the formula string, the formula grammar namespace URL, and a grammar enum value from the passed formula attribute value. diff --git a/unusedcode.easy b/unusedcode.easy index 11c98189606c..ff812000ea59 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -19,7 +19,6 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&) ScXMLExport::HasDrawPages(com::sun::star::uno::Reference<com::sun::star::sheet::XSpreadsheetDocument>&) -ScXMLImport::GetVisibleSheet() SecurityEnvironment_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>) SotStorage::GetProperty(String const&, String const&, com::sun::star::uno::Any&) SpinButton::SpinButton(Window*, ResId const&) |