summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-18 12:16:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-18 12:36:38 +0200
commit3e6b90800d679f183c3601f33800d9f236f834a3 (patch)
tree63a4eccf41579afa349abf9876071bb770801e14
parent56b41a2b1e89efd24abd02bc319a3c4d38bee3d1 (diff)
show dottet line if axis is not at zero
Change-Id: Ifd1d69a6afe9a0392e08e0f5bb0b1a497e1c2606
-rw-r--r--sc/source/ui/view/output.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 2f968b743ec6..f0d9827c0659 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -49,6 +49,7 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <svx/sdr/contact/objectcontacttools.hxx>
+#include <vcl/lineinfo.hxx>
#include <svx/unoapi.hxx>
#include "output.hxx"
@@ -832,6 +833,19 @@ void drawDataBars( const ScDataBarInfo* pOldDataBarInfo, OutputDevice* pDev, con
//TODO: improve this for gradient fill
pDev->SetFillColor(pOldDataBarInfo->maColor);
pDev->DrawRect(aPaintRect);
+
+ //draw axis
+ if(pOldDataBarInfo->mnZero)
+ {
+ Point aPoint1(nPosZero, rRect.Top());
+ Point aPoint2(nPosZero, rRect.Bottom());
+ LineInfo aLineInfo(LINE_DASH, 1);
+ aLineInfo.SetDashCount( 5 );
+ pDev->SetFillColor(COL_BLACK);
+ pDev->SetLineColor(COL_BLACK);
+ pDev->DrawLine(aPoint1, aPoint2, aLineInfo);
+ pDev->SetLineColor();
+ }
}
void drawCells(const Color* pColor, const SvxBrushItem* pBackground, const Color*& pOldColor, const SvxBrushItem*& pOldBackground,