summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/textsh.cxx
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 /sw/source/uibase/shells/textsh.cxx
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 'sw/source/uibase/shells/textsh.cxx')
-rw-r--r--sw/source/uibase/shells/textsh.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 4696335884aa..dfd5591b6e46 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -373,8 +373,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
break;
case SID_INSERT_DIAGRAM:
{
- SvtModuleOptions aMOpt;
- if ( !aMOpt.IsChart() )
+ if (!SvtModuleOptions().IsChartInstalled())
break;
if(!rReq.IsAPI())
{
@@ -621,7 +620,6 @@ void SwTextShell::StateInsert( SfxItemSet &rSet )
SfxWhichIter aIter( rSet );
SwWrtShell &rSh = GetShell();
sal_uInt16 nWhich = aIter.FirstWhich();
- SvtModuleOptions aMOpt;
SfxObjectCreateMode eCreateMode =
GetView().GetDocShell()->GetCreateMode();
const bool bCursorInHidden = rSh.IsInHiddenRange(/*bSelect=*/false);
@@ -641,7 +639,7 @@ void SwTextShell::StateInsert( SfxItemSet &rSet )
break;
case SID_INSERT_DIAGRAM:
- if( !aMOpt.IsChart()
+ if (!SvtModuleOptions().IsChartInstalled()
|| GetShell().CursorInsideInputField()
|| eCreateMode == SfxObjectCreateMode::EMBEDDED
|| bCursorInHidden )
@@ -651,7 +649,7 @@ void SwTextShell::StateInsert( SfxItemSet &rSet )
break;
case FN_INSERT_SMA:
- if( !aMOpt.IsMath()
+ if (!SvtModuleOptions().IsMathInstalled()
|| eCreateMode == SfxObjectCreateMode::EMBEDDED
|| bCursorInHidden
|| rSh.CursorInsideInputField() )