Kaydet (Commit) 9a5d335e authored tarafından Michael Brauer's avatar Michael Brauer

#96609#: Load OLE objects that have a hyperlink set

üst 093c0fdd
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLTextFrameHyperlinkContext.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -171,18 +171,31 @@ SvXMLImportContext *XMLTextFrameHyperlinkContext::CreateChildContext( ...@@ -171,18 +171,31 @@ SvXMLImportContext *XMLTextFrameHyperlinkContext::CreateChildContext(
SvXMLImportContext *pContext = 0; SvXMLImportContext *pContext = 0;
XMLTextFrameContext *pTextFrameContext = 0; XMLTextFrameContext *pTextFrameContext = 0;
if( XML_NAMESPACE_DRAW == nPrefix && if( XML_NAMESPACE_DRAW == nPrefix )
IsXMLToken( rLocalName, XML_TEXT_BOX ) ) {
pTextFrameContext = new XMLTextFrameContext( GetImport(), nPrefix, sal_uInt16 nFrameType = USHRT_MAX;
rLocalName, xAttrList, if( IsXMLToken( rLocalName, XML_TEXT_BOX ) )
eAnchorType, nFrameType = XML_TEXT_FRAME_TEXTBOX;
XML_TEXT_FRAME_TEXTBOX); else if( IsXMLToken( rLocalName, XML_IMAGE ) )
else if( XML_NAMESPACE_DRAW == nPrefix && nFrameType = XML_TEXT_FRAME_GRAPHIC;
IsXMLToken( rLocalName, XML_IMAGE ) ) else if( IsXMLToken( rLocalName, XML_OBJECT ) )
pTextFrameContext = new XMLTextFrameContext( GetImport(), nPrefix, nFrameType = XML_TEXT_FRAME_OBJECT;
rLocalName, xAttrList, else if( IsXMLToken( rLocalName, XML_OBJECT_OLE ) )
eAnchorType, nFrameType = XML_TEXT_FRAME_OBJECT_OLE;
XML_TEXT_FRAME_GRAPHIC ); 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 ) if( pTextFrameContext )
{ {
pTextFrameContext->SetHyperlink( sHRef, sName, sTargetFrameName, bMap ); pTextFrameContext->SetHyperlink( sHRef, sName, sTargetFrameName, bMap );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment