summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-11-14 14:20:52 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-23 09:45:38 +0100
commitfec1501374860983d837d482cd175d80f4635b6f (patch)
tree3a5d4650212d290cab358674591970403b422e35 /sc/source/ui/view
parente777bda2398e2507bca7e13582f23cad0d2d8689 (diff)
Use specific SvtModuleOptions::Is*Installed for clarity
Change-Id: Ibe64b9fcccf33471d96bb0fb1aa896cb456657f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177069 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/cellsh2.cxx2
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx2
-rw-r--r--sc/source/ui/view/tabvwshb.cxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 1a3aa891ffde..f6577c7f16b5 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -1175,7 +1175,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet )
case SID_VIEW_DATA_SOURCE_BROWSER:
{
- if (!SvtModuleOptions().IsModuleInstalled(SvtModuleOptions::EModule::DATABASE))
+ if (!SvtModuleOptions().IsDataBaseInstalled())
rSet.Put(SfxVisibilityItem(nWhich, false));
else
// get state (BoolItem) from SfxViewFrame
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx
index 8ff41cc374bd..d0bff87ee629 100644
--- a/sc/source/ui/view/tabvwsh2.cxx
+++ b/sc/source/ui/view/tabvwsh2.cxx
@@ -399,7 +399,7 @@ void ScTabViewShell::GetDrawState(SfxItemSet &rSet)
case SID_DRAW_CHART:
{
bool bOle = GetViewFrame().GetFrame().IsInPlace();
- if ( bOle || !SvtModuleOptions().IsChart() )
+ if ( bOle || !SvtModuleOptions().IsChartInstalled() )
rSet.DisableItem( nWhich );
}
break;
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 3b1bf47dc238..ae82a7b74a9f 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -231,7 +231,7 @@ void ScTabViewShell::ActivateObject(SdrOle2Obj* pObj, sal_Int32 nVerb)
// attach listener to selection changes in chart that affect cell
// ranges, so those can be highlighted
// note: do that after DoVerb, so that the chart controller exists
- if ( SvtModuleOptions().IsChart() )
+ if ( SvtModuleOptions().IsChartInstalled() )
{
SvGlobalName aObjClsId ( xObj->getClassID() );
if (SotExchange::IsChart( aObjClsId ))
@@ -603,12 +603,12 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
switch ( nWhich )
{
case SID_INSERT_DIAGRAM:
- if ( bOle || bTabProt || !SvtModuleOptions().IsChart() || bShared )
+ if ( bOle || bTabProt || !SvtModuleOptions().IsChartInstalled() || bShared )
rSet.DisableItem( nWhich );
break;
case SID_INSERT_SMATH:
- if ( bOle || bTabProt || !SvtModuleOptions().IsMath() || bShared )
+ if ( bOle || bTabProt || !SvtModuleOptions().IsMathInstalled() || bShared )
rSet.DisableItem( nWhich );
break;