[Libreoffice-commits] core.git: xmloff/source

Miklos Vajna vmiklos at collabora.co.uk
Mon Jun 2 01:30:56 PDT 2014


 xmloff/source/draw/sdpropls.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 9d310ecfce3c2fc481b125e1493a534e2107a68e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jun 2 10:18:26 2014 +0200

    sw textboxes: implement ODF import/export
    
    Map Writer shapes' new TextBox property to an loext:text-box boolean
    attribute.
    
    Change-Id: Ie47e15130adc1c480666c689c55a6c9e8460e385

diff --git a/xmloff/source/draw/sdpropls.cxx b/xmloff/source/draw/sdpropls.cxx
index c572e68..396c68b 100644
--- a/xmloff/source/draw/sdpropls.cxx
+++ b/xmloff/source/draw/sdpropls.cxx
@@ -80,6 +80,8 @@ using namespace ::xmloff::token;
 #define TMAP(name,prefix,token,type,context) _MAP(name,prefix,token,type|XML_TYPE_PROP_TEXT,context)
 #define PMAP(name,prefix,token,type,context) _MAP(name,prefix,token,type|XML_TYPE_PROP_PARAGRAPH,context)
 #define MAP_END() { 0L, 0, 0, XML_EMPTY, 0 ,0, SvtSaveOptions::ODFVER_010, false }
+// extensions import/export
+#define MAP_EXT(name,prefix,token,type,context)  _MAPV(name,prefix,token,type,context,SvtSaveOptions::ODFVER_012_EXT_COMPAT)
 
 // entry list for graphic properties
 
@@ -288,6 +290,9 @@ const XMLPropertyMapEntry aXMLSDProperties[] =
     // misc object properties
     GMAP( "MoveProtect",                    XML_NAMESPACE_STYLE, XML_PROTECT,               XML_SD_TYPE_MOVE_PROTECT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, CTF_SD_MOVE_PROTECT ),
     GMAP( "SizeProtect",                    XML_NAMESPACE_STYLE, XML_PROTECT,               XML_SD_TYPE_SIZE_PROTECT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, CTF_SD_SIZE_PROTECT ),
+
+    MAP_EXT("TextBox", XML_NAMESPACE_LO_EXT, XML_TEXT_BOX, XML_TYPE_BOOL|XML_TYPE_PROP_GRAPHIC, 0),
+
     MAP_END()
 };
 


More information about the Libreoffice-commits mailing list