xref: /aoo4110/main/basctl/source/dlged/dlgedlist.cxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_basctl.hxx"
26 #include "dlgedlist.hxx"
27 #include "dlgedobj.hxx"
28 
29 //============================================================================
30 // DlgEdPropListenerImpl
31 //============================================================================
32 
33 //----------------------------------------------------------------------------
34 
DlgEdPropListenerImpl(DlgEdObj * pObj)35 DlgEdPropListenerImpl::DlgEdPropListenerImpl(DlgEdObj* pObj)
36 		  :pDlgEdObj(pObj)
37 {
38 }
39 
40 //----------------------------------------------------------------------------
41 
~DlgEdPropListenerImpl()42 DlgEdPropListenerImpl::~DlgEdPropListenerImpl()
43 {
44 }
45 
46 // XEventListener
47 //----------------------------------------------------------------------------
48 
disposing(const::com::sun::star::lang::EventObject &)49 void SAL_CALL DlgEdPropListenerImpl::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException)
50 {
51 	/*
52 	// disconnect the listener
53 	if (pDlgEdObj)
54 	{
55 		(pDlgEdObj->m_xPropertyChangeListener).clear();
56 	}
57 	*/
58 }
59 
60 // XPropertyChangeListener
61 //----------------------------------------------------------------------------
62 
propertyChange(const::com::sun::star::beans::PropertyChangeEvent & evt)63 void SAL_CALL DlgEdPropListenerImpl::propertyChange( const  ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException)
64 {
65 	pDlgEdObj->_propertyChange( evt );
66 }
67 
68 //----------------------------------------------------------------------------
69 
70 //============================================================================
71 // DlgEdEvtContListenerImpl
72 //============================================================================
73 
74 //----------------------------------------------------------------------------
75 
DlgEdEvtContListenerImpl(DlgEdObj * pObj)76 DlgEdEvtContListenerImpl::DlgEdEvtContListenerImpl(DlgEdObj* pObj)
77 		  :pDlgEdObj(pObj)
78 {
79 }
80 
81 //----------------------------------------------------------------------------
82 
~DlgEdEvtContListenerImpl()83 DlgEdEvtContListenerImpl::~DlgEdEvtContListenerImpl()
84 {
85 }
86 
87 // XEventListener
88 //----------------------------------------------------------------------------
89 
disposing(const::com::sun::star::lang::EventObject &)90 void SAL_CALL DlgEdEvtContListenerImpl::disposing( const  ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException)
91 {
92 	/*
93 	// disconnect the listener
94 	if (pDlgEdObj)
95 	{
96 		(pDlgEdObj->m_xContainerListener).clear();
97 	}
98 	*/
99 }
100 
101 // XContainerListener
102 //----------------------------------------------------------------------------
103 
elementInserted(const::com::sun::star::container::ContainerEvent & Event)104 void SAL_CALL DlgEdEvtContListenerImpl::elementInserted(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
105 {
106 	pDlgEdObj->_elementInserted( Event );
107 }
108 
109 //----------------------------------------------------------------------------
110 
elementReplaced(const::com::sun::star::container::ContainerEvent & Event)111 void SAL_CALL DlgEdEvtContListenerImpl::elementReplaced(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
112 {
113 	pDlgEdObj->_elementReplaced( Event );
114 }
115 
116 //----------------------------------------------------------------------------
117 
elementRemoved(const::com::sun::star::container::ContainerEvent & Event)118 void SAL_CALL DlgEdEvtContListenerImpl::elementRemoved(const ::com::sun::star::container::ContainerEvent& Event) throw(::com::sun::star::uno::RuntimeException)
119 {
120 	pDlgEdObj->_elementRemoved( Event );
121 }
122 
123 //----------------------------------------------------------------------------
124