summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 12:24:09 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 12:24:09 +0000
commit4923375a177d6ac6d97ddcb430432e9057ae2160 (patch)
tree041ac6a5370afca2bd72aefdd243441e3ad0019a /basctl
parent0114817ecf6174a4a2450c3520aa371b2a8c4fd2 (diff)
INTEGRATION: CWS sb15 (1.24.28); FILE MERGED
2004/02/26 17:34:45 tbe 1.24.28.1: #i24360# Remove INET_PROT_VND_SUN_STAR_SCRIPT
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basobj2.cxx29
1 files changed, 14 insertions, 15 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 4c65589f7e1e..929160328d0d 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basobj2.cxx,v $
*
- * $Revision: 1.24 $
+ * $Revision: 1.25 $
*
- * last change: $Author: rt $ $Date: 2003-12-01 15:51:57 $
+ * last change: $Author: obo $ $Date: 2004-03-19 13:24:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -662,16 +662,16 @@ void BasicIDE::UpdateModule( SfxObjectShell* pShell, const String& rLibName, con
DBG_ASSERT(pBasMgr, "BasicIDE::ChooseMacro: No BasicManager found!");
if ( pBasMgr )
{
- // language
- String aLanguage = String::CreateFromAscii("StarBasic");
+ // name
+ String aName;
+ aName += pBasic->GetName();
+ aName += '.';
+ aName += pModule->GetName();
+ aName += '.';
+ aName += pMethod->GetName();
- // macro
- String aMacro;
- aMacro += pBasic->GetName();
- aMacro += '.';
- aMacro += pModule->GetName();
- aMacro += '.';
- aMacro += pMethod->GetName();
+ // language
+ String aLanguage = String::CreateFromAscii("Basic");
// location
String aLocation;
@@ -699,11 +699,10 @@ void BasicIDE::UpdateModule( SfxObjectShell* pShell, const String& rLibName, con
if ( !bError )
{
aScriptURL = String::CreateFromAscii("vnd.sun.star.script:");
- aScriptURL += String::CreateFromAscii("language=");
+ aScriptURL += aName;
+ aScriptURL += String::CreateFromAscii("?language=");
aScriptURL += aLanguage;
- aScriptURL += String::CreateFromAscii(",macro=");
- aScriptURL += aMacro;
- aScriptURL += String::CreateFromAscii(",location=");
+ aScriptURL += String::CreateFromAscii("&location=");
aScriptURL += aLocation;
}
}