diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-06-21 12:19:07 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-06-21 12:19:07 +0000 |
commit | 9c2c71462e363d98d2d6d1e0954c9d85cf4a14d2 (patch) | |
tree | 6168b71016236270d96ae5c585f1799ca56b0e92 /sc/source | |
parent | 20fee4893fc976a708d456ea0ab21a8640394c4a (diff) |
INTEGRATION: CWS optionalbase (1.23.56); FILE MERGED
2005/06/20 13:36:44 fs 1.23.56.2: #i46898#
2005/06/16 07:45:16 fs 1.23.56.1: #i46898# no data source browser if no Base is installed
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/cellsh2.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index aceac2a38d77..264d581b748e 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cellsh2.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: obo $ $Date: 2005-04-13 12:20:34 $ + * last change: $Author: rt $ $Date: 2005-06-21 13:19:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,6 +79,8 @@ #include <svtools/zforlist.hxx> #include <vcl/msgbox.hxx> #include <svtools/stritem.hxx> +#include <svtools/visitem.hxx> +#include <svtools/moduleoptions.hxx> #include <com/sun/star/frame/FrameSearchFlag.hpp> #include <com/sun/star/sdbc/XResultSet.hpp> @@ -1096,9 +1098,11 @@ void __EXPORT ScCellShell::GetDBState( SfxItemSet& rSet ) case SID_VIEW_DATA_SOURCE_BROWSER: { - // get state (BoolItem) from SfxViewFrame - - pTabViewShell->GetViewFrame()->GetSlotState( nWhich, NULL, &rSet ); + if (!SvtModuleOptions().IsModuleInstalled(SvtModuleOptions::E_SDATABASE)) + rSet.Put(SfxVisibilityItem(nWhich, sal_False)); + else + // get state (BoolItem) from SfxViewFrame + pTabViewShell->GetViewFrame()->GetSlotState( nWhich, NULL, &rSet ); } break; case SID_SBA_BRW_INSERT: |