summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-29 23:03:37 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-02 13:18:04 +0100
commitb44ed4c408d92f7a1a3f2390c056d518c137ddd0 (patch)
tree75c81d068b1bf71f8f984af1e8a34e46d2ef0e98 /winaccessibility
parentfabca7370e22f96ae041dc179475b35c87ac53ec (diff)
vcl: check if AT is running before loading the library
... which should result in faster startup if it's disabled. Change-Id: I39774b0a56f186d08270c2f17b2b20a823f21dc2
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx26
1 files changed, 0 insertions, 26 deletions
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 );