summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-10-31 22:04:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-01 15:14:33 +0100
commit7a896f183dca54aa9d8529f5797920cf629f9210 (patch)
treec4475c2352c5dcab2521709db12199fa7084c2fb /sfx2
parent9aa8552bf9168836662b45798e06de4b972550ed (diff)
use officecfg for Experimental flag
move IsShowOutlineContentVisibilityButton out of header to avoid having to add extra include paths to all the unit test makefiles. Change-Id: I2763390e07cd85b8f09b6f2ad7702039daecb22f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx3
-rw-r--r--sfx2/source/dialog/versdlg.cxx4
-rw-r--r--sfx2/source/sidebar/ResourceManager.cxx10
3 files changed, 8 insertions, 9 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 6e7ab0a96298..d44927415ed1 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -1130,8 +1130,7 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
case SID_TEMPLATE_MANAGER:
{
- SvtMiscOptions aMiscOptions;
- if ( !aMiscOptions.IsExperimentalMode() )
+ if ( !officecfg::Office::Common::Misc::ExperimentalMode::get() )
{
rSet.DisableItem( nWhich );
rSet.Put( SfxVisibilityItem( nWhich, false ) );
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx
index 68abca31ba61..256b328e4978 100644
--- a/sfx2/source/dialog/versdlg.cxx
+++ b/sfx2/source/dialog/versdlg.cxx
@@ -24,6 +24,7 @@
#include <com/sun/star/util/RevisionTag.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
+#include <officecfg/Office/Common.hxx>
#include <unotools/localedatawrapper.hxx>
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
@@ -242,8 +243,7 @@ void SfxVersionDialog::Init_Impl()
m_xDeleteButton->set_sensitive(false);
m_xCompareButton->set_sensitive(false);
- SvtMiscOptions miscOptions;
- if ( !miscOptions.IsExperimentalMode() )
+ if ( !officecfg::Office::Common::Misc::ExperimentalMode::get() )
m_xCmisButton->hide( );
uno::Reference<document::XCmisDocument> xCmisDoc(pObjShell->GetModel(), uno::UNO_QUERY);
if (xCmisDoc && xCmisDoc->isVersionable())
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index 6a383966c403..a1ff9752e1e0 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -22,6 +22,7 @@
#include <sfx2/sidebar/ResourceManager.hxx>
#include <sidebar/Tools.hxx>
+#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/UI/Sidebar.hxx>
#include <unotools/confignode.hxx>
#include <comphelper/lok.hxx>
@@ -99,8 +100,7 @@ css::uno::Sequence<OUString> BuildContextList (const ContextList& rContextList)
ResourceManager::ResourceManager()
: maDecks(),
maPanels(),
- maProcessedApplications(),
- maMiscOptions()
+ maProcessedApplications()
{
ReadDeckList();
ReadPanelList();
@@ -131,7 +131,7 @@ std::shared_ptr<DeckDescriptor> ResourceManager::ImplGetDeckDescriptor(const OUS
{
for (auto const& deck : maDecks)
{
- if (deck->mbExperimental && !maMiscOptions.IsExperimentalMode())
+ if (deck->mbExperimental && !officecfg::Office::Common::Misc::ExperimentalMode::get())
continue;
if (deck->msId == rsDeckId)
return deck;
@@ -170,7 +170,7 @@ const ResourceManager::DeckContextDescriptorContainer& ResourceManager::GetMatch
std::multimap<sal_Int32,DeckContextDescriptor> aOrderedIds;
for (auto const& deck : maDecks)
{
- if (deck->mbExperimental && !maMiscOptions.IsExperimentalMode())
+ if (deck->mbExperimental && !officecfg::Office::Common::Misc::ExperimentalMode::get())
continue;
const DeckDescriptor& rDeckDescriptor (*deck);
@@ -207,7 +207,7 @@ const ResourceManager::PanelContextDescriptorContainer& ResourceManager::GetMatc
for (auto const& panel : maPanels)
{
const PanelDescriptor& rPanelDescriptor (*panel);
- if (rPanelDescriptor.mbExperimental && !maMiscOptions.IsExperimentalMode())
+ if (rPanelDescriptor.mbExperimental && !officecfg::Office::Common::Misc::ExperimentalMode::get())
continue;
if ( rPanelDescriptor.msDeckId != sDeckId )
continue;