summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-14 01:24:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-14 01:32:22 +0200
commit1885266f274575327cdeee9852945a3e91f32f15 (patch)
tree3d3495b94ac883030206ca84fa681dcec2a15a8f /sc/inc
parent65457cbaf0acbfb1925c21f2d03ffec8e20e84bd (diff)
implement dumper for new cond format test
Change-Id: I2a7f0cf20fa54cbcafcb30d8b8834fd1adf3821d
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/colorscale.hxx8
-rw-r--r--sc/inc/conditio.hxx14
2 files changed, 22 insertions, 0 deletions
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index 8e7938547d68..942f60455303 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -223,6 +223,10 @@ public:
const_iterator end() const;
size_t size() const;
+
+#if DUMP_FORMAT_INFO
+ virtual void dumpInfo() const;
+#endif
};
class SC_DLLPUBLIC ScDataBarFormat : public ScColorFormat
@@ -243,6 +247,10 @@ public:
const ScRange& rRange, SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
virtual condformat::ScFormatEntryType GetType() const;
+
+#if DUMP_FORMAT_INFO
+ virtual void dumpInfo() const;
+#endif
private:
double getMin(double nMin, double nMax) const;
double getMax(double nMin, double nMax) const;
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index d25a39ff7a7b..4967e826242b 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -48,6 +48,8 @@ class ScTokenArray;
// nOptions Flags
#define SC_COND_NOBLANKS 1
+#define DUMP_FORMAT_INFO 1
+
// ordering of ScConditionMode and ScQueryOp is equal,
// to facilitate the merging of both in the future
@@ -108,6 +110,10 @@ public:
virtual ScFormatEntry* Clone( ScDocument* pDoc = NULL ) const = 0;
virtual void SetParent( ScConditionalFormat* pNew ) = 0;
+
+#if DUMP_FORMAT_INFO
+ virtual void dumpInfo() const = 0;
+#endif
protected:
ScDocument* mpDoc;
@@ -204,6 +210,10 @@ public:
static ScConditionMode GetModeFromApi(sal_Int32 nOperator);
+#if DUMP_FORMAT_INFO
+ virtual void dumpInfo() const {}
+#endif
+
protected:
virtual void DataChanged( const ScRange* pModified ) const;
ScDocument* GetDocument() const { return mpDoc; }
@@ -303,6 +313,10 @@ public:
bool MarkUsedExternalReferences() const;
+#if DUMP_FORMAT_INFO
+ void dumpInfo() const;
+#endif
+
// sorted (via PTRARR) by Index
// operator== only for sorting
bool operator ==( const ScConditionalFormat& r ) const { return nKey == r.nKey; }