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
9f2dc12e
Kaydet (Commit)
9f2dc12e
authored
Tem 18, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use comphelper::SequenceAsHashMap
Change-Id: I5e4dc99c86b696d2c00392fdb47c4d9ebb7f14ff
üst
84a5720f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
xmlfilterbase.cxx
oox/source/core/xmlfilterbase.cxx
+10
-20
No files found.
oox/source/core/xmlfilterbase.cxx
Dosyayı görüntüle @
9f2dc12e
...
@@ -667,33 +667,23 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
...
@@ -667,33 +667,23 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
writeElement
(
pAppProps
,
XML_DocSecurity
,
"doc security"
);
writeElement
(
pAppProps
,
XML_DocSecurity
,
"doc security"
);
#endif
/* def OOXTODO */
#endif
/* def OOXTODO */
uno
::
Sequence
<
beans
::
NamedValue
>
aStats
=
xProperties
->
getDocumentStatistics
();
comphelper
::
SequenceAsHashMap
aStats
=
xProperties
->
getDocumentStatistics
();
for
(
sal_Int32
i
=
0
;
i
<
aStats
.
getLength
();
++
i
)
comphelper
::
SequenceAsHashMap
::
iterator
it
=
aStats
.
find
(
"ParagraphCount"
);
if
(
it
!=
aStats
.
end
())
{
{
if
(
aStats
[
i
].
Name
==
"ParagraphCount"
)
{
sal_Int32
nValue
=
0
;
sal_Int32
nValue
=
0
;
if
(
aStats
[
i
].
Value
>>=
nValue
)
if
(
it
->
second
>>=
nValue
)
{
writeElement
(
pAppProps
,
XML_Paragraphs
,
OUString
::
number
(
nValue
));
writeElement
(
pAppProps
,
XML_Paragraphs
,
OUString
::
number
(
nValue
));
break
;
}
}
}
}
uno
::
Reference
<
beans
::
XPropertyAccess
>
xUserDefinedProperties
(
xProperties
->
getUserDefinedProperties
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertyAccess
>
xUserDefinedProperties
(
xProperties
->
getUserDefinedProperties
(),
uno
::
UNO_QUERY
);
const
uno
::
Sequence
<
beans
::
PropertyValue
>
aUserDefinedProperties
=
xUserDefinedProperties
->
getPropertyValues
();
comphelper
::
SequenceAsHashMap
aUserDefinedProperties
(
xUserDefinedProperties
->
getPropertyValues
());
for
(
sal_Int32
i
=
0
;
i
<
aUserDefinedProperties
.
getLength
();
++
i
)
it
=
aUserDefinedProperties
.
find
(
"Company"
);
if
(
it
!=
aStats
.
end
())
{
{
if
(
aUserDefinedProperties
[
i
].
Name
==
"Company"
)
OUString
aValue
;
{
if
(
it
->
second
>>=
aValue
)
OUString
aValue
;
writeElement
(
pAppProps
,
XML_Company
,
aValue
);
if
(
aUserDefinedProperties
[
i
].
Value
>>=
aValue
)
{
writeElement
(
pAppProps
,
XML_Company
,
aValue
);
break
;
}
}
}
}
pAppProps
->
endElement
(
XML_Properties
);
pAppProps
->
endElement
(
XML_Properties
);
...
...
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