INTEGRATION: CWS a11yshowstop (1.11.10); FILE MERGED
2005/04/21 08:55:01 obr 1.11.10.1: #i47798# initialize accessibility bridge
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: pamain.cxx,v $
|
* $RCSfile: pamain.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.11 $
|
* $Revision: 1.12 $
|
||||||
*
|
*
|
||||||
* last change: $Author: kz $ $Date: 2005-03-03 20:00:26 $
|
* last change: $Author: obo $ $Date: 2005-04-22 11:36:33 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -81,6 +81,10 @@
|
|||||||
#include <helper.hxx>
|
#include <helper.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _PADMIN_DESKTOPCONTEXT_HXX_
|
||||||
|
#include <desktopcontext.hxx>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _CPPUHELPER_BOOTSTRAP_HXX_
|
#ifndef _CPPUHELPER_BOOTSTRAP_HXX_
|
||||||
#include <cppuhelper/bootstrap.hxx>
|
#include <cppuhelper/bootstrap.hxx>
|
||||||
#endif
|
#endif
|
||||||
@@ -161,6 +165,10 @@ void MyApp::Main()
|
|||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Detect desktop environment - need to do this as early as possible
|
||||||
|
com::sun::star::uno::setCurrentContext(
|
||||||
|
new DesktopContext( com::sun::star::uno::getCurrentContext() ) );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create UCB.
|
* Create UCB.
|
||||||
*/
|
*/
|
||||||
@@ -180,6 +188,17 @@ void MyApp::Main()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the Java UNO AccessBridge if accessibility is turned on
|
||||||
|
*/
|
||||||
|
|
||||||
|
if( Application::GetSettings().GetMiscSettings().GetEnableATToolSupport() )
|
||||||
|
{
|
||||||
|
BOOL bQuitApp;
|
||||||
|
if( !InitAccessBridge( true, bQuitApp ) )
|
||||||
|
if( bQuitApp )
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// initialize test-tool library (if available)
|
// initialize test-tool library (if available)
|
||||||
tools::InitTestToolLib();
|
tools::InitTestToolLib();
|
||||||
|
Reference in New Issue
Block a user