[Libreoffice-commits] .: sc/source unusedcode.easy

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Aug 9 07:06:49 PDT 2012


 sc/source/filter/xml/xmlimprt.cxx |   37 -------------------------------------
 sc/source/filter/xml/xmlimprt.hxx |    1 -
 unusedcode.easy                   |    1 -
 3 files changed, 39 deletions(-)

New commits:
commit 3e65ed611f25064aa865e1559fccfeebb0e3c411
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Aug 9 16:05:37 2012 +0200

    Bin ScXMLImport::GetVisibleSheet()
    
    Change-Id: I3d5d03f1b5d357d3db1e0c1833824c154178533a

diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 55693ef..dcf37b4 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 65f7a5e..f3706d9 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 11c9818..ff81200 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&)


More information about the Libreoffice-commits mailing list