1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef CHART_PAGEBACKGROUND_HXX
28 #define CHART_PAGEBACKGROUND_HXX
30 #include <com/sun/star/uno/XComponentContext.hpp>
31 #include <com/sun/star/util/XCloneable.hpp>
32 #include "MutexContainer.hxx"
33 #include "OPropertySet.hxx"
34 #include <cppuhelper/implbase3.hxx>
36 #include "ServiceMacros.hxx"
37 #include "ModifyListenerHelper.hxx"
38 #include <comphelper/uno3.hxx>
45 typedef ::cppu::WeakImplHelper3
<
46 ::com::sun::star::util::XCloneable
,
47 ::com::sun::star::util::XModifyBroadcaster
,
48 ::com::sun::star::util::XModifyListener
>
52 class PageBackground
:
53 public MutexContainer
,
54 public impl::PageBackground_Base
,
55 public ::property::OPropertySet
58 PageBackground( const ::com::sun::star::uno::Reference
<
59 ::com::sun::star::uno::XComponentContext
> & xContext
);
60 virtual ~PageBackground();
62 /// establish methods for factory instatiation
63 APPHELPER_SERVICE_FACTORY_HELPER( PageBackground
)
65 /// XServiceInfo declarations
66 APPHELPER_XSERVICEINFO_DECL()
68 /// merge XInterface implementations
72 explicit PageBackground( const PageBackground
& rOther
);
74 // ____ OPropertySet ____
75 virtual ::com::sun::star::uno::Any
GetDefaultValue( sal_Int32 nHandle
) const
76 throw(::com::sun::star::beans::UnknownPropertyException
);
78 // ____ OPropertySet ____
79 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper();
81 // ____ XPropertySet ____
82 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
84 throw (::com::sun::star::uno::RuntimeException
);
86 // virtual sal_Bool SAL_CALL convertFastPropertyValue
87 // ( ::com::sun::star::uno::Any & rConvertedValue,
88 // ::com::sun::star::uno::Any & rOldValue,
90 // const ::com::sun::star::uno::Any& rValue )
91 // throw (::com::sun::star::lang::IllegalArgumentException);
93 // ____ XCloneable ____
94 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
95 throw (::com::sun::star::uno::RuntimeException
);
97 // ____ XModifyBroadcaster ____
98 virtual void SAL_CALL
addModifyListener(
99 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
)
100 throw (::com::sun::star::uno::RuntimeException
);
101 virtual void SAL_CALL
removeModifyListener(
102 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
)
103 throw (::com::sun::star::uno::RuntimeException
);
105 // ____ XModifyListener ____
106 virtual void SAL_CALL
modified(
107 const ::com::sun::star::lang::EventObject
& aEvent
)
108 throw (::com::sun::star::uno::RuntimeException
);
110 // ____ XEventListener (base of XModifyListener) ____
111 virtual void SAL_CALL
disposing(
112 const ::com::sun::star::lang::EventObject
& Source
)
113 throw (::com::sun::star::uno::RuntimeException
);
115 // ____ OPropertySet ____
116 virtual void firePropertyChangeEvent();
117 using OPropertySet::disposing
;
119 void fireModifyEvent();
122 ::com::sun::star::uno::Reference
<
123 ::com::sun::star::uno::XComponentContext
>
126 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
> m_xModifyEventForwarder
;
131 // CHART_PAGEBACKGROUND_HXX