summaryrefslogtreecommitdiff
path: root/i18npool/source/numberformatcode
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2001-11-12 15:38:38 +0000
committerEike Rathke <er@openoffice.org>2001-11-12 15:38:38 +0000
commit47c516360d196dd056f964fe1eb8b0202c504f6b (patch)
treec9d9a923ca2fc3d211fed7139c7415fdbd03adaa /i18npool/source/numberformatcode
parent1c526d29cc9676b81be804935c5af5e80b292cae (diff)
#84725# add XServiceInfo implementation
Diffstat (limited to 'i18npool/source/numberformatcode')
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx29
1 files changed, 27 insertions, 2 deletions
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index 34bee8948069..0ca9307fca05 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: numberformatcode.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: bustamam $ $Date: 2001-09-16 15:23:00 $
+ * last change: $Author: er $ $Date: 2001-11-12 16:37:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -319,3 +319,28 @@ NumberFormatCodeMapper::createLocaleDataObject() {
x >>= xlocaleData;
}
}
+
+::rtl::OUString SAL_CALL
+NumberFormatCodeMapper::getImplementationName(void)
+ throw( ::com::sun::star::uno::RuntimeException )
+{
+ return ::rtl::OUString::createFromAscii("com.sun.star.i18n.NumberFormatCodeMapper");
+}
+
+const sal_Char cNumFormat[] = "com.sun.star.i18n.NumberFormatMapper";
+
+sal_Bool SAL_CALL
+NumberFormatCodeMapper::supportsService(const rtl::OUString& rServiceName)
+ throw( ::com::sun::star::uno::RuntimeException )
+{
+ return !rServiceName.compareToAscii(cNumFormat);
+}
+
+::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
+NumberFormatCodeMapper::getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException )
+{
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > aRet(1);
+ aRet[0] = ::rtl::OUString::createFromAscii(cNumFormat);
+ return aRet;
+}
+