summaryrefslogtreecommitdiff
path: root/sc/inc/global.hxx
diff options
context:
space:
mode:
authorRelease Engineers <releng@openoffice.org>2008-11-27 15:23:33 +0000
committerRelease Engineers <releng@openoffice.org>2008-11-27 15:23:33 +0000
commit5beec3891e1328a30b6c1fa33c2227ce8381855b (patch)
treea228838850e863e7659656b49d6da883f3bc0726 /sc/inc/global.hxx
parent811e7a83cbca79b0779ac2f77fc74b1f99c48439 (diff)
CWS-TOOLING: integrate CWS koheidatapilot02
2008-11-24 15:34:25 +0100 kohei r264231 : modified ScViewData::IsMultiMarked() to treat simple-filtered areas as simple-marked areas, for backword compatibility. Simple-filtered areas are not multi-marked areas. 2008-11-07 20:38:51 +0100 kohei r263485 : more unused methods in the header without definitions. 2008-11-07 20:26:25 +0100 kohei r263484 : removed more unused methods. 2008-11-07 19:40:39 +0100 kohei r263481 : removed unused methods based on Caolan's callcatcher output on m35. 2008-11-06 19:32:22 +0100 kohei r263405 : CWS-TOOLING: rebase CWS koheidatapilot02 to trunk@263288 (milestone: DEV300:m35) 2008-10-06 15:18:57 +0200 kohei r262062 : #i94619# allow XDataPilotTable interface to be queried again. Patch submitted by Noel Power. 2008-10-01 21:49:39 +0200 kohei r262020 : #i90402# don't insert drill-down sheet when the document is in read-only mode. 2008-10-01 03:03:19 +0200 kohei r261982 : #i93918# exclude hidden items and items that are excluded due to ranks (i.e. top X items). #i93998# reduce memory consumption of datapilot cache tables by pooling cache table cell data & use null pointers to represent empty cells. 2008-09-30 23:35:14 +0200 kohei r261981 : #i92378# keep the layout dialog open when the destination range is not empty and the user has decided to cancel data pilot creation. 2008-09-30 23:14:55 +0200 kohei r261980 : #i94281# fixed a regression where the data pilot layout dialog fails to appear on a filtered cell range.
Diffstat (limited to 'sc/inc/global.hxx')
-rw-r--r--sc/inc/global.hxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 6965b2acc8e7..eed8720b0836 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -38,6 +38,8 @@
#include <com/sun/star/uno/Reference.hxx>
#include "scdllapi.h"
+#include <hash_map>
+
class ImageList;
class Bitmap;
class SfxItemSet;
@@ -884,6 +886,46 @@ struct ScConsolidateParam
};
// -----------------------------------------------------------------------
+
+class ScSimpleSharedString
+{
+public:
+ static const sal_Int32 EMPTY = 0;
+
+ ScSimpleSharedString();
+ ScSimpleSharedString(const ScSimpleSharedString& r);
+ ~ScSimpleSharedString();
+
+ const String* getString(sal_Int32 nId);
+ sal_Int32 getStringId(const String& aStr);
+ sal_Int32 insertString(const String& aStr);
+
+private:
+
+ /** internal shared string table implementation */
+ class StringTable
+ {
+ public:
+ sal_Int32 insertString(const String& aStr);
+ sal_Int32 getStringId(const String& aStr);
+ const String* getString(sal_Int32 nId) const;
+
+ StringTable();
+ StringTable(const StringTable& r);
+ ~StringTable();
+
+ private:
+ typedef ::std::hash_map< String, sal_Int32, ScStringHashCode, ::std::equal_to< String > > SharedStrMap;
+
+ ::std::vector<String> maSharedStrings;
+ SharedStrMap maSharedStringIds;
+ sal_Int32 mnStrCount;
+ };
+
+ StringTable maStringTable;
+};
+
+// -----------------------------------------------------------------------
extern ::utl::TransliterationWrapper* GetScGlobalpTransliteration();//CHINA001
extern const LocaleDataWrapper* GetScGlobalpLocaleData();