Tag: cws_dev300_dba30d
User: fs      
Date: 2008-06-01 20:54:59+0000
Modified:
   dba/dbaccess/source/ui/inc/unodatbr.hxx

Log:
 #i80943# +IContextMenuProvider

File Changes:

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

File [changed]: unodatbr.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/unodatbr.hxx?r1=1.72.30.1&r2=1.72.30.2
Delta lines:  +22 -8
--------------------
--- unodatbr.hxx        2008-05-29 11:23:59+0000        1.72.30.1
+++ unodatbr.hxx        2008-06-01 20:54:56+0000        1.72.30.2
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: unodatbr.hxx,v $
- * $Revision: 1.72.30.1 $
+ * $Revision: 1.72.30.2 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -61,8 +61,11 @@
 #ifndef _COM_SUN_STAR_DOCUMENT_XSCRIPTINVOCATIONCONTEXT_HPP_
 #include <com/sun/star/document/XScriptInvocationContext.hpp>
 #endif
-#ifndef _CPPUHELPER_IMPLBASE3_HXX_
-#include <cppuhelper/implbase3.hxx>
+#ifndef _COM_SUN_STAR_UI_XCONTEXTMENUINTERCEPTION_HPP_
+#include <com/sun/star/ui/XContextMenuInterception.hpp>
+#endif
+#ifndef _CPPUHELPER_IMPLBASE4_HXX_
+#include <cppuhelper/implbase4.hxx>
 #endif
 #ifndef _DBACCESS_UI_CALLBACKS_HXX_
 #include "callbacks.hxx"
@@ -95,20 +98,22 @@
 #define CONTAINER_TABLES               sal_Int32( etTableOrView - etQuery )
 
 namespace com { namespace sun{ namespace star { namespace container { class 
XNameContainer; } } } }
+
+class SvLBoxTreeList;
 // .........................................................................
 namespace dbaui
 {
 // .........................................................................
 
        class DBTreeView;
-       class DBTreeListModel;
        struct DBTreeEditedEntry;
     class ImageProvider;
 
        // =====================================================================
-       typedef ::cppu::ImplHelper3     <       
::com::sun::star::frame::XStatusListener
+       typedef ::cppu::ImplHelper4     <       
::com::sun::star::frame::XStatusListener
                                                                ,       
::com::sun::star::view::XSelectionSupplier
                                 ,   
::com::sun::star::document::XScriptInvocationContext
+                                ,   
::com::sun::star::ui::XContextMenuInterception
                                                                >       
SbaTableQueryBrowser_Base;
        class SbaTableQueryBrowser
                                :public SbaXDataBrowserController
@@ -145,6 +150,7 @@
                        // if we're part of a document, this is the state of 
the DocumentDataSource slot
 
                ::cppu::OInterfaceContainerHelper       m_aSelectionListeners;
+               ::cppu::OInterfaceContainerHelper       
m_aContextMenuInterceptors;
 
         OTableCopyHelper::DropDescriptor    m_aAsyncDrop;
         OTableCopyHelper                    m_aTableCopyHelper;
@@ -153,7 +159,7 @@
 
                DBTreeView*                             m_pTreeView;
                Splitter*                               m_pSplitter;
-               DBTreeListModel*                m_pTreeModel;                   
// contains the datasources of the registry
+               SvLBoxTreeList*         m_pTreeModel;                   // 
contains the datasources of the registry
                SvLBoxEntry*                    m_pCurrentlyDisplayed;
         sal_Int32                              m_nAsyncDrop;
 
@@ -243,6 +249,10 @@
         // XScriptInvocationContext
         virtual ::com::sun::star::uno::Reference< 
::com::sun::star::document::XEmbeddedScripts > SAL_CALL getScriptContainer() 
throw (::com::sun::star::uno::RuntimeException);
 
+        // XContextMenuInterception
+        virtual void SAL_CALL registerContextMenuInterceptor( const 
::com::sun::star::uno::Reference< ::com::sun::star::ui::XContextMenuInterceptor 
>& Interceptor ) throw (::com::sun::star::uno::RuntimeException);
+        virtual void SAL_CALL releaseContextMenuInterceptor( const 
::com::sun::star::uno::Reference< ::com::sun::star::ui::XContextMenuInterceptor 
>& Interceptor ) throw (::com::sun::star::uno::RuntimeException);
+
        protected:
                // SbaXDataBrowserController overridables
                virtual sal_Bool InitializeForm(const 
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > & xForm);
@@ -272,8 +282,12 @@
                virtual sal_Int8        executeDrop( const ExecuteDropEvent& 
_rEvt );
 
         // IContextMenuProvider
-        virtual PopupMenu*      getContextMenu( Control& _rControl );
+        virtual PopupMenu*      getContextMenu( Control& _rControl ) const;
         virtual IController&    getCommandController();
+        virtual ::cppu::OInterfaceContainerHelper*
+                                getContextMenuInterceptors();
+        virtual ::com::sun::star::uno::Any
+                                getCurrentSelection( Control& _rControl ) 
const;
 
         virtual void impl_initialize();
 
@@ -460,7 +474,7 @@
 
                ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XConnection > connectWithStatus(
                        const ::rtl::OUString& _rDataSourceName,
-                       void* _pTreeListUserData        // in rela a 
DBTreeListModel::DBTreeListUserData*, but we do not know this class here ....
+                       void* _pTreeListUserData        // in rela a 
DBTreeListUserData*, but we do not know this class here ....
                );
 
 #ifdef DBG_UTIL




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

Reply via email to