Tag: cws_src680_dba23ui
User: fs      
Date: 2007-05-21 11:26:05+0000
Log:
 #i76857# disable 'Edit database file' when Base is not installed

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.2.1
Delta lines:  +11 -3
--------------------
--- unodatbr.cxx        2007-05-10 10:20:03+0000        1.186
+++ unodatbr.cxx        2007-05-21 11:26:02+0000        1.186.2.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: unodatbr.cxx,v $
  *
- *  $Revision: 1.186 $
+ *  $Revision: 1.186.2.1 $
  *
- *  last change: $Author: kz $ $Date: 2007/05/10 10:20:03 $
+ *  last change: $Author: fs $ $Date: 2007/05/21 11:26:02 $
  *
  *  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 INCLUDED_SVTOOLS_MODULEOPTIONS_HXX
+#include <svtools/moduleoptions.hxx>
+#endif
 #ifndef _SV_WAITOBJ_HXX
 #include <vcl/waitobj.hxx>
 #endif
@@ -3514,6 +3517,11 @@
        }
        aContextMenu.EnableItem(SID_COPY,       sal_False);
 
+    if ( !SvtModuleOptions.IsModuleInstalled( SvtModuleOptions::E_SDATABASE ) )
+    {
+           aContextMenu.EnableItem( ID_TREE_EDIT_DATABASE, sal_False );
+    }
+
        if ( pEntry )
        {
 




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

Reply via email to