diff options
-rw-r--r-- | odk/examples/cpp/complextoolbarcontrols/MyListener.cxx | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx index cfea95af..da9fce33 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx @@ -35,22 +35,16 @@ namespace css = ::com::sun::star; -/*----------------------------------------------------- - 20.11.2003 11:31 ------------------------------------------------------*/ + MyListener::MyListener(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR) : m_xSMGR(xSMGR) {} -/*----------------------------------------------------- - 20.11.2003 11:32 ------------------------------------------------------*/ + MyListener::~MyListener() {} -/*----------------------------------------------------- - 20.11.2003 12:04 ------------------------------------------------------*/ + css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments) throw (css::lang::IllegalArgumentException, css::uno::Exception, @@ -125,18 +119,14 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans: return css::uno::Any(); } -/*----------------------------------------------------- - 20.11.2003 12:13 ------------------------------------------------------*/ + ::rtl::OUString SAL_CALL MyListener::getImplementationName() throw (css::uno::RuntimeException) { return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MYLISTENER_IMPLEMENTATIONNAME)); } -/*----------------------------------------------------- - 20.11.2003 12:13 ------------------------------------------------------*/ + css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNames() throw (css::uno::RuntimeException) { @@ -145,21 +135,17 @@ css::uno::Sequence< ::rtl::OUString > SAL_CALL MyListener::getSupportedServiceNa return lNames; } -/*----------------------------------------------------- - 20.11.2003 12:14 ------------------------------------------------------*/ + sal_Bool SAL_CALL MyListener::supportsService(const ::rtl::OUString& sServiceName) throw (css::uno::RuntimeException) { return ( - sServiceName.equalsAscii(MYLISTENER_SERVICENAME) || - sServiceName.equalsAscii("com.sun.star.task.Job" ) + sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(MYLISTENER_SERVICENAME)) || + sServiceName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.task.Job")) ); } -/*----------------------------------------------------- - 20.11.2003 11:31 ------------------------------------------------------*/ + css::uno::Reference< css::uno::XInterface > MyListener::st_createInstance(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR) { MyListener* pListener = new MyListener(xSMGR); |