[Libreoffice-commits] core.git: 2 commits - dbaccess/source

Lionel Elie Mamane lionel at mamane.lu
Tue Jan 7 08:18:59 PST 2014


 dbaccess/source/core/dataaccess/databasedocument.cxx |    1 +
 dbaccess/source/filter/xml/xmlExport.cxx             |    2 ++
 2 files changed, 3 insertions(+)

New commits:
commit 67db0c190ed2fe0629380ca32d153d3f5ab475dc
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Tue Jan 7 17:06:15 2014 +0100

    to set version property, it should exist...
    
    Change-Id: I1ca20da284f61c54ea04a27e5a27a84041c505e5

diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index c7b9110..ba0a589 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -1615,6 +1615,7 @@ void ODatabaseDocument::impl_writeStorage_throw( const Reference< XStorage >& _r
         { OUString("BaseURI"), 0, ::getCppuType( (OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
         { OUString("StreamName"), 0, ::getCppuType( (OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
         { OUString("UsePrettyPrinting"), 0, ::getCppuType((sal_Bool*)0), beans::PropertyAttribute::MAYBEVOID, 0},
+        { OUString("Version"), 0,&::getCppuType( (OUString *)0 ),beans::PropertyAttribute::MAYBEVOID, 0 },
         { OUString(), 0, css::uno::Type(), 0, 0 }
     };
     uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aExportInfoMap ) ) );
commit 4933d0578e73130d9b06a849139934d952338155
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Sat Dec 21 10:41:51 2013 +0100

    ODB ODF standard conformance: xlink:href needs xlink:type
    
    Change-Id: Ide0fc9331a62c1ddb1f7fe9aaee8a27ed35af8e7

diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index f1b9350..d66ec0c 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -651,6 +651,7 @@ void ODBExport::exportConnectionData()
             else
             {
                 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);
             }
         }
@@ -861,6 +862,7 @@ void ODBExport::exportComponent(XPropertySet* _xProp)
         sValue = "reports/" + sValue;
 
     AddAttribute(XML_NAMESPACE_XLINK, XML_HREF,sValue);
+    AddAttribute(XML_NAMESPACE_DB, XML_TYPE, XML_SIMPLE);
     sal_Bool bAsTemplate = sal_False;
     _xProp->getPropertyValue(PROPERTY_AS_TEMPLATE) >>= bAsTemplate;
     AddAttribute(XML_NAMESPACE_DB, XML_AS_TEMPLATE,bAsTemplate ? XML_TRUE : XML_FALSE);


More information about the Libreoffice-commits mailing list