nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / model / main / PageBackground.hxx
blob7624fbf8e2156bbf000d2e695c36e5d6e0e6e70e
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 <com/sun/star/lang/XServiceInfo.hpp>
22 #include <com/sun/star/util/XCloneable.hpp>
23 #include <com/sun/star/util/XModifyBroadcaster.hpp>
24 #include <com/sun/star/util/XModifyListener.hpp>
25 #include <MutexContainer.hxx>
26 #include <OPropertySet.hxx>
27 #include <cppuhelper/implbase.hxx>
29 #include <comphelper/uno3.hxx>
31 namespace chart
34 namespace impl
36 typedef ::cppu::WeakImplHelper<
37 css::util::XCloneable,
38 css::util::XModifyBroadcaster,
39 css::util::XModifyListener,
40 css::lang::XServiceInfo >
41 PageBackground_Base;
44 class PageBackground final :
45 public MutexContainer,
46 public impl::PageBackground_Base,
47 public ::property::OPropertySet
49 public:
50 explicit PageBackground();
51 virtual ~PageBackground() 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()
61 private:
62 explicit PageBackground( const PageBackground & rOther );
64 // ____ OPropertySet ____
65 virtual css::uno::Any GetDefaultValue( sal_Int32 nHandle ) const override;
67 // ____ OPropertySet ____
68 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
70 // ____ XPropertySet ____
71 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
72 getPropertySetInfo() override;
74 // ____ XCloneable ____
75 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
77 // ____ XModifyBroadcaster ____
78 virtual void SAL_CALL addModifyListener(
79 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
80 virtual void SAL_CALL removeModifyListener(
81 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
83 // ____ XModifyListener ____
84 virtual void SAL_CALL modified(
85 const css::lang::EventObject& aEvent ) override;
87 // ____ XEventListener (base of XModifyListener) ____
88 virtual void SAL_CALL disposing(
89 const css::lang::EventObject& Source ) override;
91 // ____ OPropertySet ____
92 virtual void firePropertyChangeEvent() override;
93 using OPropertySet::disposing;
95 css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder;
98 } // namespace chart
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */