summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2017-04-04 17:49:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 11:24:05 +0000
commitf747390b4f79d88dcccec8aa5e25d3444aac9a23 (patch)
treeab73d3b51ee4bf97e4eaa01d32230b0dc55190ae /cui
parent01088af64083c706696dbfeb0c58f62bdbf84c48 (diff)
tdf#106943 Lock down Experimental features and Macro recording
Visually disable these features if they are locked by system administrators Change-Id: Ib35840312ad9c506e689ec6c9d432a88c07a5c28 Reviewed-on: https://gerrit.libreoffice.org/36095 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optjava.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index f7a90976eb39..20fd7a9e0f5c 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -192,6 +192,12 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( vcl::Window* pParent, const SfxItemSet&
if (!officecfg::Office::Common::Security::EnableExpertConfiguration::get())
m_pExpertConfigBtn->Disable();
+ if (officecfg::Office::Common::Misc::MacroRecorderMode::isReadOnly())
+ m_pMacroCB->Disable();
+
+ if (officecfg::Office::Common::Misc::ExperimentalMode::isReadOnly())
+ m_pExperimentalCB->Disable();
+
xDialogListener->SetDialogClosedLink( LINK( this, SvxJavaOptionsPage, DialogClosedHdl ) );
EnableHdl_Impl(m_pJavaEnableCB);