bump product version to 4.1.6.2
[LibreOffice.git] / include / svl / numuno.hxx
blob515a73fb26a65b3dc5162f7ad4a207b71b4dd56a
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 _NUMUNO_HXX
20 #define _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>
27 class SvNumberFormatter;
28 class SvNumFmtSuppl_Impl;
30 namespace comphelper
32 class SharedMutex;
35 //------------------------------------------------------------------
37 // SvNumberFormatterServiceObj must be registered as service somewhere
39 com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
40 SvNumberFormatterServiceObj_NewInstance(
41 const com::sun::star::uno::Reference<
42 com::sun::star::lang::XMultiServiceFactory>& rSMgr );
44 //------------------------------------------------------------------
46 // SvNumberFormatsSupplierObj: aggregate to document,
47 // construct with SvNumberFormatter
49 class SVL_DLLPUBLIC SvNumberFormatsSupplierObj : public cppu::WeakAggImplHelper2<
50 com::sun::star::util::XNumberFormatsSupplier,
51 com::sun::star::lang::XUnoTunnel>
53 private:
54 SvNumFmtSuppl_Impl* pImpl;
56 public:
57 SvNumberFormatsSupplierObj();
58 SvNumberFormatsSupplierObj(SvNumberFormatter* pForm);
59 virtual ~SvNumberFormatsSupplierObj();
61 void SetNumberFormatter(SvNumberFormatter* pNew);
62 SvNumberFormatter* GetNumberFormatter() const;
64 // ueberladen, um Attribute im Dokument anzupassen
65 virtual void NumberFormatDeleted(sal_uInt32 nKey);
66 // ueberladen, um evtl. neu zu formatieren
67 virtual void SettingsChanged();
69 // XNumberFormatsSupplier
70 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
71 getNumberFormatSettings()
72 throw(::com::sun::star::uno::RuntimeException);
73 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > SAL_CALL
74 getNumberFormats()
75 throw(::com::sun::star::uno::RuntimeException);
77 // XUnoTunnel
78 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
79 sal_Int8 >& aIdentifier )
80 throw(::com::sun::star::uno::RuntimeException);
82 static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
83 static SvNumberFormatsSupplierObj* getImplementation( const com::sun::star::uno::Reference<
84 com::sun::star::util::XNumberFormatsSupplier> xObj );
86 ::comphelper::SharedMutex& getSharedMutex() const;
89 #endif // #ifndef _NUMUNO_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */