Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
14e1af63
Kaydet (Commit)
14e1af63
authored
May 18, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
paint gradients in data bars
Change-Id: I2b5488296d3ca8aee92f7999bd4d82a9c9eada88
üst
9804981f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
colorscale.cxx
sc/source/core/data/colorscale.cxx
+2
-0
output.cxx
sc/source/ui/view/output.cxx
+20
-3
No files found.
sc/source/core/data/colorscale.cxx
Dosyayı görüntüle @
14e1af63
...
...
@@ -657,6 +657,8 @@ ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const
else
pInfo
->
maColor
=
mpFormatData
->
maPositiveColor
;
pInfo
->
mbGradient
=
mpFormatData
->
mbGradient
;
return
pInfo
;
}
...
...
sc/source/ui/view/output.cxx
Dosyayı görüntüle @
14e1af63
...
...
@@ -50,6 +50,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <svx/sdr/contact/objectcontacttools.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/gradient.hxx>
#include <svx/unoapi.hxx>
#include "output.hxx"
...
...
@@ -830,9 +831,25 @@ void drawDataBars( const ScDataBarInfo* pOldDataBarInfo, OutputDevice* pDev, con
else
return
;
//TODO: improve this for gradient fill
pDev
->
SetFillColor
(
pOldDataBarInfo
->
maColor
);
pDev
->
DrawRect
(
aPaintRect
);
if
(
pOldDataBarInfo
->
mbGradient
)
{
pDev
->
SetLineColor
(
pOldDataBarInfo
->
maColor
);
Gradient
aGradient
(
GRADIENT_LINEAR
,
pOldDataBarInfo
->
maColor
,
COL_TRANSPARENT
);
if
(
pOldDataBarInfo
->
mnLength
<
0
)
aGradient
.
SetAngle
(
2700
);
else
aGradient
.
SetAngle
(
900
);
pDev
->
DrawGradient
(
aPaintRect
,
aGradient
);
pDev
->
SetLineColor
();
}
else
{
pDev
->
SetFillColor
(
pOldDataBarInfo
->
maColor
);
pDev
->
DrawRect
(
aPaintRect
);
}
//draw axis
if
(
pOldDataBarInfo
->
mnZero
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment