summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-06-19 07:26:05 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-06-19 09:34:08 +0200
commit9e4d16d75156bb1080118353a66846b18cf5ba04 (patch)
tree1030cdd3cd43fd76ef522031e64d1e886d7bb87d
parent404298113071c182a24d74b6acfdd4f739dbe86f (diff)
Simplify a bit
No other options are possible, as implemented in GetExportMode Change-Id: Id64ec1b5bd52f28a100bd2b31cd56c6620bb2cb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153239 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--svtools/source/config/htmlcfg.cxx14
1 files changed, 1 insertions, 13 deletions
diff --git a/svtools/source/config/htmlcfg.cxx b/svtools/source/config/htmlcfg.cxx
index 983d85e4bf22..473efc9d45dd 100644
--- a/svtools/source/config/htmlcfg.cxx
+++ b/svtools/source/config/htmlcfg.cxx
@@ -60,8 +60,6 @@ sal_uInt16 GetExportMode()
nExpMode = HTML_CFG_WRITER;
break;
case 4:
- nExpMode = HTML_CFG_NS40;
- break;
default:
nExpMode = HTML_CFG_NS40;
break;
@@ -71,17 +69,7 @@ sal_uInt16 GetExportMode()
bool IsPrintLayoutExtension()
{
- bool bRet = officecfg::Office::Common::Filter::HTML::Export::PrintLayout::get();
- switch (GetExportMode())
- {
- case HTML_CFG_MSIE:
- case HTML_CFG_NS40:
- case HTML_CFG_WRITER:
- break;
- default:
- bRet = false;
- }
- return bRet;
+ return officecfg::Office::Common::Filter::HTML::Export::PrintLayout::get();
}
} // namespace SvxHtmlOptions