diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-02 16:00:58 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-03 17:52:42 +0100 |
commit | 6c569a2ed797aa7ad52f8a7dc6be3bfb3b4b452a (patch) | |
tree | 90cd431ab659a385c0d29fb932377616f065d7c6 | |
parent | mDNSResponder: upgrade to release 576.30.4 (diff) | |
download | core-6c569a2ed797aa7ad52f8a7dc6be3bfb3b4b452a.tar.gz core-6c569a2ed797aa7ad52f8a7dc6be3bfb3b4b452a.zip |
sw: docx export: write something more specific for embedded PDF
Doesn't really change anything, but looks nicer.
Change-Id: I8f2dc41adaf22e11b1c15ba619ac00b6b72892fa
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index e27309426286..5b56d5bf4819 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -4840,6 +4840,12 @@ void DocxAttributeOutput::WriteOLE( SwOLENode& rNode, const Size& rSize, const S sRelationType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"; sFileExtension = "xls"; } + else if (sProgID == "AcroExch.Document.11") + { + sMediaType = "application/pdf"; + sRelationType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"; + sFileExtension = "pdf"; + } else { sMediaType = "application/vnd.openxmlformats-officedocument.oleObject"; |