[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - 3 commits - include/xmloff sc/source xmloff/source
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Sun Dec 7 15:39:51 PST 2014
include/xmloff/xmltoken.hxx | 1 -
sc/source/filter/xml/XMLExportDataPilot.cxx | 4 +---
xmloff/source/core/xmltoken.cxx | 1 -
xmloff/source/draw/shapeexport.cxx | 1 +
4 files changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 0b1a62f7d936d56cc31466c0b4f02a84702332e8
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date: Sat Dec 6 08:21:50 2014 +0100
the xlink:type attribute is mandatory, related fdo#79449
Change-Id: I03c4217f786bc10aa915780dc10ea52d94019b6e
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index f0a8db4..92a4243 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -1754,6 +1754,7 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x
XML_NAMESPACE_DOM, OUString( "click" ) ) );
mrExport.AddAttribute( XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, aEventQName );
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, aStrMacro );
+ mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, "simple" );
SvXMLElementExport aEventElemt(mrExport, XML_NAMESPACE_SCRIPT, XML_EVENT_LISTENER, true, true);
}
commit c2531a952c37ed8027f8d0da2c47a72610f40813
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Dec 7 00:41:44 2014 +0100
remove invalid attribute that is not read anyway
Change-Id: Id7770ffda49ba7bc0ebc780c67c56b81152213f7
diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx
index 45f30f3..e1a9d00 100644
--- a/include/xmloff/xmltoken.hxx
+++ b/include/xmloff/xmltoken.hxx
@@ -2617,7 +2617,6 @@ namespace xmloff { namespace token {
XML_DATE_START,
XML_DATE_END,
XML_STEP,
- XML_IS_GROUP_FIELD,
XML_DATA_PILOT_GROUPS,
XML_DATA_PILOT_GROUP,
diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx
index 3812b2a..215dc09 100644
--- a/sc/source/filter/xml/XMLExportDataPilot.cxx
+++ b/sc/source/filter/xml/XMLExportDataPilot.cxx
@@ -599,7 +599,6 @@ void ScXMLExportDataPilot::WriteGroupDimAttributes(const ScDPSaveGroupDimension*
if (pGroupDim)
{
OUString aSrcFieldName = ScDPUtil::getSourceDimensionName(pGroupDim->GetSourceDimName());
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_IS_GROUP_FIELD, XML_TRUE);
rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SOURCE_FIELD_NAME, aSrcFieldName);
if (pGroupDim->GetDatePart())
{
@@ -613,7 +612,6 @@ void ScXMLExportDataPilot::WriteNumGroupDim(const ScDPSaveNumGroupDimension* pNu
{
if (pNumGroupDim)
{
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_IS_GROUP_FIELD, XML_TRUE);
if (pNumGroupDim->GetDatePart())
{
WriteDatePart(pNumGroupDim->GetDatePart());
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index 7a483ef..11e08a1 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -2622,7 +2622,6 @@ namespace xmloff { namespace token {
TOKEN( "date-start", XML_DATE_START ),
TOKEN( "date-end", XML_DATE_END ),
TOKEN( "step", XML_STEP ),
- TOKEN( "is-group-field", XML_IS_GROUP_FIELD ),
TOKEN( "data-pilot-groups", XML_DATA_PILOT_GROUPS ),
TOKEN( "data-pilot-group", XML_DATA_PILOT_GROUP ),
TOKEN( "japanese-candle-stick", XML_JAPANESE_CANDLE_STICK ),
commit ed8d0760373e29e4422a4b4b87c273eed4a9a6d0
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Dec 7 00:55:48 2014 +0100
correct order of xml elements, related fdo#45266
Change-Id: I03ea0e5bb064222e50dc08a682091ec3e23bf11d
diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx
index afc66f9..3812b2a 100644
--- a/sc/source/filter/xml/XMLExportDataPilot.cxx
+++ b/sc/source/filter/xml/XMLExportDataPilot.cxx
@@ -701,8 +701,8 @@ void ScXMLExportDataPilot::WriteDimension(ScDPSaveDimension* pDim, const ScDPDim
rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_FUNCTION, sValueStr);
SvXMLElementExport aElemDPF(rExport, XML_NAMESPACE_TABLE, XML_DATA_PILOT_FIELD, true, true);
- WriteFieldReference(pDim);
WriteLevels(pDim);
+ WriteFieldReference(pDim);
if( pDim->GetOrientation() != sheet::DataPilotFieldOrientation_DATA )
WriteGroupDimElements(pDim, pDimData);
}
More information about the Libreoffice-commits
mailing list