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
84a5720f
Kaydet (Commit)
84a5720f
authored
Tem 18, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox: write Company in docProps/app.xml
Change-Id: I8474b8ec7415b4d8e067343295ea985319c34834
üst
aaedf141
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
xmlfilterbase.cxx
oox/source/core/xmlfilterbase.cxx
+16
-1
zoom.docx
sw/qa/extras/ooxmlexport/data/zoom.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+1
-0
No files found.
oox/source/core/xmlfilterbase.cxx
Dosyayı görüntüle @
84a5720f
...
...
@@ -21,6 +21,7 @@
#include <cstdio>
#include <set>
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/embed/XRelationshipAccess.hpp>
#include <com/sun/star/xml/sax/InputSource.hpp>
...
...
@@ -637,7 +638,6 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
writeElement
(
pAppProps
,
XML_Template
,
xProperties
->
getTemplateName
()
);
#ifdef OOXTODO
writeElement
(
pAppProps
,
XML_Manager
,
"manager"
);
writeElement
(
pAppProps
,
XML_Company
,
"company"
);
writeElement
(
pAppProps
,
XML_Pages
,
"pages"
);
writeElement
(
pAppProps
,
XML_Words
,
"words"
);
writeElement
(
pAppProps
,
XML_Characters
,
"characters"
);
...
...
@@ -681,6 +681,21 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
}
}
uno
::
Reference
<
beans
::
XPropertyAccess
>
xUserDefinedProperties
(
xProperties
->
getUserDefinedProperties
(),
uno
::
UNO_QUERY
);
const
uno
::
Sequence
<
beans
::
PropertyValue
>
aUserDefinedProperties
=
xUserDefinedProperties
->
getPropertyValues
();
for
(
sal_Int32
i
=
0
;
i
<
aUserDefinedProperties
.
getLength
();
++
i
)
{
if
(
aUserDefinedProperties
[
i
].
Name
==
"Company"
)
{
OUString
aValue
;
if
(
aUserDefinedProperties
[
i
].
Value
>>=
aValue
)
{
writeElement
(
pAppProps
,
XML_Company
,
aValue
);
break
;
}
}
}
pAppProps
->
endElement
(
XML_Properties
);
}
...
...
sw/qa/extras/ooxmlexport/data/zoom.docx
Dosyayı görüntüle @
84a5720f
No preview for this file type
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
84a5720f
...
...
@@ -99,6 +99,7 @@ DECLARE_OOXMLEXPORT_TEST(testZoom, "zoom.docx")
pXmlDoc
=
parseExport
(
"docProps/app.xml"
);
// One paragraph in the document.
assertXPathContent
(
pXmlDoc
,
"/extended-properties:Properties/extended-properties:Paragraphs"
,
"1"
);
assertXPathContent
(
pXmlDoc
,
"/extended-properties:Properties/extended-properties:Company"
,
"Example Ltd"
);
}
DECLARE_OOXMLEXPORT_TEST
(
defaultTabStopNotInStyles
,
"empty.odt"
)
...
...
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