[Libreoffice-commits] core.git: framework/source
Julien Nabet
serval2412 at yahoo.fr
Fri Jul 26 11:51:27 PDT 2013
framework/source/helper/statusindicatorfactory.cxx | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
New commits:
commit e8be58a10bce944525b4186db64629f526cf20ce
Author: Julien Nabet <serval2412 at 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 );
}
More information about the Libreoffice-commits
mailing list