diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-18 10:33:16 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-18 10:51:21 +0200 |
commit | d961b694348a0dd048761a6046de7393ac077f31 (patch) | |
tree | 1c18cdf513c5bc765fadefa1825d03e1be05dc83 /sc/source/filter/inc/condformatbuffer.hxx | |
parent | 862f56d19e1c57d3d648275877fc434fb119e80f (diff) |
implement databar import from oox
Change-Id: Id510acbc7291b94610e0e2c769d8cee582baa9a7
Diffstat (limited to 'sc/source/filter/inc/condformatbuffer.hxx')
-rw-r--r-- | sc/source/filter/inc/condformatbuffer.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx index b8b2d653fb41..de2c906166cc 100644 --- a/sc/source/filter/inc/condformatbuffer.hxx +++ b/sc/source/filter/inc/condformatbuffer.hxx @@ -39,6 +39,8 @@ namespace com { namespace sun { namespace star { namespace sheet { class XSheetConditionalEntries; } } } } class ScColorScaleFormat; +class ScDataBarFormat; +struct ScDataBarFormatData; namespace oox { namespace xls { @@ -112,6 +114,23 @@ private: sal_uInt32 mnCol; }; +class DataBarRule : public WorksheetHelper +{ +public: + DataBarRule( const CondFormat& rFormat ); + void importCfvo( const AttributeList& rAttribs ); + void importColor( const AttributeList& rAttribs ); + + void SetData( ScDataBarFormat* pFormat, ScDocument* pDoc, const ScAddress& rAddr ); + +private: + const CondFormat& mrCondFormat; + ScDataBarFormatData* mpFormat; + + boost::scoped_ptr<ColorScaleRuleModelEntry> mpUpperLimit; + boost::scoped_ptr<ColorScaleRuleModelEntry> mpLowerLimit; +}; + // ============================================================================ @@ -138,11 +157,13 @@ public: inline sal_Int32 getPriority() const { return maModel.mnPriority; } ColorScaleRule* getColorScale(); + DataBarRule* getDataBar(); private: const CondFormat& mrCondFormat; CondFormatRuleModel maModel; boost::scoped_ptr<ColorScaleRule> mpColor; + boost::scoped_ptr<DataBarRule> mpDataBar; }; typedef ::boost::shared_ptr< CondFormatRule > CondFormatRuleRef; |