update dev300-m58
[ooovba.git] / configmgr / source / api2 / propertiesfilterednotifier.hxx
blob235a68e54e7318fd7163104df1b6f390eb3dd739
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: propertiesfilterednotifier.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_PROPERTIESFILTEREDNOTIFIER_HXX_
32 #define CONFIGMGR_PROPERTIESFILTEREDNOTIFIER_HXX_
34 #include <com/sun/star/beans/XPropertiesChangeListener.hpp>
36 #include <vos/refernce.hxx>
38 namespace configmgr
40 class PropertiesFilteredNotifier
41 : public ::com::sun::star::beans::XPropertiesChangeListener
43 public:
44 PropertiesFilteredNotifier(
45 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > const& xTarget,
46 ::com::sun::star::uno::Sequence< ::rtl::OUString > const& aFilterNames
48 virtual ~PropertiesFilteredNotifier();
50 public:
51 virtual void SAL_CALL acquire( ) throw();
52 virtual void SAL_CALL release( ) throw();
54 virtual ::com::sun::star::uno::Any SAL_CALL
55 queryInterface( const ::com::sun::star::uno::Type& aType )
56 throw(::com::sun::star::uno::RuntimeException);
58 virtual void SAL_CALL
59 disposing( const ::com::sun::star::lang::EventObject& Source )
60 throw(::com::sun::star::uno::RuntimeException) ;
62 virtual void SAL_CALL
63 propertiesChange( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& evt )
64 throw(::com::sun::star::uno::RuntimeException);
65 private:
66 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >
67 implFilter(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& evt)
68 const;
70 bool implAccept(const ::com::sun::star::beans::PropertyChangeEvent& evt) const;
72 ::vos::ORefCount m_aRefCount;
73 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > m_xTarget;
74 ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aFilterNames;
78 #endif // CONFIGMGR_PROPERTIESFILTEREDNOTIFIER_HXX_