diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-26 14:45:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-28 08:38:52 +0200 |
commit | d8fec570c21c5e45ba593ee96cc1ba5d45d77fc8 (patch) | |
tree | da5f5eed2c066325c409e64366b4569a54fb1791 /sw/source/ui/chrdlg | |
parent | 3808418e38fe9540a286ad48f1c3eaed2706f78c (diff) |
use officecfg for SvtCJKOptions
and remove some unused options
Change-Id: I487a233de4f7414012e5405f2c2e1f9c8b8fb4f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119554
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/chrdlg')
-rw-r--r-- | sw/source/ui/chrdlg/chardlg.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/pardlg.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx index ab59691668b1..edd12254dd8b 100644 --- a/sw/source/ui/chrdlg/chardlg.cxx +++ b/sw/source/ui/chrdlg/chardlg.cxx @@ -84,8 +84,7 @@ SwCharDlg::SwCharDlg(weld::Window* pParent, SwView& rVw, const SfxItemSet& rCore } else { - SvtCJKOptions aCJKOptions; - if (!aCJKOptions.IsDoubleLinesEnabled()) + if (!SvtCJKOptions::IsDoubleLinesEnabled()) RemoveTabPage("asianlayout"); } diff --git a/sw/source/ui/chrdlg/pardlg.cxx b/sw/source/ui/chrdlg/pardlg.cxx index 225c0472de9c..aef94f46111a 100644 --- a/sw/source/ui/chrdlg/pardlg.cxx +++ b/sw/source/ui/chrdlg/pardlg.cxx @@ -84,8 +84,7 @@ SwParaDlg::SwParaDlg(weld::Window *pParent, else RemoveTabPage("textflow"); - SvtCJKOptions aCJKOptions; - if(!bHtmlMode && aCJKOptions.IsAsianTypographyEnabled()) + if(!bHtmlMode && SvtCJKOptions::IsAsianTypographyEnabled()) { OSL_ENSURE(pFact->GetTabPageCreatorFunc(RID_SVXPAGE_PARA_ASIAN), "GetTabPageCreatorFunc fail!"); OSL_ENSURE(pFact->GetTabPageRangesFunc(RID_SVXPAGE_PARA_ASIAN), "GetTabPageRangesFunc fail!"); |