Tag: cws_dev300_rptchart02 User: oj Date: 2008-04-16 09:26:06+0000 Modified: dba/dbaccess/source/ui/browser/genericcontroller.cxx
Log: remove helper class again File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: genericcontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/genericcontroller.cxx?r1=1.87&r2=1.87.2.1 Delta lines: +30 -3 -------------------- --- genericcontroller.cxx 2008-04-10 14:07:56+0000 1.87 +++ genericcontroller.cxx 2008-04-16 09:26:03+0000 1.87.2.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: genericcontroller.cxx,v $ - * $Revision: 1.87 $ + * $Revision: 1.87.2.1 $ * * This file is part of OpenOffice.org. * @@ -130,6 +130,7 @@ #endif #include <algorithm> #include <hash_map> +#include <cppuhelper/implbase1.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -155,6 +156,32 @@ typedef ::std::hash_map< sal_Int16, sal_Int16 > CommandHashMap; typedef ::std::list< DispatchInformation > DispatchInfoList; +class DispatchForwardHelper_Impl : public ::cppu::WeakImplHelper1< frame::XDispatch > +{ + uno::Reference< frame::XDispatch > m_xDispatch; + +public: + DispatchForwardHelper_Impl(const uno::Reference< frame::XDispatch >& _xDispatch) : m_xDispatch(_xDispatch){ } +private: + virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) + throw( ::com::sun::star::uno::RuntimeException ) + { + m_xDispatch->dispatch(aURL,aArgs); + } + virtual void SAL_CALL addStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, + const ::com::sun::star::util::URL& aURL) + throw( ::com::sun::star::uno::RuntimeException ) + { + m_xDispatch->addStatusListener(xControl,aURL); + } + + virtual void SAL_CALL removeStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, const ::com::sun::star::util::URL& aURL) throw( ::com::sun::star::uno::RuntimeException ) + { + m_xDispatch->removeStatusListener(xControl,aURL); + } +}; + // ------------------------------------------------------------------------- const ::rtl::OUString& getConfirmDeletionURL() { @@ -666,7 +693,7 @@ || ( m_aSupportedFeatures.find( aURL.Complete ) != m_aSupportedFeatures.end() ) ) { - xReturn = static_cast< XDispatch* >( this ); + xReturn = this; } // no? -> ask the slave dispatcher else if ( m_xSlaveDispatcher.is() ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
