summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/numberformatcodewrapper.cxx
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2001-01-26 16:25:51 +0000
committerEike Rathke <er@openoffice.org>2001-01-26 16:25:51 +0000
commitbde847f77eb8465c66b7ef27677c8c13bc7608f1 (patch)
treeccfc9f76790d87e92f025982653c5b3a5667a020 /unotools/source/i18n/numberformatcodewrapper.cxx
parent63f7fdbe634e1f578a202abc32d6c3f15e7179d4 (diff)
new: getAllFormatCodes
Diffstat (limited to 'unotools/source/i18n/numberformatcodewrapper.cxx')
-rw-r--r--unotools/source/i18n/numberformatcodewrapper.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/unotools/source/i18n/numberformatcodewrapper.cxx b/unotools/source/i18n/numberformatcodewrapper.cxx
index 59f958776d8b..fa9451920037 100644
--- a/unotools/source/i18n/numberformatcodewrapper.cxx
+++ b/unotools/source/i18n/numberformatcodewrapper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: numberformatcodewrapper.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2000-11-07 10:09:33 $
+ * last change: $Author: er $ $Date: 2001-01-26 17:25:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -189,3 +189,19 @@ NumberFormatCodeWrapper::getAllFormatCode( sal_Int16 formatUsage ) const
}
return ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > (0);
}
+
+
+::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode >
+NumberFormatCodeWrapper::getAllFormatCodes() const
+{
+ try
+ {
+ if ( xNFC.is() )
+ return xNFC->getAllFormatCodes( aLocale );
+ }
+ catch ( Exception& e )
+ {
+ DBG_ERRORFILE( "getAllFormatCodes: Exception caught!" );
+ }
+ return ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > (0);
+}