nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / model / main / GridProperties.hxx
blob4e90d36176b9c9f6a8188a63f31fa186ef3d2022
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 #pragma once
21 #include <cppuhelper/implbase.hxx>
22 #include <comphelper/uno3.hxx>
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <com/sun/star/util/XCloneable.hpp>
25 #include <com/sun/star/util/XModifyBroadcaster.hpp>
26 #include <com/sun/star/util/XModifyListener.hpp>
28 #include <OPropertySet.hxx>
29 #include <MutexContainer.hxx>
31 namespace chart
34 namespace impl
36 typedef ::cppu::WeakImplHelper<
37 css::lang::XServiceInfo,
38 css::util::XCloneable,
39 css::util::XModifyBroadcaster,
40 css::util::XModifyListener >
41 GridProperties_Base;
44 class GridProperties final :
45 public MutexContainer,
46 public impl::GridProperties_Base,
47 public ::property::OPropertySet
49 public:
50 explicit GridProperties();
51 virtual ~GridProperties() override;
53 /// XServiceInfo declarations
54 virtual OUString SAL_CALL getImplementationName() override;
55 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
56 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
58 /// merge XInterface implementations
59 DECLARE_XINTERFACE()
60 /// merge XTypeProvider implementations
61 DECLARE_XTYPEPROVIDER()
63 private:
64 explicit GridProperties( const GridProperties & rOther );
66 // ____ OPropertySet ____
67 virtual css::uno::Any GetDefaultValue( sal_Int32 nHandle ) const override;
69 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
71 // ____ XPropertySet ____
72 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
73 getPropertySetInfo() override;
75 // ____ XCloneable ____
76 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
78 // ____ XModifyBroadcaster ____
79 virtual void SAL_CALL addModifyListener(
80 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
81 virtual void SAL_CALL removeModifyListener(
82 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
84 // ____ XModifyListener ____
85 virtual void SAL_CALL modified(
86 const css::lang::EventObject& aEvent ) override;
88 // ____ XEventListener (base of XModifyListener) ____
89 virtual void SAL_CALL disposing(
90 const css::lang::EventObject& Source ) override;
92 // ____ OPropertySet ____
93 virtual void firePropertyChangeEvent() override;
94 using OPropertySet::disposing;
96 css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder;
99 } // namespace chart
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */