From dbc6d49b6cc3e76aefdc57d2fd0b8e21740a9b48 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 7 Jul 2008 11:09:27 +0000 Subject: INTEGRATION: CWS ab53 (1.36.4); FILE MERGED 2008/06/19 09:35:34 tkr 1.36.4.1: #i90295# smoketest options dlg fails --- xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'xmlscript/source') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index e5d1b6674a52..f02b9d46b2aa 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmldlg_import.cxx,v $ - * $Revision: 1.36 $ + * $Revision: 1.37 $ * * This file is part of OpenOffice.org. * @@ -1452,7 +1452,19 @@ void ImportContext::importEvents( descr.ScriptCode = buf.makeStringAndClear(); } } - + else if ( descr.ScriptType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM( "Script" ) ) ) ) + { + // Check if there is a protocol, if not assume + // this is an early scripting framework url ( without + // the protocol ) and fix it up!! + if ( descr.ScriptCode.indexOf( ':' ) == -1 ) + { + ::rtl::OUStringBuffer buf; + buf.append( OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.script:" ) ) ); + buf.append( descr.ScriptCode ); + descr.ScriptCode = buf.makeStringAndClear(); + } + } // script:event element if (aLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("event") )) -- cgit