diff options
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r-- | starmath/source/unomodel.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index c3b9a9debaf8..bd0676824605 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -37,6 +37,7 @@ #include <rtl/ustrbuf.hxx> #include <comphelper/propertysetinfo.hxx> #include <comphelper/servicehelper.hxx> +#include <cppuhelper/supportsservice.hxx> #include <unotools/moduleoptions.hxx> #include <unomodel.hxx> @@ -416,10 +417,7 @@ OUString SmModel::getImplementationName_Static() sal_Bool SmModel::supportsService(const OUString& rServiceName) throw( uno::RuntimeException ) { - return ( - rServiceName == "com.sun.star.document.OfficeDocument" || - rServiceName == "com.sun.star.formula.FormulaProperties" - ); + return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SmModel::getSupportedServiceNames(void) throw( uno::RuntimeException ) |