summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-11 16:37:17 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-12 17:11:36 +0200
commit57951b30df91d36fb0d0a4abae2573201554e716 (patch)
treec27d42f0b2607dfcbc54d3d0ff60fb759d6c0693 /sw
parent1018d69bdada22e5cd8d9fa246c54fcd9feb7c6c (diff)
wp:docPr title is not in ecma
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 30d24b832ff4..f4899fa6a352 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2103,12 +2103,13 @@ void DocxAttributeOutput::FlyFrameGraphic( const SwGrfNode& rGrfNode, const Size
}
}
// picture description
- m_pSerializer->startElementNS( XML_wp, XML_docPr,
- XML_id, "1",
- XML_name, "Picture",
- XML_title, OUStringToOString( rGrfNode.GetTitle(), RTL_TEXTENCODING_UTF8 ).getStr(),
- XML_descr, OUStringToOString( rGrfNode.GetDescription(), RTL_TEXTENCODING_UTF8 ).getStr(),
- FSEND );
+ ::sax_fastparser::FastAttributeList* attrList = m_pSerializer->createAttrList();
+ attrList->add( XML_id, "1" );
+ attrList->add( XML_name, "Picture" );
+ attrList->add( XML_descr, OUStringToOString( rGrfNode.GetDescription(), RTL_TEXTENCODING_UTF8 ).getStr());
+ if( GetExport().GetFilter().getVersion( ) != oox::core::ECMA_DIALECT )
+ attrList->add( XML_title, OUStringToOString( rGrfNode.GetTitle(), RTL_TEXTENCODING_UTF8 ).getStr());
+ m_pSerializer->startElementNS( XML_wp, XML_docPr, XFastAttributeListRef( attrList ));
// TODO hyperlink
// m_pSerializer->singleElementNS( XML_a, XML_hlinkClick,
// FSNS( XML_xmlns, XML_a ), "http://schemas.openxmlformats.org/drawingml/2006/main",