Kaydet (Commit) e8be58a1 authored tarafından Julien Nabet's avatar Julien Nabet

fdo#46037: 1 less occurrence comphelper/configurationhelper in fmwk/helper

Change-Id: I504789fb6b1e5332b0c131313ea9b9c538227d46
üst 39b1fb89
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
#include <comphelper/sequenceashashmap.hxx> #include <comphelper/sequenceashashmap.hxx>
#include <comphelper/mediadescriptor.hxx> #include <comphelper/mediadescriptor.hxx>
#include <comphelper/configurationhelper.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <officecfg/Office/Common.hxx>
namespace framework{ namespace framework{
...@@ -413,14 +413,7 @@ void StatusIndicatorFactory::implts_makeParentVisibleIfAllowed() ...@@ -413,14 +413,7 @@ void StatusIndicatorFactory::implts_makeParentVisibleIfAllowed()
Window* pWindow = VCLUnoHelper::GetWindow(xParentWindow); Window* pWindow = VCLUnoHelper::GetWindow(xParentWindow);
if ( pWindow ) if ( pWindow )
{ {
bool bForceFrontAndFocus(false); bool bForceFrontAndFocus(officecfg::Office::Common::View::NewDocumentHandling::ForceFocusAndToFront::get(xContext));
::comphelper::ConfigurationHelper::readDirectKey(
xContext,
OUString("org.openoffice.Office.Common/View"),
OUString("NewDocumentHandling"),
OUString("ForceFocusAndToFront"),
::comphelper::ConfigurationHelper::E_READONLY) >>= bForceFrontAndFocus;
pWindow->Show(sal_True, bForceFrontAndFocus ? SHOW_FOREGROUNDTASK : 0 ); pWindow->Show(sal_True, bForceFrontAndFocus ? SHOW_FOREGROUNDTASK : 0 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment