Kaydet (Commit) ab7bef7a authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS extmgrui01 (1.20.24); FILE MERGED

2008/04/28 10:58:07 dv 1.20.24.5: RESYNC: (1.21-1.22); FILE MERGED
2008/03/26 14:08:24 dv 1.20.24.4: Don't hide dialog when clicking 'updates available' icon
2008/03/25 08:06:18 dv 1.20.24.3: RESYNC: (1.20-1.21); FILE MERGED
2008/02/26 07:19:53 dv 1.20.24.2: #i83902# Some strings changed for new dialog
2008/02/04 07:39:50 dv 1.20.24.1: #i83902# first version of new dialog
üst d17ad24c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: dp_gui_service.cxx,v $ * $RCSfile: dp_gui_service.cxx,v $
* $Revision: 1.22 $ * $Revision: 1.23 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "dp_gui_shared.hxx" #include "dp_gui_shared.hxx"
#include "dp_gui.h" #include "dp_gui.h"
#include "dp_gui_theextmgr.hxx"
#include "cppuhelper/implbase2.hxx" #include "cppuhelper/implbase2.hxx"
#include "cppuhelper/implementationentry.hxx" #include "cppuhelper/implementationentry.hxx"
#include "unotools/configmgr.hxx" #include "unotools/configmgr.hxx"
...@@ -216,7 +217,7 @@ void ServiceImpl::startExecuteModal( ...@@ -216,7 +217,7 @@ void ServiceImpl::startExecuteModal(
bool bCloseDialog = true; // only used if m_bShowUpdateOnly is true bool bCloseDialog = true; // only used if m_bShowUpdateOnly is true
::std::auto_ptr<Application> app; ::std::auto_ptr<Application> app;
//ToDo: synchronize access to s_dialog !!! //ToDo: synchronize access to s_dialog !!!
if (! dp_gui::DialogImpl::s_dialog.is()) if (! dp_gui::TheExtensionManager::s_ExtMgr.is())
{ {
const bool bAppUp = (GetpApp() != 0); const bool bAppUp = (GetpApp() != 0);
bool bOfficePipePresent; bool bOfficePipePresent;
...@@ -264,24 +265,23 @@ void ServiceImpl::startExecuteModal( ...@@ -264,24 +265,23 @@ void ServiceImpl::startExecuteModal(
// the update notification icon in the menu bar. We must not close the extensions // the update notification icon in the menu bar. We must not close the extensions
// dialog after displaying the update dialog when it has been visible before // dialog after displaying the update dialog when it has been visible before
if ( m_bShowUpdateOnly ) if ( m_bShowUpdateOnly )
bCloseDialog = false; bCloseDialog = ! dp_gui::TheExtensionManager::s_ExtMgr->isVisible();
} }
{ {
const ::vos::OGuard guard( Application::GetSolarMutex() ); const ::vos::OGuard guard( Application::GetSolarMutex() );
::rtl::Reference< ::dp_gui::DialogImpl > dialog( ::rtl::Reference< ::dp_gui::TheExtensionManager > dialog(
::dp_gui::DialogImpl::get( ::dp_gui::TheExtensionManager::get(
m_xComponentContext, m_xComponentContext,
m_parent ? *m_parent : Reference<awt::XWindow>(), m_parent ? *m_parent : Reference<awt::XWindow>(),
m_extensionURL ? *m_extensionURL : OUString(), m_extensionURL ? *m_extensionURL : OUString() ) );
m_view ? *m_view : OUString() ) );
if (m_initialTitle.getLength() > 0) { if (m_initialTitle.getLength() > 0) {
dialog->SetText( m_initialTitle ); dialog->SetText( m_initialTitle );
m_initialTitle = OUString(); m_initialTitle = OUString();
} }
if ( m_bShowUpdateOnly ) if ( m_bShowUpdateOnly )
{ {
dialog->checkUpdates( false, true, !bCloseDialog ); dialog->checkUpdates( true, !bCloseDialog );
if ( bCloseDialog ) if ( bCloseDialog )
dialog->Close(); dialog->Close();
else else
......
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