Kaydet (Commit) b7492725 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

WIP: xlink:href needs xlink:type

Change-Id: Ide0fc9331a62c1ddb1f7fe9aaee8a27ed35af8e7
üst a5ce8c77
...@@ -651,6 +651,7 @@ void ODBExport::exportConnectionData() ...@@ -651,6 +651,7 @@ void ODBExport::exportConnectionData()
else else
{ {
AddAttribute(XML_NAMESPACE_XLINK, XML_HREF,sValue); AddAttribute(XML_NAMESPACE_XLINK, XML_HREF,sValue);
AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE);
SvXMLElementExport aElem(*this,XML_NAMESPACE_DB, XML_CONNECTION_RESOURCE, sal_True, sal_True); SvXMLElementExport aElem(*this,XML_NAMESPACE_DB, XML_CONNECTION_RESOURCE, sal_True, sal_True);
} }
} }
...@@ -861,6 +862,7 @@ void ODBExport::exportComponent(XPropertySet* _xProp) ...@@ -861,6 +862,7 @@ void ODBExport::exportComponent(XPropertySet* _xProp)
sValue = "reports/" + sValue; sValue = "reports/" + sValue;
AddAttribute(XML_NAMESPACE_XLINK, XML_HREF,sValue); AddAttribute(XML_NAMESPACE_XLINK, XML_HREF,sValue);
AddAttribute(XML_NAMESPACE_DB,XML_TYPE, TODO: always XML_SIMPLE?);
sal_Bool bAsTemplate = sal_False; sal_Bool bAsTemplate = sal_False;
_xProp->getPropertyValue(PROPERTY_AS_TEMPLATE) >>= bAsTemplate; _xProp->getPropertyValue(PROPERTY_AS_TEMPLATE) >>= bAsTemplate;
AddAttribute(XML_NAMESPACE_DB, XML_AS_TEMPLATE,bAsTemplate ? XML_TRUE : XML_FALSE); AddAttribute(XML_NAMESPACE_DB, XML_AS_TEMPLATE,bAsTemplate ? XML_TRUE : XML_FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment