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 | 385fcc34b7ffbc99869bf7d943299ac72e89918b (patch) | |
tree | f195b017c35f9cb8f0d3867f59139d5315307e0b /xmlscript | |
parent | cf57e5f7376722c90afcd0363f64ae1fa934b853 (diff) |
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')
-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 ff0bccaa1a..a873f43437 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") )) |