Tag: cws_dev300_dba30d
User: fs      
Date: 2008-05-29 11:24:21+0000
Modified:
   dba/dbaccess/source/ui/inc/callbacks.hxx

Log:
 during #i80943#: refactoring: requestContextMenu superseded by 
IContextMenuProvider

File Changes:

Directory: /dba/dbaccess/source/ui/inc/
=======================================

File [changed]: callbacks.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/callbacks.hxx?r1=1.9&r2=1.9.30.1
Delta lines:  +27 -8
--------------------
--- callbacks.hxx       2008-04-10 15:26:12+0000        1.9
+++ callbacks.hxx       2008-05-29 11:24:19+0000        1.9.30.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: callbacks.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.30.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -45,6 +45,8 @@
 class SvLBoxEntry;
 class String;
 class Point;
+class PopupMenu;
+class Control;
 struct AcceptDropEvent;
 struct ExecuteDropEvent;
 
@@ -53,17 +55,13 @@
 {
 //........................................................................
 
+    class IController;
     //====================================================================
        //= IControlActionListener
        //====================================================================
        class IControlActionListener
        {
        public:
-               /** handler for context menu requests
-                       @return <TRUE/> if the request was handled
-               */
-               virtual sal_Bool        requestContextMenu( const CommandEvent& 
_rEvent ) = 0;
-
         /** requests a quick help text to display
             @return <FALSE/> if the default quick help text should be used
         */
@@ -74,7 +72,7 @@
                */
                virtual sal_Bool        requestDrag( sal_Int8 _nAction, const 
Point& _rPosPixel ) = 0;
 
-               /** check whether or no a drop request should be accepted
+               /** check whether or not a drop request should be accepted
                */
                virtual sal_Int8        queryDrop( const AcceptDropEvent& 
_rEvt, const DataFlavorExVector& _rFlavors ) = 0;
 
@@ -84,6 +82,27 @@
        };
 
        //====================================================================
+       //= IContextMenuProvider
+       //====================================================================
+    class IContextMenuProvider
+    {
+    public:
+        /** returns the context menu for the control
+
+            Note that the menu does not need to care for the controls 
selection, or its
+            state in general.
+            The control itself will, using the controller provided by 
getCommandController,
+            disable menu entries as needed.
+        */
+        virtual PopupMenu*      getContextMenu( Control& _rControl ) = 0;
+
+        /** returns the controller which is responsible for providing states 
of certain features,
+            and executing them.
+        */
+        virtual IController&    getCommandController() = 0;
+    };
+
+       //====================================================================
        //= IDragTransferableListener
        //====================================================================
        class IDragTransferableListener




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

Reply via email to