User: kz      
Date: 2008-06-25 12:27:59+0000
Modified:
   dba/dbaccess/inc/IController.hxx

Log:
 INTEGRATION: CWS dba30d (1.5.30); FILE MERGED
 2008/06/01 20:52:14 fs 1.5.30.2: #i80943# +registerCommandURL
 2008/05/28 21:43:45 fs 1.5.30.1: #i84016# +interceptUserInput

File Changes:

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

File [changed]: IController.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/inc/IController.hxx?r1=1.5&r2=1.6
Delta lines:  +22 -2
--------------------
--- IController.hxx     2008-04-10 12:11:24+0000        1.5
+++ IController.hxx     2008-06-25 12:27:56+0000        1.6
@@ -51,6 +51,8 @@
     }
 } } }
 
+class NotifyEvent;
+
 namespace dbaui
 {
        // interface for controller depended calls like commands
@@ -99,11 +101,25 @@
                */
         virtual sal_Bool isCommandEnabled( const ::rtl::OUString& 
_rCompleteCommandURL ) const = 0;
 
+        /** registers a command URL, giving it a unique name
+
+            If you call this with a command URL which is supported by the 
controller, then
+            you will simply get the controller's internal numeric shortcut to 
this command.
+
+            If you call this with a command URL which is not supported by the 
controller, then
+            you will get a new ID, which is unique during the lifetime of the 
controller.
+
+            If the command URL is invalid, or the controller cannot register 
new commands anymore,
+            then 0 is returned.
+        */
+        virtual sal_uInt16
+                        registerCommandURL( const ::rtl::OUString& 
_rCompleteCommandURL ) = 0;
+
                /** notifyHiContrastChanged will be called when the hicontrast 
mode changed.
                        @param  _bHiContrast
                                <TRUE/> when in hicontrast mode.
                */
-               virtual void notifyHiContrastChanged() {}
+               virtual void notifyHiContrastChanged() = 0;
 
                /** checks if the selected data source is read only
                        @return 
@@ -116,8 +132,12 @@
             This must be the same model as returned by XController::getModel, 
and might be <NULL/> when
             the controller does not have an own model.
         */
-               virtual ::com::sun::star::uno::Reference< 
::com::sun::star::frame::XController > SAL_CALL
+               virtual ::com::sun::star::uno::Reference< 
::com::sun::star::frame::XController >
                 getXController(void) throw( 
::com::sun::star::uno::RuntimeException ) = 0;
+
+        /** allows interception of user input, aka mouse clicks and key events
+        */
+        virtual bool interceptUserInput( const NotifyEvent& _rEvent ) = 0;
        };
 }
 #endif // DBAUI_ICONTROLLER_HXX




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

Reply via email to