summaryrefslogtreecommitdiff
path: root/sc/inc/conditio.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-03 19:30:26 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-05 17:56:32 +0200
commitbedbb471c3f49e0860dd63b17c1faeee837096ae (patch)
tree7919b8d2faada1080956e6a16c843375aab171cf /sc/inc/conditio.hxx
parent0411360989b7a1371d4fa13dcd695ebe9157bbd1 (diff)
better import of conditional format from old ODF structure
The old ODF storage is style based and so the sam cond format can be divided up into several single stlyes which resulted in several new style cond formats. Now we check for old stlye cond formats if there is a equal cond format and in this case just extend the area. This should make it easier to transform old documents into the new range based cond formats. Change-Id: I51a5148922e19e6860de9915abfc59d49b18d96e
Diffstat (limited to 'sc/inc/conditio.hxx')
-rw-r--r--sc/inc/conditio.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index 9890758871af..b4f686ea6dc6 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -111,6 +111,8 @@ public:
virtual void SetParent( ScConditionalFormat* pNew ) = 0;
+ bool operator==( const ScFormatEntry& ) const;
+
#if DUMP_FORMAT_INFO
virtual void dumpInfo() const = 0;
#endif
@@ -282,6 +284,8 @@ public:
void AddEntry( ScFormatEntry* pNew );
void AddRange( const ScRangeList& rRanges );
const ScRangeList& GetRange() const { return maRanges; }
+ // don't use the same name as for the const version
+ ScRangeList& GetRangeList() { return maRanges; }
bool IsEmpty() const { return maEntries.empty(); }
size_t size() const { return maEntries.size(); }