summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/unomodel.cxx
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
commitf8546eb9984527bbae3860b9685d6c746c930206 (patch)
treea76545f30c9946ec3ed124c4a4a7108555a9beff /basctl/source/basicide/unomodel.cxx
parent9e77f1bed0b689cacaaeba94366db05f9e2565d4 (diff)
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/source/basicide/unomodel.cxx')
-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 b43d44d95..ed0d3b9cf 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;
}