summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/condformatbuffer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/inc/condformatbuffer.hxx')
-rw-r--r--sc/source/filter/inc/condformatbuffer.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx
index 91521c6e83d6..568f09db4a4c 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;
@@ -235,6 +254,7 @@ public:
/** Converts an OOXML condition operator token to the API constant. */
static sal_Int32 convertToApiOperator( sal_Int32 nToken );
+ static sal_Int32 convertToInternalOperator( sal_Int32 nToken );
private:
CondFormatRef createCondFormat();