summaryrefslogtreecommitdiff
path: root/sc/inc/conditio.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 00:07:06 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 14:58:11 +0100
commit5d0ae90546d46a39bb42ea60e3f835ca68e6abdb (patch)
tree0b561e2677f9d16c3728d2c4672d2c6a0bd0627f /sc/inc/conditio.hxx
parent442cd0fa1e33fd6128d311ca4f76da4247fd35ba (diff)
implement top/bottom n percent
Change-Id: I463cd96831cd47b4e2ed878761e7196098a2e163
Diffstat (limited to 'sc/inc/conditio.hxx')
-rw-r--r--sc/inc/conditio.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index ee2d9c9121f2..51b3dba67c87 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -72,6 +72,8 @@ enum ScConditionMode
SC_COND_DIRECT,
SC_COND_TOP10,
SC_COND_BOTTOM10,
+ SC_COND_TOP_PERCENT,
+ SC_COND_BOTTOM_PERCENT,
SC_COND_NONE
};
@@ -253,6 +255,8 @@ private:
bool IsDuplicate(double nArg, const rtl::OUString& rStr, const ScRangeList& rRanges) const;
bool IsTopNElement( double nArg, const ScRangeList& rRanges ) const;
bool IsTopNPercent( double nArg, const ScRangeList& rRanges ) const;
+ bool IsBottomNElement( double nArg, const ScRangeList& rRanges ) const;
+ bool IsBottomNPercent( double nArg, const ScRangeList& rRanges ) const;
void FillCache(const ScRangeList& rRanges) const;
@@ -265,6 +269,9 @@ private:
// cache them for easier access
size_t nValueItems;
+
+ ScConditionEntryCache():
+ nValueItems(0) {}
};
mutable boost::scoped_ptr<ScConditionEntryCache> mpCache;