Lines 243-248
Link Here
|
243 |
static const ::rtl::OUString CFG_PACKAGE_COMMON_HELP ( RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.Office.Common/Help")); |
243 |
static const ::rtl::OUString CFG_PACKAGE_COMMON_HELP ( RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.Office.Common/Help")); |
244 |
|
244 |
|
245 |
static ::rtl::OUString getBrandSharePreregBundledPathURL(); |
245 |
static ::rtl::OUString getBrandSharePreregBundledPathURL(); |
|
|
246 |
// #i119950# Add a option that not to display the "Fatal Error" on dialog title |
247 |
void FatalError(const ::rtl::OUString& sMessage, const sal_Bool isDisplayErrorString = sal_True); |
246 |
// ---------------------------------------------------------------------------- |
248 |
// ---------------------------------------------------------------------------- |
247 |
|
249 |
|
248 |
ResMgr* Desktop::GetDesktopResManager() |
250 |
ResMgr* Desktop::GetDesktopResManager() |
Lines 354-360
Link Here
|
354 |
// |
356 |
// |
355 |
// Thats why we have to use a special native message box here which does not use yield :-) |
357 |
// Thats why we have to use a special native message box here which does not use yield :-) |
356 |
//============================================================================= |
358 |
//============================================================================= |
357 |
void FatalError(const ::rtl::OUString& sMessage) |
359 |
void FatalError(const ::rtl::OUString& sMessage, const sal_Bool isDisplayErrorString) |
358 |
{ |
360 |
{ |
359 |
::rtl::OUString sProductKey = ::utl::Bootstrap::getProductKey(); |
361 |
::rtl::OUString sProductKey = ::utl::Bootstrap::getProductKey(); |
360 |
if ( ! sProductKey.getLength()) |
362 |
if ( ! sProductKey.getLength()) |
Lines 369-376
Link Here
|
369 |
|
371 |
|
370 |
::rtl::OUStringBuffer sTitle (128); |
372 |
::rtl::OUStringBuffer sTitle (128); |
371 |
sTitle.append (sProductKey ); |
373 |
sTitle.append (sProductKey ); |
372 |
sTitle.appendAscii (" - Fatal Error"); |
374 |
if (isDisplayErrorString) { |
373 |
|
375 |
sTitle.appendAscii (" - Fatal Error"); |
|
|
376 |
} |
374 |
Application::ShowNativeErrorBox (sTitle.makeStringAndClear (), sMessage); |
377 |
Application::ShowNativeErrorBox (sTitle.makeStringAndClear (), sMessage); |
375 |
_exit(ExitHelper::E_FATAL_ERROR); |
378 |
_exit(ExitHelper::E_FATAL_ERROR); |
376 |
} |
379 |
} |
Lines 995-1001
Link Here
|
995 |
if ( aStatus == OfficeIPCThread::IPC_STATUS_BOOTSTRAP_ERROR ) |
998 |
if ( aStatus == OfficeIPCThread::IPC_STATUS_BOOTSTRAP_ERROR ) |
996 |
{ |
999 |
{ |
997 |
SetBootstrapError( BE_PATHINFO_MISSING ); |
1000 |
SetBootstrapError( BE_PATHINFO_MISSING ); |
|
|
1001 |
|
998 |
} |
1002 |
} |
|
|
1003 |
else if ( aStatus == OfficeIPCThread::IPC_STATUS_MULTI_TS_ERROR ) |
1004 |
{ |
1005 |
SetBootstrapError( BE_MUTLISESSION_NOT_SUPPROTED ); |
1006 |
} |
999 |
else if ( aStatus == OfficeIPCThread::IPC_STATUS_2ND_OFFICE ) |
1007 |
else if ( aStatus == OfficeIPCThread::IPC_STATUS_2ND_OFFICE ) |
1000 |
{ |
1008 |
{ |
1001 |
// 2nd office startup should terminate after sending cmdlineargs through pipe |
1009 |
// 2nd office startup should terminate after sending cmdlineargs through pipe |
Lines 1241-1247
Link Here
|
1241 |
|
1249 |
|
1242 |
void Desktop::HandleBootstrapErrors( BootstrapError aBootstrapError ) |
1250 |
void Desktop::HandleBootstrapErrors( BootstrapError aBootstrapError ) |
1243 |
{ |
1251 |
{ |
1244 |
if ( aBootstrapError == BE_PATHINFO_MISSING ) |
1252 |
if ( aBootstrapError == BE_MUTLISESSION_NOT_SUPPROTED ) { |
|
|
1253 |
OUString aMessage; |
1254 |
aMessage = GetMsgString( STR_BOOTSTRAP_ERR_MULTISESSION, |
1255 |
OUString( RTL_CONSTASCII_USTRINGPARAM( "You have another instance running in a different terminal session. Close that instance and then try again." )) ); |
1256 |
FatalError(aMessage,sal_False); |
1257 |
|
1258 |
} else if ( aBootstrapError == BE_PATHINFO_MISSING ) |
1245 |
{ |
1259 |
{ |
1246 |
OUString aErrorMsg; |
1260 |
OUString aErrorMsg; |
1247 |
OUString aBuffer; |
1261 |
OUString aBuffer; |