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
5762370f
Kaydet (Commit)
5762370f
authored
Mar 29, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement last missing IconSet piece
Change-Id: I97fb3a2e8bc5abb68a07e4daab6492a4ffa5c52a
üst
8b3137c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
condformatuno.cxx
sc/source/ui/unoobj/condformatuno.cxx
+43
-1
No files found.
sc/source/ui/unoobj/condformatuno.cxx
Dosyayı görüntüle @
5762370f
...
@@ -1228,6 +1228,44 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScIconSetFormatObj::getProperty
...
@@ -1228,6 +1228,44 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScIconSetFormatObj::getProperty
return
aRef
;
return
aRef
;
}
}
namespace
{
void
setIconSetEntry
(
ScIconSetFormat
*
pFormat
,
uno
::
Reference
<
sheet
::
XIconSetEntry
>
xEntry
,
size_t
nPos
)
{
ScIconSetFormatData
*
pData
=
pFormat
->
GetIconSetData
();
ScColorScaleEntryType
eType
;
sal_Int32
nApiType
=
xEntry
->
getType
();
bool
bFound
=
false
;
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aIconSetEntryTypeMap
);
++
i
)
{
if
(
aIconSetEntryTypeMap
[
i
].
nApiType
==
nApiType
)
{
eType
=
aIconSetEntryTypeMap
[
i
].
eType
;
bFound
=
true
;
break
;
}
}
if
(
!
bFound
)
throw
lang
::
IllegalArgumentException
();
pData
->
maEntries
[
nPos
].
SetType
(
eType
);
switch
(
eType
)
{
case
COLORSCALE_FORMULA
:
// TODO: Implement
break
;
default
:
{
double
nVal
=
xEntry
->
getFormula
().
toDouble
();
pData
->
maEntries
[
nPos
].
SetValue
(
nVal
);
}
break
;
}
}
}
void
SAL_CALL
ScIconSetFormatObj
::
setPropertyValue
(
void
SAL_CALL
ScIconSetFormatObj
::
setPropertyValue
(
const
OUString
&
aPropertyName
,
const
uno
::
Any
&
aValue
)
const
OUString
&
aPropertyName
,
const
uno
::
Any
&
aValue
)
throw
(
beans
::
UnknownPropertyException
,
beans
::
PropertyVetoException
,
throw
(
beans
::
UnknownPropertyException
,
beans
::
PropertyVetoException
,
...
@@ -1286,7 +1324,11 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue(
...
@@ -1286,7 +1324,11 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue(
uno
::
Sequence
<
uno
::
Reference
<
sheet
::
XIconSetEntry
>
>
aEntries
;
uno
::
Sequence
<
uno
::
Reference
<
sheet
::
XIconSetEntry
>
>
aEntries
;
if
(
aValue
>>=
aEntries
)
if
(
aValue
>>=
aEntries
)
{
{
sal_Int32
nLength
=
aEntries
.
getLength
();
for
(
size_t
i
=
0
;
i
<
size_t
(
nLength
);
++
i
)
{
setIconSetEntry
(
getCoreObject
(),
aEntries
[
i
],
i
);
}
}
}
else
else
throw
lang
::
IllegalArgumentException
();
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