xmloff: add a comment too
Change-Id: Ic23c36250938009b17f4b916f0d13a097d018a0c
This commit is contained in:
parent
75802ae40a
commit
88fe1bb839
1 changed files with 5 additions and 8 deletions
|
@ -609,18 +609,15 @@ void XMLTableExport::exportTableTemplates()
|
|||
}
|
||||
else
|
||||
{
|
||||
// Below condition checks if any of the extended version of
|
||||
// XML are set
|
||||
// checks if any of the extended version of ODF are set
|
||||
if ((eVersion & SvtSaveOptions::ODFSVER_EXTENDED) != 0)
|
||||
{
|
||||
// tdf#106780 historically this wrong attribute was used
|
||||
// for the name; write it if extended because LO < 5.3 can
|
||||
// read only text:style-name, not the correct table:name
|
||||
mrExport.AddAttribute(XML_NAMESPACE_TEXT, XML_STYLE_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
|
||||
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
|
||||
}
|
||||
|
||||
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName(xTableStyle->getName()));
|
||||
}
|
||||
|
||||
SvXMLElementExport tableTemplate( mrExport, XML_NAMESPACE_TABLE, XML_TABLE_TEMPLATE, true, true );
|
||||
|
|
Loading…
Reference in a new issue