Kaydet (Commit) bafc457a authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS networker2 (1.126.8); FILE MERGED

2003/12/18 11:27:05 lo 1.126.8.3: #i22595# do configuration at first office run
2003/12/16 11:23:56 lo 1.126.8.2: #i22594# resid
2003/12/15 16:23:42 lo 1.126.8.1: #i22594# remove hidden setup, write configuration
üst c10f01e1
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: app.cxx,v $ * $RCSfile: app.cxx,v $
* *
* $Revision: 1.127 $ * $Revision: 1.128 $
* *
* last change: $Author: vg $ $Date: 2004-01-06 18:37:50 $ * last change: $Author: obo $ $Date: 2004-01-20 16:33:21 $
* *
* 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
...@@ -571,6 +571,8 @@ void Desktop::Init() ...@@ -571,6 +571,8 @@ void Desktop::Init()
} }
::comphelper::setProcessServiceFactory( rSMgr ); ::comphelper::setProcessServiceFactory( rSMgr );
// prepare language
LanguageSelection::prepareLanguage();
CommandLineArgs* pCmdLineArgs = GetCommandLineArgs(); CommandLineArgs* pCmdLineArgs = GetCommandLineArgs();
#ifdef UNX #ifdef UNX
...@@ -580,25 +582,25 @@ void Desktop::Init() ...@@ -580,25 +582,25 @@ void Desktop::Init()
_exit(0); _exit(0);
} }
#endif #endif
// start ipc thread only for non-remote offices // start ipc thread only for non-remote offices
RTL_LOGFILE_CONTEXT( aLog2, "desktop (cd100003) ::OfficeIPCThread::EnableOfficeIPCThread" ); RTL_LOGFILE_CONTEXT( aLog, "desktop (cd100003) ::OfficeIPCThread::EnableOfficeIPCThread" );
OfficeIPCThread::Status aStatus = OfficeIPCThread::EnableOfficeIPCThread(); OfficeIPCThread::Status aStatus = OfficeIPCThread::EnableOfficeIPCThread();
if ( aStatus == OfficeIPCThread::IPC_STATUS_BOOTSTRAP_ERROR ) if ( aStatus == OfficeIPCThread::IPC_STATUS_BOOTSTRAP_ERROR )
{ {
SetBootstrapError( BE_PATHINFO_MISSING ); SetBootstrapError( BE_PATHINFO_MISSING );
} }
else if ( aStatus == OfficeIPCThread::IPC_STATUS_2ND_OFFICE ) else if ( aStatus == OfficeIPCThread::IPC_STATUS_2ND_OFFICE )
{ {
// 2nd office startup should terminate after sending cmdlineargs through pipe // 2nd office startup should terminate after sending cmdlineargs through pipe
_exit( 0 ); _exit( 0 );
} }
else if ( pCmdLineArgs->IsHelp() ) else if ( pCmdLineArgs->IsHelp() )
{ {
// disable IPC thread in an instance that is just showing a help message // disable IPC thread in an instance that is just showing a help message
OfficeIPCThread::DisableOfficeIPCThread(); OfficeIPCThread::DisableOfficeIPCThread();
} }
pSignalHandler = new SalMainPipeExchangeSignalHandler;
pSignalHandler = new SalMainPipeExchangeSignalHandler;
} }
void Desktop::DeInit() void Desktop::DeInit()
...@@ -1241,6 +1243,7 @@ void Desktop::Main() ...@@ -1241,6 +1243,7 @@ void Desktop::Main()
{ {
// problems with user installation... // problems with user installation...
HandleBootstrapErrors( BE_USERINSTALL_FAILED ); HandleBootstrapErrors( BE_USERINSTALL_FAILED );
return;
} }
// refresh path information // refresh path information
utl::Bootstrap::reloadData(); utl::Bootstrap::reloadData();
...@@ -1373,8 +1376,7 @@ void Desktop::Main() ...@@ -1373,8 +1376,7 @@ void Desktop::Main()
AllSettings aSettings( Application::GetSettings() ); AllSettings aSettings( Application::GetSettings() );
LanguageSelection langselect; LanguageType eUILanguage = LanguageSelection::getLanguageType();
LanguageType eUILanguage = langselect.Execute();
aSettings.SetUILanguage( eUILanguage ); aSettings.SetUILanguage( eUILanguage );
LanguageType eLanguage = SvtSysLocaleOptions().GetLocaleLanguageType(); LanguageType eLanguage = SvtSysLocaleOptions().GetLocaleLanguageType();
...@@ -1715,7 +1717,7 @@ void Desktop::EnableOleAutomation() ...@@ -1715,7 +1717,7 @@ void Desktop::EnableOleAutomation()
Reference< XMultiServiceFactory > xSMgr= comphelper::getProcessServiceFactory(); Reference< XMultiServiceFactory > xSMgr= comphelper::getProcessServiceFactory();
xSMgr->createInstance(DEFINE_CONST_UNICODE("com.sun.star.bridge.OleApplicationRegistration")); xSMgr->createInstance(DEFINE_CONST_UNICODE("com.sun.star.bridge.OleApplicationRegistration"));
xSMgr->createInstance(DEFINE_CONST_UNICODE("com.sun.star.comp.ole.EmbedServer")); xSMgr->createInstance(DEFINE_CONST_UNICODE("com.sun.star.comp.ole.EmbedServer"));
#endif"SaveDocuments" #endif
} }
sal_Bool Desktop::CheckOEM() sal_Bool Desktop::CheckOEM()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment