bump product version to 5.0.4.1
[LibreOffice.git] / include / unotools / numberformatcodewrapper.hxx
blob066e38858d75a8eac4918927cdf17f2265eb0819
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_UNOTOOLS_NUMBERFORMATCODEWRAPPER_HXX
21 #define INCLUDED_UNOTOOLS_NUMBERFORMATCODEWRAPPER_HXX
23 #include <com/sun/star/i18n/XNumberFormatCode.hpp>
24 #include <unotools/unotoolsdllapi.h>
26 namespace com { namespace sun { namespace star {
27 namespace uno {
28 class XComponentContext;
30 }}}
32 class UNOTOOLS_DLLPUBLIC NumberFormatCodeWrapper
34 ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC;
35 ::com::sun::star::lang::Locale aLocale;
37 NumberFormatCodeWrapper( const NumberFormatCodeWrapper& ) SAL_DELETED_FUNCTION;
38 NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& ) SAL_DELETED_FUNCTION;
40 public:
41 NumberFormatCodeWrapper(
42 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rxContext,
43 const ::com::sun::star::lang::Locale& rLocale
46 ~NumberFormatCodeWrapper();
48 /// set a new Locale
49 void setLocale( const ::com::sun::star::lang::Locale& rLocale );
51 /// get current Locale
52 const ::com::sun::star::lang::Locale& getLocale() const { return aLocale; }
54 // Wrapper implementations of class NumberFormatCodeMapper
56 ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const;
57 ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCode( sal_Int16 nFormatUsage ) const;
58 ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCodes() const;
62 #endif // INCLUDED_UNOTOOLS_NUMBERFORMATCODEWRAPPER_HXX
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */