summaryrefslogtreecommitdiffstats
path: root/sc/inc/cellvalue.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-07 17:27:02 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-08 15:48:10 -0400
commit658fc68d574bd49b8b233ad5ed886758e290b3aa (patch)
treeb1acc482e6b8a8aac78e729b1ea0419aea4df607 /sc/inc/cellvalue.hxx
parentContentInfo to store svl::SharedString instead of OUString. (diff)
downloadcore-658fc68d574bd49b8b233ad5ed886758e290b3aa.tar.gz
core-658fc68d574bd49b8b233ad5ed886758e290b3aa.zip
Store svl::SharedString in document cell storage instead of OUString.
With this, both ScColumn and ScMatrix store svl::SharedString as their string values, instead of OUString. Change-Id: I3faece94d98f774881fd72b3ed5f6143504cd350
Diffstat (limited to 'sc/inc/cellvalue.hxx')
-rw-r--r--sc/inc/cellvalue.hxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/sc/inc/cellvalue.hxx b/sc/inc/cellvalue.hxx
index fd112a6ab23a..c2606b511e72 100644
--- a/sc/inc/cellvalue.hxx
+++ b/sc/inc/cellvalue.hxx
@@ -18,6 +18,12 @@ class EditTextObject;
class ScColumn;
struct ScRefCellValue;
+namespace svl {
+
+class SharedString;
+
+}
+
/**
* Store arbitrary cell value of any kind. It only stores cell value and
* nothing else. It creates a copy of the original cell value, and manages
@@ -28,7 +34,7 @@ struct SC_DLLPUBLIC ScCellValue
CellType meType;
union {
double mfValue;
- OUString* mpString;
+ svl::SharedString* mpString;
EditTextObject* mpEditText;
ScFormulaCell* mpFormula;
};
@@ -36,7 +42,7 @@ struct SC_DLLPUBLIC ScCellValue
ScCellValue();
ScCellValue( const ScRefCellValue& rCell );
ScCellValue( double fValue );
- ScCellValue( const OUString& rString );
+ ScCellValue( const svl::SharedString& rString );
ScCellValue( const EditTextObject& rEditText );
ScCellValue( const ScFormulaCell& rFormula );
ScCellValue( const ScCellValue& r );
@@ -45,7 +51,7 @@ struct SC_DLLPUBLIC ScCellValue
void clear();
void set( double fValue );
- void set( const OUString& rStr );
+ void set( const svl::SharedString& rStr );
void set( const EditTextObject& rEditText );
void set( const ScFormulaCell& rFormula );
void set( ScFormulaCell* pFormula );
@@ -98,14 +104,14 @@ struct SC_DLLPUBLIC ScRefCellValue
CellType meType;
union {
double mfValue;
- const OUString* mpString;
+ const svl::SharedString* mpString;
const EditTextObject* mpEditText;
ScFormulaCell* mpFormula;
};
ScRefCellValue();
ScRefCellValue( double fValue );
- ScRefCellValue( const OUString* pString );
+ ScRefCellValue( const svl::SharedString* pString );
ScRefCellValue( const EditTextObject* pEditText );
ScRefCellValue( ScFormulaCell* pFormula );
ScRefCellValue( const ScRefCellValue& r );