Tag: cws_dev300_dba30d
User: fs      
Date: 2008-05-28 21:44:12+0000
Modified:
   dba/dbaccess/inc/genericcontroller.hxx

Log:
 #i84016# +XUserInputInterception

File Changes:

Directory: /dba/dbaccess/inc/
=============================

File [changed]: genericcontroller.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/inc/genericcontroller.hxx?r1=1.10&r2=1.10.28.1
Delta lines:  +17 -7
--------------------
--- genericcontroller.hxx       2008-04-10 12:14:19+0000        1.10
+++ genericcontroller.hxx       2008-05-28 21:44:09+0000        1.10.28.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: genericcontroller.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.28.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -56,16 +56,18 @@
 #include <com/sun/star/util/XURLTransformer.hpp>
 #include <com/sun/star/view/XSelectionSupplier.hpp>
 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <com/sun/star/awt/XUserInputInterception.hpp>
 /** === end UNO includes === **/
 
 #include <comphelper/broadcasthelper.hxx>
 #include <comphelper/namedvaluecollection.hxx>
 #include <comphelper/stl_types.hxx>
 #include <connectivity/dbexception.hxx>
-#include <cppuhelper/compbase11.hxx>
+#include <cppuhelper/compbase12.hxx>
 #include <cppuhelper/interfacecontainer.h>
 
 #include <boost/optional.hpp>
+#include <sfx2/userinputinterception.hxx>
 
 class Window;
 class VCLXWindow;
@@ -182,7 +184,7 @@
 
        typedef ::comphelper::OBaseMutex        OGenericUnoController_MBASE;
 
-    typedef ::cppu::WeakComponentImplHelper11   <   
::com::sun::star::frame::XDispatch
+    typedef ::cppu::WeakComponentImplHelper12   <   
::com::sun::star::frame::XDispatch
                                                 ,   
::com::sun::star::frame::XDispatchProviderInterceptor
                                                 ,   
::com::sun::star::util::XModifyListener
                                                 ,   
::com::sun::star::view::XSelectionSupplier
@@ -193,6 +195,7 @@
                                                 ,   
::com::sun::star::frame::XController
                                                 ,   
::com::sun::star::frame::XTitle
                                                 ,   
::com::sun::star::frame::XTitleChangeBroadcaster
+                                                ,   
::com::sun::star::awt::XUserInputInterception
                                                 >   OGenericUnoController_Base;
 
        // ====================================================================
@@ -202,10 +205,10 @@
                                                                ,public 
IController
        {
     private:
-               SupportedFeatures               m_aSupportedFeatures;   // look 
at the name
-
+               SupportedFeatures                       m_aSupportedFeatures;
         ::comphelper::NamedValueCollection
                                 m_aInitParameters;
+        ::sfx2::UserInputInterception   m_aUserInputInterception;
 #ifdef DBG_UTIL 
         bool    m_bDescribingSupportedFeatures;
 #endif
@@ -430,6 +433,7 @@
         virtual sal_Bool isCommandEnabled(const ::rtl::OUString& 
_rCompleteCommandURL) const;
                virtual sal_Bool isDataSourceReadOnly() const;
                virtual ::com::sun::star::uno::Reference< 
::com::sun::star::frame::XController > SAL_CALL getXController() throw( 
::com::sun::star::uno::RuntimeException );
+        virtual bool interceptUserInput( const NotifyEvent& _rEvent );
 
         // misc
         virtual sal_Bool isCommandChecked(sal_uInt16 _nCommandId) const;
@@ -502,6 +506,12 @@
         virtual void SAL_CALL addTitleChangeListener( const 
::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener 
>& xListener ) throw (::com::sun::star::uno::RuntimeException);
         virtual void SAL_CALL removeTitleChangeListener( const 
::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener 
>& xListener ) throw (::com::sun::star::uno::RuntimeException);
 
+        // XUserInputInterception
+        virtual void SAL_CALL addKeyHandler( const 
::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyHandler >& 
xHandler ) throw (::com::sun::star::uno::RuntimeException);
+        virtual void SAL_CALL removeKeyHandler( const 
::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyHandler >& 
xHandler ) throw (::com::sun::star::uno::RuntimeException);
+        virtual void SAL_CALL addMouseClickHandler( const 
::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseClickHandler >& 
xHandler ) throw (::com::sun::star::uno::RuntimeException);
+        virtual void SAL_CALL removeMouseClickHandler( const 
::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseClickHandler >& 
xHandler ) throw (::com::sun::star::uno::RuntimeException);
+
     protected:
         OGenericUnoController();    // never implemented
        };




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to