summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/docxexport.cxx
diff options
context:
space:
mode:
authorYogeshBharate <yogesh.bharate@synerzip.com>2014-01-24 18:27:25 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-01-31 09:39:35 +0000
commitac177e3919362deb6e46257a2787384620ca9a5e (patch)
tree595e816d567ab9a0dca8f94660b740bc6dcb1a02 /sw/source/filter/ww8/docxexport.cxx
parent9d5024a46e12dc91f75a964d87a1d53385c1a521 (diff)
fdo#73872: File Corruption - Issue with w:footerReference in document.xml
Problem Description : - In case if the header/footer had a chart in it then the associated relation Id was getting added to document.xml.rels instead of adding it to the relevent item*.xml.rels file. - Due to this the MS office was unable to read the round tripped file. Implementation : - Added the relation id's to relevant rels files. Change-Id: I412178222400e98ab2ef46d930c1e1fdfebf9799 Reviewed-on: https://gerrit.libreoffice.org/7630 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/docxexport.cxx')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index e67b538cf1e0..e8342c490cc6 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -341,13 +341,12 @@ void DocxExport::DoFormText(const SwInputField* /*pFld*/)
OSL_TRACE( "TODO DocxExport::ForFormText()" );
}
-OString DocxExport::OutputChart( uno::Reference< frame::XModel >& xModel, sal_Int32 nCount )
+OString DocxExport::OutputChart( uno::Reference< frame::XModel >& xModel, sal_Int32 nCount, ::sax_fastparser::FSHelperPtr m_pSerializer )
{
OUString aFileName = "charts/chart" + OUString::number(nCount) + ".xml";
- OUString sId = m_pFilter->addRelation( m_pDocumentFS->getOutputStream(),
+ OUString sId = m_pFilter->addRelation( m_pSerializer->getOutputStream(),
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
aFileName );
-
aFileName = "word/charts/chart" + OUString::number(nCount) + ".xml";
::sax_fastparser::FSHelperPtr pChartFS =
m_pFilter->openFragmentStreamWithSerializer( aFileName,