summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-03 14:36:01 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-04 00:25:52 -0500
commitf0002a68c4dcf99d775d9575deabec18c1bd5852 (patch)
treec5fe95f26bf566279d7915e195b1110a7cbf5d4b /sc
parentbd3919c03dc1e5de2eb986321477bfe4a9b93cf4 (diff)
Nobody uses StrData and ScStrCollection now.
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/collect.hxx32
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/inc/dpdimsave.hxx1
-rw-r--r--sc/inc/dpobject.hxx1
-rw-r--r--sc/inc/dpoutput.hxx1
-rw-r--r--sc/source/core/tool/collect.cxx27
-rw-r--r--sc/source/ui/inc/dbfunc.hxx1
7 files changed, 0 insertions, 64 deletions
diff --git a/sc/inc/collect.hxx b/sc/inc/collect.hxx
index bc4144fca17c..e0d4f8f8cfc2 100644
--- a/sc/inc/collect.hxx
+++ b/sc/inc/collect.hxx
@@ -109,38 +109,6 @@ public:
sal_Bool operator==(const ScSortedCollection& rCmp) const;
};
-
-
-//------------------------------------------------------------------------
-class StrData : public ScDataObject
-{
-friend class ScStrCollection;
- String aStr;
-public:
- StrData(const String& rStr) : aStr(rStr) {}
- StrData(const StrData& rData) : ScDataObject(), aStr(rData.aStr) {}
- virtual ScDataObject* Clone() const;
- const String& GetString() const { return aStr; }
- // SetString only, if StrData is not in ScStrCollection! for example
- // for Searcher
- void SetString( const String& rNew ) { aStr = rNew; }
-};
-
-class SvStream;
-
-class SC_DLLPUBLIC ScStrCollection : public ScSortedCollection
-{
-public:
- ScStrCollection(sal_uInt16 nLim = 4, sal_uInt16 nDel = 4, sal_Bool bDup = false) :
- ScSortedCollection ( nLim, nDel, bDup ) {}
- ScStrCollection(const ScStrCollection& rScStrCollection) :
- ScSortedCollection ( rScStrCollection ) {}
-
- virtual ScDataObject* Clone() const;
- StrData* operator[]( const sal_uInt16 nIndex) const {return (StrData*)At(nIndex);}
- virtual short Compare(ScDataObject* pKey1, ScDataObject* pKey2) const;
-};
-
//------------------------------------------------------------------------
// TypedScStrCollection: wie ScStrCollection, nur, dass Zahlen vor Strings
// sortiert werden
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 86b2febfbe9d..b402ac83d7e8 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -118,7 +118,6 @@ class ScTokenArray;
class ScValidationData;
class ScValidationDataList;
class ScViewOptions;
-class ScStrCollection;
class TypedScStrCollection;
class ScChangeTrack;
class ScEditEngineDefaulter;
diff --git a/sc/inc/dpdimsave.hxx b/sc/inc/dpdimsave.hxx
index 38c8cb078e39..7820ce2497f6 100644
--- a/sc/inc/dpdimsave.hxx
+++ b/sc/inc/dpdimsave.hxx
@@ -39,7 +39,6 @@
class ScDPGroupTableData;
class ScDPGroupDimension;
class ScDPObject;
-class ScStrCollection;
class SvNumberFormatter;
class ScDPSaveGroupDimension;
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 251e51583f11..ca1dd9ea2e57 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -65,7 +65,6 @@ class ScPivotCollection;
struct ScPivotParam;
struct ScImportSourceDesc;
class ScSheetSourceDesc;
-class ScStrCollection;
class TypedScStrCollection;
struct PivotField;
class ScDPCacheTable;
diff --git a/sc/inc/dpoutput.hxx b/sc/inc/dpoutput.hxx
index 56bc61e281fd..97f931e8a5e3 100644
--- a/sc/inc/dpoutput.hxx
+++ b/sc/inc/dpoutput.hxx
@@ -51,7 +51,6 @@ namespace com { namespace sun { namespace star { namespace sheet {
class Rectangle;
class SvStream;
class ScDocument;
-class ScStrCollection;
struct ScDPOutLevelData;
diff --git a/sc/source/core/tool/collect.cxx b/sc/source/core/tool/collect.cxx
index 23b6ccad3cbe..f0ba17837782 100644
--- a/sc/source/core/tool/collect.cxx
+++ b/sc/source/core/tool/collect.cxx
@@ -303,33 +303,6 @@ sal_Bool ScSortedCollection::IsEqual(ScDataObject* pKey1, ScDataObject* pKey2) c
}
//------------------------------------------------------------------------
-
-ScDataObject* StrData::Clone() const
-{
- return new StrData(*this);
-}
-
-//------------------------------------------------------------------------
-
-short ScStrCollection::Compare(ScDataObject* pKey1, ScDataObject* pKey2) const
-{
- StringCompare eComp = ((StrData*)pKey1)->aStr.CompareTo(((StrData*)pKey2)->aStr);
- if (eComp == COMPARE_EQUAL)
- return 0;
- else if (eComp == COMPARE_LESS)
- return -1;
- else
- return 1;
-}
-
-//------------------------------------------------------------------------
-
-ScDataObject* ScStrCollection::Clone() const
-{
- return new ScStrCollection(*this);
-}
-
-//------------------------------------------------------------------------
// TypedScStrCollection
//------------------------------------------------------------------------
diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx
index 7c02000e508c..9f201e3fecb8 100644
--- a/sc/source/ui/inc/dbfunc.hxx
+++ b/sc/source/ui/inc/dbfunc.hxx
@@ -42,7 +42,6 @@ class ScDBData;
class ScDBCollection;
class ScDPObject;
class ScDPSaveData;
-class ScStrCollection;
struct ScDPNumGroupInfo;
struct ScSubTotalParam;