From 2a87e64018a0768b7b5618dc876a0c33c71b2e44 Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Mon, 30 Apr 2001 08:02:17 +0000 Subject: #86534# fixed ole2 export/import of applets,plugins and floating-frames for calc and draw --- xmloff/source/draw/shapeimport.cxx | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'xmloff/source/draw/shapeimport.cxx') 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 ); -- cgit