bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svl / numuno.hxx
blobe88ef3fa76320ae19f86bf961823cee6d99cd84d
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 .
19 #ifndef INCLUDED_SVL_NUMUNO_HXX
20 #define INCLUDED_SVL_NUMUNO_HXX
22 #include <svl/svldllapi.h>
23 #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
24 #include <com/sun/star/lang/XUnoTunnel.hpp>
25 #include <cppuhelper/implbase2.hxx>
26 #include <memory>
28 class SvNumberFormatter;
29 class SvNumFmtSuppl_Impl;
31 namespace comphelper
33 class SharedMutex;
37 // SvNumberFormatsSupplierObj: aggregate to document,
38 // construct with SvNumberFormatter
40 class SVL_DLLPUBLIC SvNumberFormatsSupplierObj : public cppu::WeakAggImplHelper2<
41 css::util::XNumberFormatsSupplier,
42 css::lang::XUnoTunnel>
44 private:
45 std::unique_ptr<SvNumFmtSuppl_Impl> pImpl;
47 public:
48 SvNumberFormatsSupplierObj();
49 SvNumberFormatsSupplierObj(SvNumberFormatter* pForm);
50 virtual ~SvNumberFormatsSupplierObj() override;
52 void SetNumberFormatter(SvNumberFormatter* pNew);
53 SvNumberFormatter* GetNumberFormatter() const;
55 // XNumberFormatsSupplier
56 virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL
57 getNumberFormatSettings() override;
58 virtual css::uno::Reference< css::util::XNumberFormats > SAL_CALL
59 getNumberFormats() override;
61 // XUnoTunnel
62 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
64 static const css::uno::Sequence<sal_Int8>& getUnoTunnelId();
65 static SvNumberFormatsSupplierObj* getImplementation( const css::uno::Reference<
66 css::util::XNumberFormatsSupplier>& rObj );
68 ::comphelper::SharedMutex& getSharedMutex() const;
71 #endif // INCLUDED_SVL_NUMUNO_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */