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
0abbb117
Kaydet (Commit)
0abbb117
authored
May 15, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
import cusotm icon set collections from OOXML
Change-Id: I92c8a55d313cb1b066bd3ec8822b8a8edeb6b749
üst
c6c1a4a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
9 deletions
+34
-9
condformatbuffer.hxx
sc/source/filter/inc/condformatbuffer.hxx
+1
-0
condformatbuffer.cxx
sc/source/filter/oox/condformatbuffer.cxx
+32
-9
condformatcontext.cxx
sc/source/filter/oox/condformatcontext.cxx
+1
-0
No files found.
sc/source/filter/inc/condformatbuffer.hxx
Dosyayı görüntüle @
0abbb117
...
...
@@ -131,6 +131,7 @@ public:
void
importCfvo
(
const
AttributeList
&
rAttribs
);
void
importAttribs
(
const
AttributeList
&
rAttribs
);
void
importFormula
(
const
OUString
&
rFormula
);
void
importIcon
(
const
AttributeList
&
rAttribs
);
void
SetData
(
ScIconSetFormat
*
pFormat
,
ScDocument
*
pDoc
,
const
ScAddress
&
rAddr
);
...
...
sc/source/filter/oox/condformatbuffer.cxx
Dosyayı görüntüle @
0abbb117
...
...
@@ -367,26 +367,49 @@ void IconSetRule::importFormula(const OUString& rFormula)
rEntry
.
maFormula
=
rFormula
;
}
namespace
{
void
IconSetRule
::
SetData
(
ScIconSetFormat
*
pFormat
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
ScIconSetType
getType
(
const
OUString
&
rName
)
{
for
(
size_t
i
=
0
;
i
<
maEntries
.
size
();
++
i
)
{
ScColorScaleEntry
*
pModelEntry
=
ConvertToModel
(
maEntries
[
i
],
pDoc
,
rPos
);
mxFormatData
->
maEntries
.
push_back
(
pModelEntry
);
}
ScIconSetType
eIconSetType
=
IconSet_3TrafficLights1
;
ScIconSetMap
*
pIconSetMap
=
ScIconSetFormat
::
getIconSetMap
();
for
(
size_t
i
=
0
;
pIconSetMap
[
i
].
pName
;
++
i
)
{
if
(
OUString
::
createFromAscii
(
pIconSetMap
[
i
].
pName
)
==
maIconSetTyp
e
)
if
(
OUString
::
createFromAscii
(
pIconSetMap
[
i
].
pName
)
==
rNam
e
)
{
eIconSetType
=
pIconSetMap
[
i
].
eType
;
break
;
}
}
mxFormatData
->
eIconSetType
=
eIconSetType
;
return
eIconSetType
;
}
}
void
IconSetRule
::
importIcon
(
const
AttributeList
&
rAttribs
)
{
OUString
aIconSet
=
rAttribs
.
getString
(
XML_iconSet
,
OUString
());
sal_Int32
nIndex
=
rAttribs
.
getInteger
(
XML_iconId
,
-
1
);
if
(
aIconSet
==
"NoIcons"
)
{
nIndex
=
-
1
;
}
ScIconSetType
eIconSetType
=
getType
(
aIconSet
);
mxFormatData
->
maCustomVector
.
push_back
(
std
::
pair
<
ScIconSetType
,
sal_Int32
>
(
eIconSetType
,
nIndex
));
}
void
IconSetRule
::
SetData
(
ScIconSetFormat
*
pFormat
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
{
for
(
size_t
i
=
0
;
i
<
maEntries
.
size
();
++
i
)
{
ScColorScaleEntry
*
pModelEntry
=
ConvertToModel
(
maEntries
[
i
],
pDoc
,
rPos
);
mxFormatData
->
maEntries
.
push_back
(
pModelEntry
);
}
mxFormatData
->
eIconSetType
=
getType
(
maIconSetType
);
mxFormatData
->
mbCustom
=
mbCustom
;
pFormat
->
SetIconSetData
(
mxFormatData
.
release
());
}
...
...
sc/source/filter/oox/condformatcontext.cxx
Dosyayı görüntüle @
0abbb117
...
...
@@ -143,6 +143,7 @@ void IconSetContext::onStartElement( const AttributeList& rAttribs )
mpIconSet
->
importCfvo
(
rAttribs
);
break
;
case
XLS14_TOKEN
(
cfIcon
):
mpIconSet
->
importIcon
(
rAttribs
);
break
;
}
}
...
...
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