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
59c2e048
Kaydet (Commit)
59c2e048
authored
Haz 26, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
support colored axis in data bars
Change-Id: Ie74404b35e31a2f96641abb18a9aaf46467e31c0
üst
46b8dbda
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
+14
-2
colorscale.hxx
sc/inc/colorscale.hxx
+7
-0
fillinfo.hxx
sc/inc/fillinfo.hxx
+1
-0
colorscale.cxx
sc/source/core/data/colorscale.cxx
+1
-0
colorformat.cxx
sc/source/ui/condformat/colorformat.cxx
+2
-0
output.cxx
sc/source/ui/view/output.cxx
+3
-2
No files found.
sc/inc/colorscale.hxx
Dosyayı görüntüle @
59c2e048
...
...
@@ -99,6 +99,7 @@ enum ScAxisPostion
struct
SC_DLLPUBLIC
ScDataBarFormatData
{
ScDataBarFormatData
()
:
maAxisColor
(
COL_BLACK
),
mbGradient
(
true
),
mbNeg
(
true
),
meAxisPosition
(
databar
::
AUTOMATIC
),
...
...
@@ -106,6 +107,7 @@ struct SC_DLLPUBLIC ScDataBarFormatData
ScDataBarFormatData
(
const
ScDataBarFormatData
&
r
)
:
maPositiveColor
(
r
.
maPositiveColor
),
maAxisColor
(
r
.
maAxisColor
),
mbGradient
(
r
.
mbGradient
),
mbNeg
(
r
.
mbNeg
),
meAxisPosition
(
r
.
meAxisPosition
),
...
...
@@ -130,6 +132,11 @@ struct SC_DLLPUBLIC ScDataBarFormatData
* Default color is 0xFF0000, this value is not set
*/
boost
::
scoped_ptr
<
Color
>
mpNegativeColor
;
/**
* Color of the axis if used
* Default color is black
*/
Color
maAxisColor
;
/**
* Paint the bars with gradient. If this is used the default is to draw with
* borders.
...
...
sc/inc/fillinfo.hxx
Dosyayı görüntüle @
59c2e048
...
...
@@ -69,6 +69,7 @@ struct ScDataBarInfo
double
mnLength
;
// -100 to 100
bool
mbGradient
;
bool
mbShowValue
;
Color
maAxisColor
;
bool
operator
==
(
const
ScDataBarInfo
&
r
)
const
{
...
...
sc/source/core/data/colorscale.cxx
Dosyayı görüntüle @
59c2e048
...
...
@@ -842,6 +842,7 @@ ScDataBarInfo* ScDataBarFormat::GetDataBarInfo(const ScAddress& rAddr) const
pInfo
->
mbGradient
=
mpFormatData
->
mbGradient
;
pInfo
->
mbShowValue
=
!
mpFormatData
->
mbOnlyBar
;
pInfo
->
maAxisColor
=
mpFormatData
->
maAxisColor
;
return
pInfo
;
}
...
...
sc/source/ui/condformat/colorformat.cxx
Dosyayı görüntüle @
59c2e048
...
...
@@ -176,6 +176,7 @@ ScDataBarSettingsDlg::ScDataBarSettingsDlg(Window* pWindow, const ScDataBarForma
::
SetType
(
rData
.
mpUpperLimit
.
get
(),
maLbTypeMax
);
SetValue
(
rData
.
mpLowerLimit
.
get
(),
maEdMin
);
SetValue
(
rData
.
mpUpperLimit
.
get
(),
maEdMax
);
maLbAxisCol
.
SelectEntry
(
rData
.
maAxisColor
);
TypeSelectHdl
(
NULL
);
}
...
...
@@ -259,6 +260,7 @@ ScDataBarFormatData* ScDataBarSettingsDlg::GetData()
pData
->
mbGradient
=
true
;
//FIXME
pData
->
mpUpperLimit
.
reset
(
new
ScColorScaleEntry
());
pData
->
mpLowerLimit
.
reset
(
new
ScColorScaleEntry
());
pData
->
maAxisColor
=
maLbAxisCol
.
GetSelectEntryColor
();
::
GetType
(
maLbTypeMin
,
maEdMin
,
pData
->
mpLowerLimit
.
get
(),
mpNumberFormatter
);
::
GetType
(
maLbTypeMax
,
maEdMax
,
pData
->
mpUpperLimit
.
get
(),
mpNumberFormatter
);
...
...
sc/source/ui/view/output.cxx
Dosyayı görüntüle @
59c2e048
...
...
@@ -861,10 +861,11 @@ void drawDataBars( const ScDataBarInfo* pOldDataBarInfo, OutputDevice* pDev, con
aLineInfo
.
SetDashCount
(
4
);
aLineInfo
.
SetDistance
(
3
);
aLineInfo
.
SetDashLen
(
3
);
pDev
->
SetFillColor
(
COL_BLACK
);
pDev
->
SetLineColor
(
COL_BLACK
);
pDev
->
SetFillColor
(
pOldDataBarInfo
->
maAxisColor
);
pDev
->
SetLineColor
(
pOldDataBarInfo
->
maAxisColor
);
pDev
->
DrawLine
(
aPoint1
,
aPoint2
,
aLineInfo
);
pDev
->
SetLineColor
();
pDev
->
SetFillColor
();
}
}
...
...
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