diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-31 19:49:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-02 07:25:54 +0100 |
commit | 0f3a8a972421aa440f4276b92463a481e5cd4267 (patch) | |
tree | d11cdfbe0165cd6737d972f69a3c2ef2acb79d68 /cui | |
parent | ccad985c5163224d669e9f0fa70fdff070fc58ca (diff) |
use officecfg or MacroRecorderMode
Change-Id: I2a8d4f401ddfd4368a7b50b4c3c8a72724f9afa3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105154
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optjava.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 3072fb71b757..ed695295b583 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -32,7 +32,6 @@ #include <officecfg/Office/Common.hxx> #include <osl/file.hxx> -#include <svtools/miscopt.hxx> #include <strings.hrc> #include <vcl/svapp.hxx> @@ -482,8 +481,10 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) if ( m_xMacroCB->get_state_changed_from_saved() ) { - SvtMiscOptions aMiscOpt; - aMiscOpt.SetMacroRecorderMode(m_xMacroCB->get_active()); + std::shared_ptr< comphelper::ConfigurationChanges > xChanges( + comphelper::ConfigurationChanges::create()); + officecfg::Office::Common::Misc::MacroRecorderMode::set( m_xMacroCB->get_active(), xChanges ); + xChanges->commit(); bModified = true; } @@ -561,8 +562,6 @@ void SvxJavaOptionsPage::Reset( const SfxItemSet* /*rSet*/ ) ClearJavaInfo(); m_xJavaList->clear(); - SvtMiscOptions aMiscOpt; - #if HAVE_FEATURE_JAVA bool bEnabled = false; javaFrameworkError eErr = jfw_getEnabled( &bEnabled ); @@ -586,7 +585,7 @@ void SvxJavaOptionsPage::Reset( const SfxItemSet* /*rSet*/ ) m_xExperimentalCB->set_active( officecfg::Office::Common::Misc::ExperimentalMode::get() ); m_xExperimentalCB->save_state(); - m_xMacroCB->set_active(aMiscOpt.IsMacroRecorderMode()); + m_xMacroCB->set_active( officecfg::Office::Common::Misc::MacroRecorderMode::get() ); m_xMacroCB->save_state(); m_aResetIdle.Start(); |