Tag: cws_dev300_dba30d User: fs Date: 2008-06-01 20:54:36+0000 Modified: dba/dbaccess/source/ui/inc/callbacks.hxx
Log: #i80943# IContainerFoundListener and IViewChangeListener now superseded by IApplicationController / further development of the 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.30.1&r2=1.9.30.2 Delta lines: +21 -25 --------------------- --- callbacks.hxx 2008-05-29 11:24:19+0000 1.9.30.1 +++ callbacks.hxx 2008-06-01 20:54:34+0000 1.9.30.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: callbacks.hxx,v $ - * $Revision: 1.9.30.1 $ + * $Revision: 1.9.30.2 $ * * This file is part of OpenOffice.org. * @@ -50,6 +50,8 @@ struct AcceptDropEvent; struct ExecuteDropEvent; +namespace cppu { class OInterfaceContainerHelper; } + //........................................................................ namespace dbaui { @@ -59,7 +61,7 @@ //==================================================================== //= IControlActionListener //==================================================================== - class IControlActionListener + class SAL_NO_VTABLE IControlActionListener { public: /** requests a quick help text to display @@ -84,7 +86,7 @@ //==================================================================== //= IContextMenuProvider //==================================================================== - class IContextMenuProvider + class SAL_NO_VTABLE IContextMenuProvider { public: /** returns the context menu for the control @@ -94,44 +96,38 @@ The control itself will, using the controller provided by getCommandController, disable menu entries as needed. */ - virtual PopupMenu* getContextMenu( Control& _rControl ) = 0; + virtual PopupMenu* getContextMenu( Control& _rControl ) const = 0; /** returns the controller which is responsible for providing states of certain features, and executing them. */ virtual IController& getCommandController() = 0; + + /** returns the container of registered context menu interceptors, or NULL if the implementation + does not support context menu interception + */ + virtual ::cppu::OInterfaceContainerHelper* + getContextMenuInterceptors() = 0; + + /** returns the current selection in the given control + + This selection is used for filling a ContextMenuExecuteEvent event for the given + control. + */ + virtual ::com::sun::star::uno::Any + getCurrentSelection( Control& _rControl ) const = 0; }; //==================================================================== //= IDragTransferableListener //==================================================================== - class IDragTransferableListener + class SAL_NO_VTABLE IDragTransferableListener { public: /// called when a drag operation done with a Transferable has been finished virtual void dragFinished( ) = 0; }; - //==================================================================== - //= IContainerFoundListener - //==================================================================== - class SAL_NO_VTABLE IContainerFoundListener - { - public: - /// called when a container was found - virtual void containerFound( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >& _xContainer) = 0; - }; - - //==================================================================== - //= IViewChangeListener - //==================================================================== - class SAL_NO_VTABLE IViewChangeListener - { - public: - /// called when the preview mode was changed - virtual void previewChanged( sal_Int32 _nMode) = 0; - }; - //........................................................................ } // namespace dbaui //........................................................................ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
