/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef _I18N_NUMBERFORMATCODE_HXX_ #define _I18N_NUMBERFORMATCODE_HXX_ #include #include #include // helper for implementations #include #include #include #include class NumberFormatCodeMapper : public cppu::WeakImplHelper2 < ::com::sun::star::i18n::XNumberFormatCode, ::com::sun::star::lang::XServiceInfo > { public: NumberFormatCodeMapper( const ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory >& rxMSF ); ~NumberFormatCodeMapper(); virtual ::com::sun::star::i18n::NumberFormatCode SAL_CALL getDefault( sal_Int16 nFormatType, sal_Int16 nFormatUsage, const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::i18n::NumberFormatCode SAL_CALL getFormatCode( sal_Int16 nFormatIndex, const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > SAL_CALL getAllFormatCode( sal_Int16 nFormatUsage, const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > SAL_CALL getAllFormatCodes( const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException); //XServiceInfo virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ); virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ); private: ::com::sun::star::lang::Locale aLocale; ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > xMSF; ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::FormatElement > aFormatSeq; ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XLocaleData > xlocaleData; sal_Bool bFormatsValid; void setupLocale( const ::com::sun::star::lang::Locale& rLocale ); void getFormats( const ::com::sun::star::lang::Locale& rLocale ); ::rtl::OUString mapElementTypeShortToString(sal_Int16 formatType); sal_Int16 mapElementTypeStringToShort(const ::rtl::OUString& formatType); ::rtl::OUString mapElementUsageShortToString(sal_Int16 formatUsage); sal_Int16 mapElementUsageStringToShort(const ::rtl::OUString& formatUsage); void createLocaleDataObject(); }; #endif // _I18N_NUMBERFORMATCODE_HXX_ bora/libreoffice-4.0.6.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-28com::sun::star->css in scaddins,sccomp,scriptingNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-10-07Actually check the return values of the various Coin* callsStephan Bergmann
2015-09-15Resolves: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
2015-01-04stdexcept for std::runtime_errorCaolán McNamara
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara
2014-12-18sccomp: Use appropriate OUString functions on string constantsStephan Bergmann
2014-06-06coverity#1202902 Uncaught CoinError exceptionCaolán McNamara
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
2014-04-24sccomp: sal_Bool->boolNoel Grandin
2014-04-04sccomp: Fix description of com.sun.star.comp.Calc.CoinMPSolver.Matúš Kukan
2014-04-03loplugin:saloverrideStephan Bergmann
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin
2014-04-03override specifier 'override' not allowed on a destructorMatúš Kukan
2014-04-03sccomp: Share common code and have only one library.Matúš Kukan
2014-04-01sccomp: Make the source files more similar and fix some problems.Matúš Kukan
2014-04-01Install coinmp and lpsolve linear solvers in parallel.Matúš Kukan
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-04fdo#54938: Convert some places to use cppu::supportsServiceMarcos Paulo de Souza
2014-03-03118160: Use CoinMP as replacement for lp_solve.Andre Fischer
2014-03-03Rename sccomp/source/solver/solver.cxx to solver-lpsolve.cxxMatúš Kukan
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2014-02-26Remove visual noise from sccompAlexander Wilms
2014-02-23Remove unneccessary commentsAlexander Wilms
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann
2013-11-11remove unnecessary use of OUString constructorNoel Grandin
2013-10-25fdo#54938: More uses of cppu::supportsServiceMarcos Paulo de Souza
2013-08-16Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unusedCaolán McNamara
2013-06-04MPLv2 subset improvements.Michael Meeks
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2013-03-27Missing #include "sal/config.h"Stephan Bergmann
2013-03-27-Wunused-macrosStephan Bergmann
2013-03-08fdo#60691 add modelines to *.src and *.hrc filesBorim
2013-01-30remove useless macrosLuboš Luňák
2013-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac
2012-12-06re-base on ALv2 code. Includes:Michael Meeks
2012-11-07convert lpsolve to gbuildPeter Foley
2012-11-04Enough with that...Norbert Thiebaud
2012-11-03convert lpsolve to gbuildPeter Foley
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák