1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: apinotifierimpl.hxx,v $
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_API_NOTIFIERIMPL_HXX_
32 #define CONFIGMGR_API_NOTIFIERIMPL_HXX_
34 #ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_
35 #include <com/sun/star/container/XChild.hpp>
37 #include <com/sun/star/container/XContainer.hpp>
38 #include <com/sun/star/util/XChangesNotifier.hpp>
39 #include <com/sun/star/beans/XPropertySet.hpp>
40 #include <com/sun/star/beans/XMultiPropertySet.hpp>
44 namespace css
= ::com::sun::star
;
45 namespace uno
= ::com::sun::star::uno
;
47 /* implementations of the event notification interfaces
48 supported by a node within the configuration tree.
53 class NodeSetInfoAccess
;
54 class NodeGroupInfoAccess
;
56 // Notification support
59 void implAddListener(NodeAccess
& rNode
, const uno::Reference
< css::lang::XEventListener
>& xListener
)
60 throw(uno::RuntimeException
);
62 void implRemoveListener(NodeAccess
& rNode
, const uno::Reference
< css::lang::XEventListener
>& xListener
)
63 throw(uno::RuntimeException
);
66 void implAddListener(NodeAccess
& rNode
, const uno::Reference
< css::container::XContainerListener
>& xListener
)
67 throw(uno::RuntimeException
);
69 void implRemoveListener(NodeAccess
& rNode
, const uno::Reference
< css::container::XContainerListener
>& xListener
)
70 throw(uno::RuntimeException
);
73 void implAddListener(NodeAccess
& rNode
, const uno::Reference
< css::util::XChangesListener
>& xListener
)
74 throw(uno::RuntimeException
);
76 void implRemoveListener(NodeAccess
& rNode
, const uno::Reference
< css::util::XChangesListener
>& xListener
)
77 throw(uno::RuntimeException
);
79 // XPropertySet - VetoableChangeListeners
80 void implAddListener( NodeGroupInfoAccess
& rNode
, const uno::Reference
< css::beans::XVetoableChangeListener
>& xListener
, const rtl::OUString
& sPropertyName
)
81 throw(css::beans::UnknownPropertyException
, css::lang::WrappedTargetException
, uno::RuntimeException
);
83 void implRemoveListener( NodeGroupInfoAccess
& rNode
, const uno::Reference
< css::beans::XVetoableChangeListener
>& xListener
, const rtl::OUString
& sPropertyName
)
84 throw(css::beans::UnknownPropertyException
, css::lang::WrappedTargetException
, uno::RuntimeException
);
87 void implAddListener( NodeGroupInfoAccess
& rNode
, const uno::Reference
< css::beans::XPropertyChangeListener
>& xListener
, const rtl::OUString
& sPropertyName
)
88 throw(css::beans::UnknownPropertyException
, css::lang::WrappedTargetException
, uno::RuntimeException
);
90 void implRemoveListener( NodeGroupInfoAccess
& rNode
, const uno::Reference
< css::beans::XPropertyChangeListener
>& xListener
, const rtl::OUString
& sPropertyName
)
91 throw(css::beans::UnknownPropertyException
, css::lang::WrappedTargetException
, uno::RuntimeException
);
94 void implAddListener( NodeAccess
& rNode
, const uno::Reference
< css::beans::XPropertiesChangeListener
>& xListener
, const uno::Sequence
< rtl::OUString
>& sPropertyNames
)
95 throw(uno::RuntimeException
);
97 void implRemoveListener( NodeAccess
& rNode
, const uno::Reference
< css::beans::XPropertiesChangeListener
>& xListener
)
98 throw(uno::RuntimeException
);
103 #endif // CONFIGMGR_API_NOTIFIERIMPL_HXX_