diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-07-05 12:48:07 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-08 10:01:34 +0200 |
commit | c393afd00abcff65ce091baff83541e8a65348d9 (patch) | |
tree | 1f8390ba44a4713896391e6f216763e619de376c /sw/source/ui | |
parent | 7943a3b4b7ab5891e0be61bcfedd7c55a1ef8bf4 (diff) |
sw lok: hide UI to set Word-incompatible anchor types
Let's make it a bit harder for users to hurt themselves, at least in
Online. Affects the context/popup menu and the dialog of frames.
This is similar to how certain border types are hidden on the UI,
depending on if MSO supports them. Though that goes a bit further and
disables those types even on the desktop.
(cherry picked from commit 4154d281fbecaadf6cd118c00cc6cff929e339a4)
Change-Id: I6b9205ef3df8a7bc15fbcf787d134743c09e98da
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 163c8a80b582..e3451afbbef3 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -71,6 +71,7 @@ #include <vcl/graphicfilter.hxx> #include <vcl/builderfactory.hxx> #include <svtools/embedhlp.hxx> +#include <comphelper/lok.hxx> #include <memory> using namespace ::com::sun::star; @@ -702,6 +703,13 @@ SwFramePage::SwFramePage(TabPageParent pParent, const SfxItemSet &rSet) m_xAutoWidthCB->connect_toggled(LINK(this, SwFramePage, AutoWidthClickHdl)); m_xAutoHeightCB->connect_toggled(LINK(this, SwFramePage, AutoHeightClickHdl)); + + if (comphelper::LibreOfficeKit::isActive()) + { + m_xAnchorAtPageRB->hide(); + m_xAnchorAtParaRB->hide(); + m_xAnchorAtFrameRB->hide(); + } } SwFramePage::~SwFramePage() |