diff options
-rw-r--r-- | extensions/source/bibliography/bibbeam.cxx | 19 | ||||
-rw-r--r-- | extensions/source/bibliography/bibbeam.hxx | 14 |
2 files changed, 27 insertions, 6 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx index e5c5dd910170..19fe4065708c 100644 --- a/extensions/source/bibliography/bibbeam.cxx +++ b/extensions/source/bibliography/bibbeam.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bibbeam.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: gt $ $Date: 2002-05-17 09:43:10 $ + * last change: $Author: fs $ $Date: 2002-10-24 08:57:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -162,6 +162,8 @@ namespace bib Reference< awt::XControlModel > m_xGridModel; Reference< awt::XControl > m_xControl; Reference< awt::XControlContainer > m_xControlContainer; + // #100312# --------- + Reference< frame::XDispatchProviderInterception> m_xDispatchProviderInterception; protected: @@ -177,6 +179,8 @@ namespace bib void disposeGridWin(); const Reference< awt::XControlContainer >& getControlContainer() const { return m_xControlContainer; } + // #100312# --------- + const Reference< frame::XDispatchProviderInterception>& getDispatchProviderInterception() const { return m_xDispatchProviderInterception; } virtual void GetFocus(); }; @@ -237,6 +241,8 @@ namespace bib // Peer als Child zu dem FrameWindow m_xControlContainer->addControl(C2U("GridControl"), m_xControl); m_xGridWin=uno::Reference< awt::XWindow > (m_xControl, UNO_QUERY ); + // #100312# ----- + m_xDispatchProviderInterception=uno::Reference< frame::XDispatchProviderInterception > (m_xControl, UNO_QUERY ); m_xGridWin->setVisible( sal_True ); m_xControl->setDesignMode( sal_True ); // initially switch on the desing mode - switch it off _after_ loading the form @@ -352,6 +358,15 @@ namespace bib return xReturn; } + // #100312# ----------------------------------------------------------- + Reference< frame::XDispatchProviderInterception > BibBeamer::getDispatchProviderInterception() + { + Reference< frame::XDispatchProviderInterception > xReturn; + if ( pGridWin ) + xReturn = pGridWin->getDispatchProviderInterception(); + return xReturn; + } + //--------------------------------------------------------------------- void BibBeamer::SetXController(const uno::Reference< frame::XController > & xCtr) { diff --git a/extensions/source/bibliography/bibbeam.hxx b/extensions/source/bibliography/bibbeam.hxx index e9b1e342e85b..c2190ecf45e1 100644 --- a/extensions/source/bibliography/bibbeam.hxx +++ b/extensions/source/bibliography/bibbeam.hxx @@ -2,9 +2,9 @@ * * $RCSfile: bibbeam.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: gt $ $Date: 2002-05-17 09:43:10 $ + * last change: $Author: fs $ $Date: 2002-10-24 08:57:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -74,7 +74,10 @@ #ifndef _COM_SUN_STAR_FORM_XFORM_HPP_ #include <com/sun/star/form/XForm.hpp> #endif - +// #100312# ----------------- +#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTION_HPP_ +#include <com/sun/star/frame/XDispatchProviderInterception.hpp> +#endif #ifndef _CPPUHELPER_IMPLBASE1_HXX_ #include <cppuhelper/implbase1.hxx> // helper for implementations @@ -122,10 +125,13 @@ namespace bib void createToolBar(); void createGridWin(); - // FormControlContainer + // FormControlContainer ---------- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > getControlContainer(); public: + // #100312# ------------------- + virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception > + getDispatchProviderInterception(); BibBeamer(Window* pParent,BibDataManager* pDatMan, WinBits nStyle = WB_3DLOOK ); ~BibBeamer(); |