diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-10 10:50:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-10 12:41:46 +0200 |
commit | e6e1470c6e9c027aa5794a88280a2b56a5062663 (patch) | |
tree | 6a0fe7eebab231910d6015e9a3f670e2332089e8 /sc/source/filter/inc/condformatbuffer.hxx | |
parent | f26bf2ba01fc8ed453f3a42a39c26e2cf809c40f (diff) |
import min, max and percent entries for color scales from xlsx
Change-Id: I Icebacfd711851c9223ed8f38d6445c82f575a47d
Diffstat (limited to 'sc/source/filter/inc/condformatbuffer.hxx')
-rw-r--r-- | sc/source/filter/inc/condformatbuffer.hxx | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/sc/source/filter/inc/condformatbuffer.hxx b/sc/source/filter/inc/condformatbuffer.hxx index 0da0ba0133bf..7eb634291f6e 100644 --- a/sc/source/filter/inc/condformatbuffer.hxx +++ b/sc/source/filter/inc/condformatbuffer.hxx @@ -76,20 +76,39 @@ struct CondFormatRuleModel void setBiff12TextType( sal_Int32 nOperator ); }; +struct ColorScaleRuleModelEntry +{ + ::Color maColor; + double mnVal; + + bool mbMin; + bool mbMax; + bool mbPercent; + + ColorScaleRuleModelEntry(): + maColor(), + mnVal(0), + mbMin(false), + mbMax(false), + mbPercent(false) {} +}; + class ColorScaleRule : public WorksheetHelper { public: ColorScaleRule( const CondFormat& rFormat ); - void importValue( const AttributeList& rAttribs ); + void importCfvo( const AttributeList& rAttribs ); void importColor( const AttributeList& rAttribs ); void AddEntries( ScColorScaleFormat* pFormat ); private: const CondFormat& mrCondFormat; - std::vector< ::Color > maColors; - std::vector< double > maValues; + std::vector< ColorScaleRuleModelEntry > maColorScaleRuleEntries; + + sal_uInt32 mnCfvo; + sal_uInt32 mnCol; }; |