Tag: cws_dev300_dba30d
User: fs      
Date: 2008-05-28 21:44:29+0000
Modified:
   dba/dbaccess/source/ui/browser/genericcontroller.cxx

Log:
 #i84016# +XUserInputInterception

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.88&r2=1.88.6.1
Delta lines:  +41 -4
--------------------
--- genericcontroller.cxx       2008-05-05 15:53:19+0000        1.88
+++ genericcontroller.cxx       2008-05-28 21:44:26+0000        1.88.6.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: genericcontroller.cxx,v $
- * $Revision: 1.88 $
+ * $Revision: 1.88.6.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -166,6 +166,7 @@
 // -------------------------------------------------------------------------
 OGenericUnoController::OGenericUnoController(const Reference< 
XMultiServiceFactory >& _rM)
        :OGenericUnoController_Base(m_aMutex)
+    ,m_aUserInputInterception( *this, m_aMutex )
 #ifdef DBG_UTIL
     ,m_bDescribingSupportedFeatures( false )
 #endif
@@ -195,6 +196,7 @@
 // 
-----------------------------------------------------------------------------
 OGenericUnoController::OGenericUnoController()
        :OGenericUnoController_Base(m_aMutex)
+    ,m_aUserInputInterception( *this, m_aMutex )
 #ifdef DBG_UTIL
     ,m_bDescribingSupportedFeatures( false )
 #endif
@@ -1377,8 +1379,7 @@
         xBroadcaster->addTitleChangeListener (xListener);
 }
 
-//=============================================================================
-// XTitleChangeBroadcaster
+// 
-----------------------------------------------------------------------------
 void SAL_CALL OGenericUnoController::removeTitleChangeListener(const 
Reference< XTitleChangeListener >& xListener)
     throw (RuntimeException)
 {
@@ -1386,6 +1387,36 @@
     if (xBroadcaster.is ())
         xBroadcaster->removeTitleChangeListener (xListener);
 }
+
+// 
=============================================================================
+// XUserInputInterception
+// 
-----------------------------------------------------------------------------
+void SAL_CALL OGenericUnoController::addKeyHandler( const Reference< 
XKeyHandler >& _rxHandler ) throw (RuntimeException)
+{
+    if ( _rxHandler.is() )
+        m_aUserInputInterception.addKeyHandler( _rxHandler );
+}
+
+// 
-----------------------------------------------------------------------------
+void SAL_CALL OGenericUnoController::removeKeyHandler( const Reference< 
XKeyHandler >& _rxHandler ) throw (RuntimeException)
+{
+    m_aUserInputInterception.removeKeyHandler( _rxHandler );
+}
+
+// 
-----------------------------------------------------------------------------
+void SAL_CALL OGenericUnoController::addMouseClickHandler( const Reference< 
XMouseClickHandler >& _rxHandler ) throw (RuntimeException)
+{
+    if ( _rxHandler.is() )
+        m_aUserInputInterception.addMouseClickHandler( _rxHandler );
+}
+
+// 
-----------------------------------------------------------------------------
+void SAL_CALL OGenericUnoController::removeMouseClickHandler( const Reference< 
XMouseClickHandler >& _rxHandler ) throw (RuntimeException)
+{
+    m_aUserInputInterception.removeMouseClickHandler( _rxHandler );
+}
+
+// 
=============================================================================
 // 
-----------------------------------------------------------------------------
 void OGenericUnoController::executeChecked(sal_uInt16 _nCommandId, const 
Sequence< PropertyValue >& aArgs)
 {
@@ -1412,6 +1443,12 @@
 }
 
 // 
-----------------------------------------------------------------------------
+bool OGenericUnoController::interceptUserInput( const NotifyEvent& _rEvent )
+{
+    return m_aUserInputInterception.handleNotifyEvent( _rEvent );
+}
+
+// 
-----------------------------------------------------------------------------
 sal_Bool OGenericUnoController::isCommandChecked(sal_uInt16 _nCommandId) const
 {
     FeatureState aState = GetState( _nCommandId );




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

Reply via email to