summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-16 18:23:25 +0100
committerEike Rathke <erack@redhat.com>2016-11-16 18:24:00 +0100
commit83cbbc6d664d949f6405409713c5bda1a5be559f (patch)
treed7d06317429e5b22c14ebe7d7522d6afcc174a90 /sc/inc/token.hxx
parented5a8df72ac2d14aa2f5d1f87543fcfff9ad9d7d (diff)
tdf#96475 restore the EmptyDisplayedAsString condition during load
So also "empty" result cells with a number format applied are displayed empty, instead of 1899-12-30 for example. Change-Id: I5280d0213b8a809a04c5cb152ded58028706493a
Diffstat (limited to 'sc/inc/token.hxx')
-rw-r--r--sc/inc/token.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 94a1da8b0db1..e8d313a7da64 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -388,11 +388,13 @@ private:
double mfDouble;
svl::SharedString maString;
OUString maFormula;
+ bool mbEmptyDisplayedAsString;
public:
ScHybridCellToken(
- double f, const svl::SharedString & rStr, const OUString & rFormula );
+ double f, const svl::SharedString & rStr, const OUString & rFormula, bool bEmptyDisplayedAsString );
const OUString& GetFormula() const { return maFormula; }
+ bool IsEmptyDisplayedAsString() const { return mbEmptyDisplayedAsString; }
virtual double GetDouble() const override;
virtual svl::SharedString GetString() const override;