Tag: cws_src680_sdblogging
User: fs      
Date: 2007-06-18 09:04:53+0000
Modified:
   dba/dbaccess/source/ui/browser/unodatbr.cxx

Log:
 copying the fix #i76857# into this CWS

File Changes:

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

File [changed]: unodatbr.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/unodatbr.cxx?r1=1.186&r2=1.186.16.1
Delta lines:  +12 -3
--------------------
--- unodatbr.cxx        2007-05-10 10:20:03+0000        1.186
+++ unodatbr.cxx        2007-06-18 09:04:50+0000        1.186.16.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: unodatbr.cxx,v $
  *
- *  $Revision: 1.186 $
+ *  $Revision: 1.186.16.1 $
  *
- *  last change: $Author: kz $ $Date: 2007/05/10 10:20:03 $
+ *  last change: $Author: fs $ $Date: 2007/06/18 09:04:50 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -115,6 +115,9 @@
 #ifndef _SFXINTITEM_HXX //autogen
 #include <svtools/intitem.hxx>
 #endif
+#ifndef _UNOTOOLS_CONFIGNODE_HXX_
+#include <unotools/confignode.hxx>
+#endif
 #ifndef _SV_WAITOBJ_HXX
 #include <vcl/waitobj.hxx>
 #endif
@@ -3514,6 +3517,12 @@
        }
        aContextMenu.EnableItem(SID_COPY,       sal_False);
 
+    ::utl::OConfigurationTreeRoot aConfig( 
::utl::OConfigurationTreeRoot::createWithServiceFactory( getORB(),
+        ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( 
"/org.openoffice.Office.DataAccess/ApplicationIntegration/InstalledFeatures/Common"
 ) ) ) );
+    sal_Bool bHaveEditDatabase( sal_True );
+    OSL_VERIFY( aConfig.getNodeValue( ::rtl::OUString( 
RTL_CONSTASCII_USTRINGPARAM( "EditDatabaseFromDataSourceView" ) ) ) >>= 
bHaveEditDatabase );
+       aContextMenu.EnableItem( ID_TREE_EDIT_DATABASE, bHaveEditDatabase );
+
        if ( pEntry )
        {
 




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

Reply via email to