1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_CHART2_SOURCE_MODEL_MAIN_WALL_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_WALL_HXX
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/weak.hxx>
29 #include "ModifyListenerHelper.hxx"
30 #include <cppuhelper/implbase3.hxx>
31 #include <comphelper/uno3.hxx>
38 typedef ::cppu::WeakImplHelper3
<
39 ::com::sun::star::util::XCloneable
,
40 ::com::sun::star::util::XModifyBroadcaster
,
41 ::com::sun::star::util::XModifyListener
>
46 public MutexContainer
,
47 public impl::Wall_Base
,
48 public ::property::OPropertySet
54 /// merge XInterface implementations
58 explicit Wall( const Wall
& rOther
);
60 // ____ OPropertySet ____
61 virtual ::com::sun::star::uno::Any
GetDefaultValue( sal_Int32 nHandle
) const
62 throw(::com::sun::star::beans::UnknownPropertyException
) SAL_OVERRIDE
;
64 // ____ OPropertySet ____
65 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() SAL_OVERRIDE
;
67 // ____ XPropertySet ____
68 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
70 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
72 // ____ XCloneable ____
73 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
74 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
76 // ____ XModifyBroadcaster ____
77 virtual void SAL_CALL
addModifyListener(
78 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
)
79 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
80 virtual void SAL_CALL
removeModifyListener(
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
)
82 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
84 // ____ XModifyListener ____
85 virtual void SAL_CALL
modified(
86 const ::com::sun::star::lang::EventObject
& aEvent
)
87 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
89 // ____ XEventListener (base of XModifyListener) ____
90 virtual void SAL_CALL
disposing(
91 const ::com::sun::star::lang::EventObject
& Source
)
92 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
94 // ____ OPropertySet ____
95 virtual void firePropertyChangeEvent() SAL_OVERRIDE
;
96 using OPropertySet::disposing
;
98 void fireModifyEvent();
102 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
> m_xModifyEventForwarder
;
107 // INCLUDED_CHART2_SOURCE_MODEL_MAIN_WALL_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */