summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2002-01-17 10:13:08 +0000
committerMichael Brauer <mib@openoffice.org>2002-01-17 10:13:08 +0000
commit9a5d335e88221ec32837ff82732192be9bca74dd (patch)
treea6034ac3f339f737f67523a95da23e9cc62b7325 /xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
parent093c0fddb5034738033d621d5865956120a1eb47 (diff)
#96609#: Load OLE objects that have a hyperlink set
Diffstat (limited to 'xmloff/source/text/XMLTextFrameHyperlinkContext.cxx')
-rw-r--r--xmloff/source/text/XMLTextFrameHyperlinkContext.cxx41
1 files changed, 27 insertions, 14 deletions
diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
index ceb6edf3a0e6..07216066a4d3 100644
--- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
+++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLTextFrameHyperlinkContext.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: dvo $ $Date: 2001-06-29 21:07:22 $
+ * last change: $Author: mib $ $Date: 2002-01-17 11:13:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -171,18 +171,31 @@ SvXMLImportContext *XMLTextFrameHyperlinkContext::CreateChildContext(
SvXMLImportContext *pContext = 0;
XMLTextFrameContext *pTextFrameContext = 0;
- if( XML_NAMESPACE_DRAW == nPrefix &&
- IsXMLToken( rLocalName, XML_TEXT_BOX ) )
- pTextFrameContext = new XMLTextFrameContext( GetImport(), nPrefix,
- rLocalName, xAttrList,
- eAnchorType,
- XML_TEXT_FRAME_TEXTBOX);
- else if( XML_NAMESPACE_DRAW == nPrefix &&
- IsXMLToken( rLocalName, XML_IMAGE ) )
- pTextFrameContext = new XMLTextFrameContext( GetImport(), nPrefix,
- rLocalName, xAttrList,
- eAnchorType,
- XML_TEXT_FRAME_GRAPHIC );
+ if( XML_NAMESPACE_DRAW == nPrefix )
+ {
+ sal_uInt16 nFrameType = USHRT_MAX;
+ if( IsXMLToken( rLocalName, XML_TEXT_BOX ) )
+ nFrameType = XML_TEXT_FRAME_TEXTBOX;
+ else if( IsXMLToken( rLocalName, XML_IMAGE ) )
+ nFrameType = XML_TEXT_FRAME_GRAPHIC;
+ else if( IsXMLToken( rLocalName, XML_OBJECT ) )
+ nFrameType = XML_TEXT_FRAME_OBJECT;
+ else if( IsXMLToken( rLocalName, XML_OBJECT_OLE ) )
+ nFrameType = XML_TEXT_FRAME_OBJECT_OLE;
+ else if( IsXMLToken( rLocalName, XML_APPLET) )
+ nFrameType = XML_TEXT_FRAME_APPLET;
+ else if( IsXMLToken( rLocalName, XML_PLUGIN ) )
+ nFrameType = XML_TEXT_FRAME_PLUGIN;
+ else if( IsXMLToken( rLocalName, XML_FLOATING_FRAME ) )
+ nFrameType = XML_TEXT_FRAME_FLOATING_FRAME;
+
+ if( USHRT_MAX != nFrameType )
+ pTextFrameContext = new XMLTextFrameContext( GetImport(), nPrefix,
+ rLocalName, xAttrList,
+ eAnchorType,
+ nFrameType );
+ }
+
if( pTextFrameContext )
{
pTextFrameContext->SetHyperlink( sHRef, sName, sTargetFrameName, bMap );