summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-07-26 20:50:55 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-07-26 20:50:55 +0200
commite8be58a10bce944525b4186db64629f526cf20ce (patch)
tree09d7beb42420cbaee142078f0fb4043dc629ab3e
parent39b1fb894fb3cd5ae2db65ddf9a2db761604f5e5 (diff)
fdo#46037: 1 less occurrence comphelper/configurationhelper in fmwk/helper
Change-Id: I504789fb6b1e5332b0c131313ea9b9c538227d46
-rw-r--r--framework/source/helper/statusindicatorfactory.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx
index e544213249c7..739a7d9b56e3 100644
--- a/framework/source/helper/statusindicatorfactory.cxx
+++ b/framework/source/helper/statusindicatorfactory.cxx
@@ -42,10 +42,10 @@
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/mediadescriptor.hxx>
-#include <comphelper/configurationhelper.hxx>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
+#include <officecfg/Office/Common.hxx>
namespace framework{
@@ -413,14 +413,7 @@ void StatusIndicatorFactory::implts_makeParentVisibleIfAllowed()
Window* pWindow = VCLUnoHelper::GetWindow(xParentWindow);
if ( pWindow )
{
- bool bForceFrontAndFocus(false);
- ::comphelper::ConfigurationHelper::readDirectKey(
- xContext,
- OUString("org.openoffice.Office.Common/View"),
- OUString("NewDocumentHandling"),
- OUString("ForceFocusAndToFront"),
- ::comphelper::ConfigurationHelper::E_READONLY) >>= bForceFrontAndFocus;
-
+ bool bForceFrontAndFocus(officecfg::Office::Common::View::NewDocumentHandling::ForceFocusAndToFront::get(xContext));
pWindow->Show(sal_True, bForceFrontAndFocus ? SHOW_FOREGROUNDTASK : 0 );
}