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
2773e6ff
Kaydet (Commit)
2773e6ff
authored
Mar 29, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add last databar part
Change-Id: Id86dfa4e6795d0ec6a66850747f95de6b0bd8b98
üst
5762370f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
condformatuno.cxx
sc/source/ui/unoobj/condformatuno.cxx
+41
-0
No files found.
sc/source/ui/unoobj/condformatuno.cxx
Dosyayı görüntüle @
2773e6ff
...
...
@@ -894,6 +894,43 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScDataBarFormatObj::getProperty
return
aRef
;
}
namespace
{
void
setDataBarEntry
(
ScColorScaleEntry
*
pEntry
,
uno
::
Reference
<
sheet
::
XDataBarEntry
>
xEntry
)
{
ScColorScaleEntryType
eType
;
sal_Int32
nApiType
=
xEntry
->
getType
();
bool
bFound
=
false
;
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aDataBarEntryTypeMap
);
++
i
)
{
if
(
aDataBarEntryTypeMap
[
i
].
nApiType
==
nApiType
)
{
eType
=
aDataBarEntryTypeMap
[
i
].
eType
;
bFound
=
true
;
break
;
}
}
if
(
!
bFound
)
throw
lang
::
IllegalArgumentException
();
pEntry
->
SetType
(
eType
);
switch
(
eType
)
{
case
COLORSCALE_FORMULA
:
// TODO: Implement
break
;
default
:
{
double
nVal
=
xEntry
->
getFormula
().
toDouble
();
pEntry
->
SetValue
(
nVal
);
}
break
;
}
}
}
void
SAL_CALL
ScDataBarFormatObj
::
setPropertyValue
(
const
OUString
&
aPropertyName
,
const
uno
::
Any
&
aValue
)
throw
(
beans
::
UnknownPropertyException
,
beans
::
PropertyVetoException
,
...
...
@@ -994,6 +1031,10 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue(
if
(
aEntries
.
getLength
()
!=
2
)
throw
lang
::
IllegalArgumentException
();
setDataBarEntry
(
getCoreObject
()
->
GetDataBarData
()
->
mpLowerLimit
.
get
(),
aEntries
[
0
]);
setDataBarEntry
(
getCoreObject
()
->
GetDataBarData
()
->
mpUpperLimit
.
get
(),
aEntries
[
1
]);
}
else
throw
lang
::
IllegalArgumentException
();
...
...
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