summaryrefslogtreecommitdiff
path: root/sc/inc/fillinfo.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-17 11:03:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-18 10:51:20 +0200
commit914fc75da516218bb072245a5c2e3038a4e3639e (patch)
treef46434a37e2659d238317ff96723e44fdcc7d4ee /sc/inc/fillinfo.hxx
parentbf3a1b074ea2e56692fbb701f1bad333a0f451ad (diff)
add render code for data bars
Still missing some advanced features like gradients, dotted line at the zero point, ... Change-Id: If8409ffab658315a6fed220e61d0854680633e1e
Diffstat (limited to 'sc/inc/fillinfo.hxx')
-rw-r--r--sc/inc/fillinfo.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx
index a5786ba79d34..5aecd510d3bc 100644
--- a/sc/inc/fillinfo.hxx
+++ b/sc/inc/fillinfo.hxx
@@ -62,6 +62,14 @@ enum ScShadowPart
SC_SHADOW_CORNER
};
+struct ScDataBarInfo
+{
+ double mnZero; // 0 to 100
+ Color maColor;
+ double mnLength; // -100 to 100
+ bool mbGradient;
+};
+
struct CellInfo
{
ScBaseCell* pCell;
@@ -69,6 +77,7 @@ struct CellInfo
const ScPatternAttr* pPatternAttr;
const SfxItemSet* pConditionSet;
const Color* pColorScale;
+ const ScDataBarInfo* pDataBar;
const SvxBrushItem* pBackground;
@@ -104,11 +113,13 @@ struct CellInfo
sal_Bool bEditEngine : 1; // output-internal
CellInfo():
- pColorScale(NULL) {}
+ pColorScale(NULL),
+ pDataBar(NULL) {}
~CellInfo()
{
delete pColorScale;
+ delete pDataBar;
}
};