From b44ed4c408d92f7a1a3f2390c056d518c137ddd0 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 29 Nov 2013 23:03:37 +0100 Subject: vcl: check if AT is running before loading the library ... which should result in faster startup if it's disabled. Change-Id: I39774b0a56f186d08270c2f17b2b20a823f21dc2 --- .../source/service/msaaservice_impl.cxx | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'winaccessibility') diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx index 219eaee4c255..961a01219c67 100644 --- a/winaccessibility/source/service/msaaservice_impl.cxx +++ b/winaccessibility/source/service/msaaservice_impl.cxx @@ -237,21 +237,6 @@ static void AccessBridgeUpdateOldTopWindows( const Reference< XMSAAService > &xA } } -static bool HasAtHook() -{ - sal_Int32 bIsRuning=0; - // BOOL WINAPI SystemParametersInfo( - // __in UINT uiAction, - // __in UINT uiParam, - // __inout PVOID pvParam, - // __in UINT fWinIni - // ); - // pvParam must be BOOL (defined in MFC as int) - // End - return SystemParametersInfo( SPI_GETSCREENREADER, 0, - &bIsRuning, 0) && bIsRuning; -} - /** * Static method that can create an entity of our MSAA Service * @param xContext No use here. @@ -259,17 +244,6 @@ static bool HasAtHook() */ Reference< XInterface > SAL_CALL create_MSAAServiceImpl( Reference< XComponentContext > const & /*xContext*/ ) SAL_THROW( () ) { - bool bRunWithoutAt = getenv("SAL_FORCE_IACCESSIBLE2"); - - if ( !HasAtHook() ) - { - if ( !bRunWithoutAt ) - { - SAL_INFO("iacc2", "Apparently no running AT -> not enabling IAccessible2 integration"); - return Reference< XMSAAService >(); - } - } - Reference< XMSAAService > xAccMgr( new MSAAServiceImpl() ); AccessBridgeUpdateOldTopWindows( xAccMgr ); -- cgit