summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-10-24 07:57:28 +0000
committerFrank Schönheit <fs@openoffice.org>2002-10-24 07:57:28 +0000
commit16d40a517b245eefc6105f7b3d01bc2aa8a13405 (patch)
tree98d8de8a682da9cf5d64913f77d16295bbe92629 /extensions/source/bibliography
parent844a162cb0f5e8c21371f97996e1d94537553875 (diff)
#100312# (on behalf of sleepybear@openoffice.org) expose the XDispatchProviderInterception interface of the control
Diffstat (limited to 'extensions/source/bibliography')
-rw-r--r--extensions/source/bibliography/bibbeam.cxx19
-rw-r--r--extensions/source/bibliography/bibbeam.hxx14
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();