Kaydet (Commit) 79a19871 authored tarafından Noel Power's avatar Noel Power

#i21260#

Change use of script:// protocol to new vnd.sun.star.script://....
üst f9acf292
......@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptBrowseNode.java,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: npower $ $Date: 2003-10-15 09:23:03 $
* last change: $Author: npower $ $Date: 2003-10-15 15:03:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -78,7 +78,7 @@ public class ScriptBrowseNode extends PropertySet implements XBrowseNode {
public boolean deletable = false;
public ScriptBrowseNode(ScriptEntry entry, String location) {
uri = "script://" + entry.getLanguageName() +
uri = "vnd.sun.star.script://" + entry.getLanguageName() +
"?" + "language=" + entry.getLanguage() +
"&location=" + location;
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: basprov.cxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: npower $ $Date: 2003-10-15 08:35:32 $
* last change: $Author: npower $ $Date: 2003-10-15 15:03:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -336,7 +336,7 @@ namespace basprov
// parse scriptURI
// TODO: use URI parsing class
::rtl::OUString aSchema( ::rtl::OUString::createFromAscii( "script://" ) );
::rtl::OUString aSchema( ::rtl::OUString::createFromAscii( "vnd.sun.star.script://" ) );
sal_Int32 nSchemaLen = aSchema.getLength();
sal_Int32 nLen = scriptURI.indexOf( '?' );
::rtl::OUString aDescription;
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptURI.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: npower $ $Date: 2003-10-15 08:39:02 $
* last change: $Author: npower $ $Date: 2003-10-15 15:03:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -77,7 +77,7 @@ using namespace ::com::sun::star::lang;
namespace scripting_impl {
static const OUString schema = OUString::createFromAscii( "script://" );
static const OUString schema = OUString::createFromAscii( "vnd.sun.star.script://" );
/**
* Constructor
......@@ -168,7 +168,7 @@ void ScriptURI::set_values( scripting_impl::Uri values )
m_valid = values.valid;
m_location = values.location;
m_language = values.language;
// format is script:://[function_name]?language=[languge]&location=[location]
// format is vnd.sun.star.script://[function_name]?language=[languge]&location=[location]
// LogicalName is now not used anymore, further more the ScriptURI class
// will be retired also and a new UNO service will be used. Additionally the
// parcel-description will also need to be modified to remove logical name
......@@ -193,7 +193,7 @@ Uri ScriptURI::parseIt()
scripting_impl::Uri results;
results.valid = sal_True;
//attempt to parse
// check that it starts script://
// check that it starts vnd.sun.star.script
// better check for OBO errors here
if( m_uri.indexOf( schema ) != 0 )
{
......
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