diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-09-26 14:32:08 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-09-26 14:32:08 +0000 |
commit | fc842d9896d46164b2c71dcfd000e207a7185290 (patch) | |
tree | d703c1e5e238ec995ffbce1001f36f462c1e9292 | |
parent | 10b412071fa88177c970b4cab1b40533084b78a0 (diff) |
CWS-TOOLING: integrate CWS sw30bf15_DEV300
-rw-r--r-- | desktop/source/app/app.cxx | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index dc02d044ab40..cb2a32ee0d4c 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1339,32 +1339,37 @@ void Desktop::Main() tools::InitTestToolLib(); RTL_LOGFILE_CONTEXT_TRACE( aLog, "} tools::InitTestToolLib" ); - // First Start Wizard - if ( IsFirstStartWizardNeeded() && !pCmdLineArgs->IsNoFirstStartWizard() ) + // First Start Wizard allowed ? + if ( ! pCmdLineArgs->IsNoFirstStartWizard()) { - ::svt::RegOptions().removeReminder(); // remove patch registration reminder - Reference< XJob > xFirstStartJob( xSMgr->createInstance( - DEFINE_CONST_UNICODE( "com.sun.star.comp.desktop.FirstStart" ) ), UNO_QUERY ); - if (xFirstStartJob.is()) + RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ FirstStartWizard" ); + + if (IsFirstStartWizardNeeded()) { - sal_Bool bDone = sal_False; - Sequence< NamedValue > lArgs(2); - lArgs[0].Name = ::rtl::OUString::createFromAscii("LicenseNeedsAcceptance"); - lArgs[0].Value <<= LicenseNeedsAcceptance(); - lArgs[1].Name = ::rtl::OUString::createFromAscii("LicensePath"); - lArgs[1].Value <<= GetLicensePath(); - - xFirstStartJob->execute(lArgs) >>= bDone; - if ( !bDone ) + ::svt::RegOptions().removeReminder(); // remove patch registration reminder + Reference< XJob > xFirstStartJob( xSMgr->createInstance( + DEFINE_CONST_UNICODE( "com.sun.star.comp.desktop.FirstStart" ) ), UNO_QUERY ); + if (xFirstStartJob.is()) { - return; + sal_Bool bDone = sal_False; + Sequence< NamedValue > lArgs(2); + lArgs[0].Name = ::rtl::OUString::createFromAscii("LicenseNeedsAcceptance"); + lArgs[0].Value <<= LicenseNeedsAcceptance(); + lArgs[1].Name = ::rtl::OUString::createFromAscii("LicensePath"); + lArgs[1].Value <<= GetLicensePath(); + + xFirstStartJob->execute(lArgs) >>= bDone; + if ( !bDone ) + { + return; + } } } - } - else if ( RegistrationPage::hasReminderDateCome() ) - RegistrationPage::executeSingleMode(); + else if ( RegistrationPage::hasReminderDateCome() ) + RegistrationPage::executeSingleMode(); - RTL_LOGFILE_CONTEXT_TRACE( aLog, "} FirstStartWizard" ); + RTL_LOGFILE_CONTEXT_TRACE( aLog, "} FirstStartWizard" ); + } // keep a language options instance... pLanguageOptions.reset( new SvtLanguageOptions(sal_True)); |