summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2001-02-05 09:05:51 +0000
committerJörg Barfurth <jb@openoffice.org>2001-02-05 09:05:51 +0000
commit98939fe1f68ce05ab1fa473f80a6748158cbce46 (patch)
tree5155f4d37b4471a937bd6d66f54965844e7c2c2a /configmgr
parent3cbcfe13b16f92d69e6bc655c5fe9a211d474653 (diff)
#83448# Added XServiceInfo for group nodes (as they have their own service descriptions now).
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/api2/elementaccess.cxx22
-rw-r--r--configmgr/source/api2/elementaccess.hxx25
2 files changed, 39 insertions, 8 deletions
diff --git a/configmgr/source/api2/elementaccess.cxx b/configmgr/source/api2/elementaccess.cxx
index f2d5caf73819..3e5edecd55b3 100644
--- a/configmgr/source/api2/elementaccess.cxx
+++ b/configmgr/source/api2/elementaccess.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: elementaccess.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jb $ $Date: 2000-11-16 18:07:57 $
+ * last change: $Author: jb $ $Date: 2001-02-05 10:05:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -343,6 +343,12 @@ void SAL_CALL BasicUpdateElement::removeEventListener( const uno::Reference< css
// XServiceInfo
//-----------------------------------------------------------------------------------
+OUString SAL_CALL BasicInnerElement::getImplementationName( ) throw(uno::RuntimeException)
+{
+ return implGetImplementationName( getNodeAccess(), getElementClass() );
+}
+//-----------------------------------------------------------------------------------
+
OUString SAL_CALL BasicSetElement::getImplementationName( ) throw(uno::RuntimeException)
{
return implGetImplementationName( getNodeAccess(), getElementClass() );
@@ -362,6 +368,12 @@ OUString SAL_CALL BasicUpdateElement::getImplementationName( ) throw(uno::Runti
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
+sal_Bool SAL_CALL BasicInnerElement::supportsService( const OUString& ServiceName ) throw(uno::RuntimeException)
+{
+ return implSupportsService( getNodeAccess(), getElementClass(), ServiceName );
+}
+//-----------------------------------------------------------------------------------
+
sal_Bool SAL_CALL BasicSetElement::supportsService( const OUString& ServiceName ) throw(uno::RuntimeException)
{
return implSupportsService( getNodeAccess(), getElementClass(), ServiceName );
@@ -381,6 +393,12 @@ sal_Bool SAL_CALL BasicUpdateElement::supportsService( const OUString& ServiceNa
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
+uno::Sequence< OUString > SAL_CALL BasicInnerElement::getSupportedServiceNames( ) throw(uno::RuntimeException)
+{
+ return implGetSupportedServiceNames( getNodeAccess(), getElementClass() );
+}
+//-----------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL BasicSetElement::getSupportedServiceNames( ) throw(uno::RuntimeException)
{
return implGetSupportedServiceNames( getNodeAccess(), getElementClass() );
diff --git a/configmgr/source/api2/elementaccess.hxx b/configmgr/source/api2/elementaccess.hxx
index 79c2aadd000f..cbcd513ae418 100644
--- a/configmgr/source/api2/elementaccess.hxx
+++ b/configmgr/source/api2/elementaccess.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: elementaccess.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jb $ $Date: 2000-11-16 18:07:57 $
+ * last change: $Author: jb $ $Date: 2001-02-05 10:05:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -90,8 +90,8 @@
#include <com/sun/star/util/XChangesBatch.hpp>
#endif
-#ifndef _CPPUHELPER_IMPLBASE2_HXX_
-#include <cppuhelper/implbase2.hxx>
+#ifndef _CPPUHELPER_IMPLBASE3_HXX_
+#include <cppuhelper/implbase3.hxx>
#endif
#ifndef _CPPUHELPER_IMPLBASE5_HXX_
#include <cppuhelper/implbase5.hxx>
@@ -127,10 +127,10 @@ namespace configmgr
<type scope='configmgr::configapi'>NodeAccess</type> and
<type scope='configmgr::configapi'>InnerElement</type>.</p>
*/
- typedef ::cppu::WeakImplHelper2
+ typedef ::cppu::WeakImplHelper3
< css::container::XChild
, css::container::XNamed
-// , css::lang::XServiceInfo
+ , css::lang::XServiceInfo
>
InnerElementImplHelper;
@@ -170,6 +170,19 @@ namespace configmgr
setName( const OUString& aName )
throw(uno::RuntimeException);
+ // XServiceInfo
+ virtual OUString SAL_CALL
+ getImplementationName( )
+ throw(uno::RuntimeException);
+
+ virtual sal_Bool SAL_CALL
+ supportsService( const OUString& ServiceName )
+ throw(uno::RuntimeException);
+
+ virtual uno::Sequence< OUString > SAL_CALL
+ getSupportedServiceNames( )
+ throw(uno::RuntimeException);
+
protected:
virtual configapi::InnerElement& getElementClass() = 0;
virtual configapi::NodeAccess& getNodeAccess() = 0;