summaryrefslogtreecommitdiff
path: root/sc/inc/conditio.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-28 18:06:29 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-28 18:08:33 +0100
commit5dcf5e9b888257a01045fe746214e2ed0d7db657 (patch)
treee0f10db171da3b1b9d2b8003fdb7d47cb92a5123 /sc/inc/conditio.hxx
parent03949c87206046d3a2ed2bf41f5c020458d07a8f (diff)
cache calls to Date::SYSTEM
Change-Id: Iccdfeb45519dfc7e1373bf1303ecfc0c83f4cbc0
Diffstat (limited to 'sc/inc/conditio.hxx')
-rw-r--r--sc/inc/conditio.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index ee30be1eab24..af571fd7c982 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -36,6 +36,7 @@
#include "rangelst.hxx"
#include <rtl/math.hxx>
+#include <tools/date.hxx>
#include <map>
@@ -375,9 +376,19 @@ public:
virtual void dumpInfo(rtl::OUStringBuffer& rBuf) const;
#endif
+ virtual void startRendering();
+ virtual void endRendering();
+
private:
condformat::ScCondFormatDateType meType;
+ struct ScCondDateFormatCache
+ {
+ Date aCachedDate;
+ };
+
+ boost::scoped_ptr<ScCondDateFormatCache> mpCache;
+
rtl::OUString maStyleName;
};