summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-10-31 18:04:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-01 19:34:04 +0100
commitf70f3a46b8de6397bbcc09e8b9c8be9451919ae1 (patch)
tree5ac02bf5f4a215a8082c633a73553df14805ad59 /sfx2
parent38a71843fab65fed60d799bc7572608608bb70e8 (diff)
use officecfg for IsPluginsEnabled
Change-Id: Id80ba8a87af7f87b8232949b70804b1a021b23d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105147 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/iframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index e74ccc353b63..e37607c91a46 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -35,7 +35,7 @@
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
-#include <svtools/miscopt.hxx>
+#include <officecfg/Office/Common.hxx>
#include <svl/itemprop.hxx>
#include <sfx2/frmdescr.hxx>
#include <sfx2/sfxdlg.hxx>
@@ -155,7 +155,7 @@ sal_Bool SAL_CALL IFrameObject::load(
const uno::Sequence < css::beans::PropertyValue >& /*lDescriptor*/,
const uno::Reference < frame::XFrame >& xFrame )
{
- if ( SvtMiscOptions().IsPluginsEnabled() )
+ if ( officecfg::Office::Common::Misc::PluginsEnabled::get() )
{
DBG_ASSERT( !mxFrame.is(), "Frame already existing!" );
VclPtr<vcl::Window> pParent = VCLUnoHelper::GetWindow( xFrame->getContainerWindow() );