update credits
[LibreOffice.git] / include / unotools / numberformatcodewrapper.hxx
blob82e254e7ea1d96cef63a1d87b2e1b3ba13cf129f
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 _UNOTOOLS_NUMBERFORMATCODEWRAPPER_HXX
21 #define _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 }}}
33 class UNOTOOLS_DLLPUBLIC NumberFormatCodeWrapper
35 ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC;
36 ::com::sun::star::lang::Locale aLocale;
38 // not implemented, prevent usage
39 NumberFormatCodeWrapper( const NumberFormatCodeWrapper& );
40 NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& );
42 public:
43 NumberFormatCodeWrapper(
44 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rxContext,
45 const ::com::sun::star::lang::Locale& rLocale
48 ~NumberFormatCodeWrapper();
51 /// set a new Locale
52 void setLocale( const ::com::sun::star::lang::Locale& rLocale );
54 /// get current Locale
55 const ::com::sun::star::lang::Locale& getLocale() const { return aLocale; }
58 // Wrapper implementations of class NumberFormatCodeMapper
60 ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const;
61 ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCode( sal_Int16 nFormatUsage ) const;
62 ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCodes() const;
66 #endif // _UNOTOOLS_NUMBERFORMATCODEWRAPPER_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */