summaryrefslogtreecommitdiffstats
path: root/basctl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-01-28 11:56:52 +0000
committerKurt Zenker <kz@openoffice.org>2004-01-28 11:56:52 +0000
commita3b46954073c78eeaa8792a30e10213bae2e7917 (patch)
tree367955a4a66f93f530b27e39e020964e48ae43d2 /basctl
parentINTEGRATION: CWS filtercfg (1.9.8); FILE MERGED (diff)
downloadcore-a3b46954073c78eeaa8792a30e10213bae2e7917.tar.gz
core-a3b46954073c78eeaa8792a30e10213bae2e7917.zip
INTEGRATION: CWS filtercfg (1.2.8); FILE MERGED
2003/11/10 08:01:32 as 1.2.8.1: #111770# dont register for generic uno services
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/unomodel.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx
index b43d44d958c3..ed0d3b9cf271 100644
--- a/basctl/source/basicide/unomodel.cxx
+++ b/basctl/source/basicide/unomodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomodel.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2003-09-19 08:30:26 $
+ * last change: $Author: kz $ $Date: 2004-01-28 12:56:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -138,7 +138,9 @@ OUString SIDEModel::getImplementationName(void) throw( uno::RuntimeException )
sal_Bool SIDEModel::supportsService(const OUString& rServiceName) throw( uno::RuntimeException )
{
- return rServiceName == ::rtl::OUString::createFromAscii("com.sun.star.document.OfficeDocument");
+ // The BasicIDE isnt a real OfficeDocument! It should have its own service.
+ // Currently I`ve recycle the implementation name as service name ...
+ return rServiceName.equalsAscii("com.sun.star.comp.basic.BasicIDE");
}
uno::Sequence< OUString > SIDEModel::getSupportedServiceNames(void) throw( uno::RuntimeException )
{
@@ -149,7 +151,7 @@ uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static(void)
{
uno::Sequence< OUString > aRet(1);
OUString* pArray = aRet.getArray();
- pArray[0] = ::rtl::OUString::createFromAscii("com.sun.star.document.OfficeDocument");
+ pArray[0] = rtl::OUString::createFromAscii("com.sun.star.comp.basic.BasicIDE");
return aRet;
}