LibreOffice Module chart2 (master) 1
PageBackground.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/lang/XServiceInfo.hpp>
22#include <com/sun/star/util/XCloneable.hpp>
23#include <OPropertySet.hxx>
25#include <comphelper/uno3.hxx>
27
28namespace chart
29{
30
31namespace impl
32{
33typedef ::cppu::WeakImplHelper<
34 css::util::XCloneable,
35 css::util::XModifyBroadcaster,
36 css::util::XModifyListener,
37 css::lang::XServiceInfo >
39}
40
41class PageBackground final :
44{
45public:
46 explicit PageBackground();
47 virtual ~PageBackground() override;
48
50 virtual OUString SAL_CALL getImplementationName() override;
51 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
52 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
53
56
57 explicit PageBackground( const PageBackground & rOther );
58
59 // ____ XTypeProvider ____
60 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
61
62 // ____ OPropertySet ____
63 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
64
65 // ____ OPropertySet ____
66 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
67
68 // ____ XPropertySet ____
69 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
70 getPropertySetInfo() override;
71
72 // ____ XCloneable ____
73 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
74
75 // ____ XModifyBroadcaster ____
76 virtual void SAL_CALL addModifyListener(
77 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
78 virtual void SAL_CALL removeModifyListener(
79 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
80
81private:
82
83 // ____ XModifyListener ____
84 virtual void SAL_CALL modified(
85 const css::lang::EventObject& aEvent ) override;
86
87 // ____ XEventListener (base of XModifyListener) ____
88 virtual void SAL_CALL disposing(
89 const css::lang::EventObject& Source ) override;
90
91 // ____ OPropertySet ____
92 virtual void firePropertyChangeEvent() override;
93 using OPropertySet::disposing;
94
96};
97
98} // namespace chart
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AnyEventRef aEvent
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
implement this method to provide default values for all properties supporting defaults.
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo declarations.
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual ~PageBackground() override
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SAL_CALL disposing()
::cppu::WeakImplHelper< css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener, css::lang::XServiceInfo > PageBackground_Base
sal_Int32 nHandle
unsigned char sal_Bool
#define DECLARE_XINTERFACE()