framework/source/helper/statusindicatorfactory.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
New commits: commit e8be58a10bce944525b4186db64629f526cf20ce Author: Julien Nabet <serval2...@yahoo.fr> Date: Fri Jul 26 20:50:55 2013 +0200 fdo#46037: 1 less occurrence comphelper/configurationhelper in fmwk/helper Change-Id: I504789fb6b1e5332b0c131313ea9b9c538227d46 diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx index e544213..739a7d9 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 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits