[Libreoffice-commits] .: 2 commits - sc/inc sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Fri May 18 03:38:12 PDT 2012
sc/inc/colorscale.hxx | 1 +
sc/source/ui/view/output.cxx | 14 ++++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit 3e6b90800d679f183c3601f33800d9f236f834a3
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri May 18 12:16:06 2012 +0200
show dottet line if axis is not at zero
Change-Id: Ifd1d69a6afe9a0392e08e0f5bb0b1a497e1c2606
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 2f968b7..f0d9827 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,
commit 56b41a2b1e89efd24abd02bc319a3c4d38bee3d1
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri May 18 12:15:39 2012 +0200
prevent the creation of a default copy c'tor
Change-Id: I5ede869092355739f5e58de71b3a903ff0528051
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index 317a27d..a9a5211 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -209,6 +209,7 @@ private:
public:
ScColorFormatList() {};
ScColorFormatList(ScDocument* pDoc, const ScColorFormatList& rList);
+ ScColorFormatList(const ScColorFormatList& rList);
typedef ColorFormatContainer::iterator iterator;
typedef ColorFormatContainer::const_iterator const_iterator;
More information about the Libreoffice-commits
mailing list