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 #include "precompiled_reportdesign.hxx" 24 #include "RptObjectListener.hxx" 25 #include "RptObject.hxx" 26 #include "RptDef.hxx" 27 28 namespace rptui 29 { 30 //============================================================================ 31 // OObjectListener 32 //============================================================================ 33 34 //---------------------------------------------------------------------------- DBG_NAME(rpt_OObjectListener)35DBG_NAME(rpt_OObjectListener) 36 OObjectListener::OObjectListener(OObjectBase* _pObject) 37 :m_pObject(_pObject) 38 { 39 DBG_CTOR(rpt_OObjectListener,NULL); 40 } 41 42 //---------------------------------------------------------------------------- 43 ~OObjectListener()44OObjectListener::~OObjectListener() 45 { 46 DBG_DTOR(rpt_OObjectListener,NULL); 47 } 48 49 // XEventListener 50 //---------------------------------------------------------------------------- 51 disposing(const::com::sun::star::lang::EventObject &)52void SAL_CALL OObjectListener::disposing( const ::com::sun::star::lang::EventObject& ) throw( ::com::sun::star::uno::RuntimeException) 53 { 54 /* 55 // disconnect the listener 56 if (m_pObject) 57 { 58 (m_pObject->m_xPropertyChangeListener).clear(); 59 } 60 */ 61 } 62 63 // XPropertyChangeListener 64 //---------------------------------------------------------------------------- 65 propertyChange(const::com::sun::star::beans::PropertyChangeEvent & evt)66void SAL_CALL OObjectListener::propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException) 67 { 68 m_pObject->_propertyChange( evt ); 69 } 70 71 //---------------------------------------------------------------------------- 72 73 //============================================================================ 74 // DlgEdHint 75 //============================================================================ 76 77 TYPEINIT1( DlgEdHint, SfxHint ); 78 79 //---------------------------------------------------------------------------- 80 DlgEdHint(DlgEdHintKind eHint)81DlgEdHint::DlgEdHint( DlgEdHintKind eHint ) 82 :eHintKind( eHint ) 83 { 84 } 85 86 //---------------------------------------------------------------------------- ~DlgEdHint()87DlgEdHint::~DlgEdHint() 88 { 89 } 90 //---------------------------------------------------------------------------- 91 } 92