summaryrefslogtreecommitdiff
path: root/sc/inc/cell.hxx
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-07-06 20:59:34 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-11 20:37:40 -0400
commit9c1cab31c7072079d50794f390c357c164447898 (patch)
tree8b8c1be4eb7881423abcf87b7b1af334d637ba73 /sc/inc/cell.hxx
parent5e92e0282691d54b7919e71041d6a9a09a495ec0 (diff)
Set proper number format for formula cell
Set proper number format for formula cell so that cached formula results are displayed properly. Example: so =NOT(1) will properly display as FALSE instead of as 0. Change-Id: Ifa4e3e83bc81779e34be385508da23a3b66c0a8c
Diffstat (limited to 'sc/inc/cell.hxx')
-rw-r--r--sc/inc/cell.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index f609a4642109..204e289b7967 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -448,6 +448,7 @@ public:
sal_uInt16 GetErrCode(); // interpret first if necessary
sal_uInt16 GetRawError(); // don't interpret, just return code or result error
short GetFormatType() const { return nFormatType; }
+ void SetFormatType( short nFType ) { nFormatType = nFType; }
sal_uLong GetFormatIndex() const { return nFormatIndex; }
void GetFormatInfo( short& nType, sal_uLong& nIndex ) const
{ nType = nFormatType; nIndex = nFormatIndex; }