diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-08 17:40:32 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-08 18:09:51 -0500 |
commit | 3cea6bb57757ce085f01f0b86b000cfc0592dca7 (patch) | |
tree | b490e8d8f4cea61a85e2da27314f509307b7b06a /sc/inc | |
parent | 5d2e7cbf6433ecced0ecac46b3abdaf97b82880b (diff) |
More consistent number format inheritence policy.
The new policy is to always inherit number format of a formula cell
from its reference unless the cell already has an explicit number format
set.
Also to avoid recalculating formula cells on load just because they have
the 'General' number format. This leads to excessive re-calculation of
formula cells upon load even when the cells already have results cached.
Change-Id: I28128d3fef296e09e62bea72e8aab75de9876239
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/formulacell.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 6f3c555a09a4..f2bc36cbc398 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -210,6 +210,7 @@ public: void SetNeedsListening( bool bVar ); void SetNeedsDirty( bool bVar ); void SetNeedNumberFormat( bool bVal ); + bool NeedsNumberFormat() const; short GetFormatType() const; void Compile(const OUString& rFormula, bool bNoListening = false, |