diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 11:09:27 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 11:09:27 +0000 |
commit | dbc6d49b6cc3e76aefdc57d2fd0b8e21740a9b48 (patch) | |
tree | bdd2875d224ebab1f2e470da157ad29d39d63cfe /xmlscript/source | |
parent | INTEGRATION: CWS ab53 (1.26.24); FILE MERGED (diff) | |
download | core-dbc6d49b6cc3e76aefdc57d2fd0b8e21740a9b48.tar.gz core-dbc6d49b6cc3e76aefdc57d2fd0b8e21740a9b48.zip |
INTEGRATION: CWS ab53 (1.36.4); FILE MERGED
2008/06/19 09:35:34 tkr 1.36.4.1: #i90295# smoketest options dlg fails
Diffstat (limited to 'xmlscript/source')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
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") )) |