From da9bba7cc3c243e936daea689fea64ecaf110f35 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 Jul 2021 10:10:17 +0200 Subject: use officecfg for SvxHtmlOptions Change-Id: Ie7db7d20509e45fd87d8460c7fae6c0131e0a1f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119494 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/shells/textsh.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw/source/uibase/shells/textsh.cxx') diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 0f19e33153d9..af3fc2e21494 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -427,8 +427,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) bool bSingleCol = false; if( nullptr!= dynamic_cast< SwWebDocShell*>( GetView().GetDocShell()) ) { - SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get(); - if( HTML_CFG_MSIE == rHtmlOpt.GetExportMode() ) + if( HTML_CFG_MSIE == SvxHtmlOptions::GetExportMode() ) { bSingleCol = true; } @@ -613,8 +612,7 @@ void SwTextShell::StateInsert( SfxItemSet &rSet ) } else if(SID_INSERT_FLOATINGFRAME == nWhich && bHtmlModeOn) { - SvxHtmlOptions& rHtmlOpt = SvxHtmlOptions::Get(); - const sal_uInt16 nExport = rHtmlOpt.GetExportMode(); + const sal_uInt16 nExport = SvxHtmlOptions::GetExportMode(); if(HTML_CFG_MSIE != nExport && HTML_CFG_WRITER != nExport ) rSet.DisableItem(nWhich); } -- cgit