summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/condformatbuffer.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-29 02:13:28 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-30 01:03:55 +0100
commit7f5aab85e3ce0320e449b17782f7cc284b48344e (patch)
tree5edcbe918477ca036710def01699ccc41a060172 /sc/source/filter/inc/condformatbuffer.hxx
parent2b2c67c557d427d37a18a66f8acad6fdca726c6f (diff)
implement basic support for icon sets
already supports ooxml import Change-Id: I3e54aa1632a78f853bb13a3a4f76e9d66ea0b9ac
Diffstat (limited to 'sc/source/filter/inc/condformatbuffer.hxx')
-rw-r--r--sc/source/filter/inc/condformatbuffer.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx
index 91521c6e83d6..9dfe34ecba14 100644
--- a/sc/source/filter/inc/condformatbuffer.hxx
+++ b/sc/source/filter/inc/condformatbuffer.hxx
@@ -42,6 +42,8 @@ class ScColorScaleFormat;
class ScDataBarFormat;
struct ScDataBarFormatData;
class ScConditionalFormat;
+class ScIconSetFormat;
+struct ScIconSetFormatData;
namespace oox {
namespace xls {
@@ -135,6 +137,21 @@ private:
boost::scoped_ptr<ColorScaleRuleModelEntry> mpLowerLimit;
};
+class IconSetRule : public WorksheetHelper
+{
+public:
+ IconSetRule( const CondFormat& rFormat );
+ void importCfvo( const AttributeList& rAttribs );
+ void importAttribs( const AttributeList& rAttribs );
+
+ void SetData( ScIconSetFormat* pFormat, ScDocument* pDoc, const ScAddress& rAddr );
+
+private:
+ std::vector< ColorScaleRuleModelEntry > maEntries;
+ ScIconSetFormatData* mpFormatData;
+ rtl::OUString maIconSetType;
+};
+
// ============================================================================
@@ -161,6 +178,7 @@ public:
ColorScaleRule* getColorScale();
DataBarRule* getDataBar();
+ IconSetRule* getIconSet();
private:
const CondFormat& mrCondFormat;
@@ -168,6 +186,7 @@ private:
ScConditionalFormat* mpFormat;
boost::scoped_ptr<ColorScaleRule> mpColor;
boost::scoped_ptr<DataBarRule> mpDataBar;
+ boost::scoped_ptr<IconSetRule> mpIconSet;
};
typedef ::boost::shared_ptr< CondFormatRule > CondFormatRuleRef;