22#include <com/sun/star/lang/DisposedException.hpp>
29 using ::com::sun::star::beans::PropertyChangeEvent;
30 using ::com::sun::star::uno::RuntimeException;
31 using ::com::sun::star::lang::EventObject;
32 using ::com::sun::star::uno::Reference;
33 using ::com::sun::star::beans::XPropertyChangeListener;
34 using ::com::sun::star::uno::XInterface;
35 using ::com::sun::star::lang::DisposedException;
44 ,m_xTranslatedEventSource( _rxTranslatedEventSource )
51 void SAL_CALL PropertyEventTranslation::propertyChange(
const PropertyChangeEvent& evt )
54 throw DisposedException();
56 if ( !m_xTranslatedEventSource.is() )
60 PropertyChangeEvent aTranslatedEvent( evt );
61 aTranslatedEvent.Source = m_xTranslatedEventSource;
67 void SAL_CALL PropertyEventTranslation::disposing(
const EventObject& Source )
70 throw DisposedException();
72 if ( !m_xTranslatedEventSource.is() )
76 EventObject aTranslatedEvent(
Source );
77 aTranslatedEvent.Source = m_xTranslatedEventSource;
82 m_xTranslatedEventSource.clear();
PropertyEventTranslation(const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxDelegator, const css::uno::Reference< css::uno::XInterface > &_rxTranslatedEventSource)
constructs the object
a property handler for any virtual string properties