diff options
author | Christian Lippka <cl@openoffice.org> | 2001-04-30 08:02:17 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-04-30 08:02:17 +0000 |
commit | 2a87e64018a0768b7b5618dc876a0c33c71b2e44 (patch) | |
tree | e3fcac8d81c07b85512599e4e8f0f287c882814f /xmloff/source/draw/shapeimport.cxx | |
parent | 54d31199a0fce2a0db97d106499d5fe5c65d06ec (diff) |
#86534# fixed ole2 export/import of applets,plugins and floating-frames for calc and draw
Diffstat (limited to 'xmloff/source/draw/shapeimport.cxx')
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index 570cca810960..f192680bb2b8 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shapeimport.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: cl $ $Date: 2001-02-27 16:09:08 $ + * last change: $Author: cl $ $Date: 2001-04-30 09:02:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -273,6 +273,10 @@ static __FAR_DATA SvXMLTokenMapEntry aGroupShapeElemTokenMap[] = { XML_NAMESPACE_DRAW, sXML_object, XML_TOK_GROUP_OBJECT }, { XML_NAMESPACE_DRAW, sXML_object_ole, XML_TOK_GROUP_OBJECT_OLE }, + { XML_NAMESPACE_DRAW, sXML_plugin, XML_TOK_GROUP_PLUGIN }, + { XML_NAMESPACE_DRAW, sXML_floating_frame,XML_TOK_GROUP_FRAME }, + { XML_NAMESPACE_DRAW, sXML_applet, XML_TOK_GROUP_APPLET }, + XML_TOKEN_MAP_END }; @@ -784,6 +788,24 @@ SvXMLImportContext* XMLShapeImportHelper::CreateGroupChildContext( pContext = new SdXMLObjectShapeContext( rImport, nPrefix, rLocalName, xAttrList, rShapes ); break; } + case XML_TOK_GROUP_PLUGIN: + { + // draw:plugin + pContext = new SdXMLPluginShapeContext( rImport, nPrefix, rLocalName, xAttrList, rShapes ); + break; + } + case XML_TOK_GROUP_FRAME: + { + // draw:frame + pContext = new SdXMLFrameShapeContext( rImport, nPrefix, rLocalName, xAttrList, rShapes ); + break; + } + case XML_TOK_GROUP_APPLET: + { + // draw:applet + pContext = new SdXMLAppletShapeContext( rImport, nPrefix, rLocalName, xAttrList, rShapes ); + break; + } // add other shapes here... default: return new SvXMLImportContext( rImport, nPrefix, rLocalName ); |