From 7f5aab85e3ce0320e449b17782f7cc284b48344e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 29 Oct 2012 02:13:28 +0100 Subject: implement basic support for icon sets already supports ooxml import Change-Id: I3e54aa1632a78f853bb13a3a4f76e9d66ea0b9ac --- sc/source/filter/inc/condformatbuffer.hxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'sc/source/filter/inc/condformatbuffer.hxx') 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 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 mpColor; boost::scoped_ptr mpDataBar; + boost::scoped_ptr mpIconSet; }; typedef ::boost::shared_ptr< CondFormatRule > CondFormatRuleRef; -- cgit