diff options
author | Eike Rathke <er@openoffice.org> | 2001-01-26 16:25:51 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-01-26 16:25:51 +0000 |
commit | bde847f77eb8465c66b7ef27677c8c13bc7608f1 (patch) | |
tree | ccfc9f76790d87e92f025982653c5b3a5667a020 /unotools | |
parent | 63f7fdbe634e1f578a202abc32d6c3f15e7179d4 (diff) |
new: getAllFormatCodes
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/numberformatcodewrapper.hxx | 5 | ||||
-rw-r--r-- | unotools/source/i18n/numberformatcodewrapper.cxx | 20 |
2 files changed, 21 insertions, 4 deletions
diff --git a/unotools/inc/unotools/numberformatcodewrapper.hxx b/unotools/inc/unotools/numberformatcodewrapper.hxx index e374dabe6cf9..3040c129bc6f 100644 --- a/unotools/inc/unotools/numberformatcodewrapper.hxx +++ b/unotools/inc/unotools/numberformatcodewrapper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: numberformatcodewrapper.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: er $ $Date: 2000-11-03 16:06:33 $ + * last change: $Author: er $ $Date: 2001-01-26 17:25:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -104,6 +104,7 @@ public: ::com::sun::star::i18n::NumberFormatCode getDefault( sal_Int16 nFormatType, sal_Int16 nFormatUsage ) const; ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const; ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCode( sal_Int16 nFormatUsage ) const; + ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCodes() const; }; 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); +} |