diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-27 09:20:56 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-27 09:20:56 +0000 |
commit | 5b0c752e1e8a0fd02bae6d794e8b0374d64472e4 (patch) | |
tree | efb70faec411923da3adb5cd5127188241d04fcf /desktop | |
parent | 381c14293d54e8e333f353209cb4d7acbf06645f (diff) |
INTEGRATION: CWS cd04 (1.5.30); FILE MERGED
2005/01/21 10:37:20 dbo 1.5.30.3: #i40887# fixed selection: no use of GetCurEntry() anymore
Issue number:
Submitted by:
Reviewed by:
2005/01/19 12:39:35 dbo 1.5.30.2: #i40887# selection, focus
Issue number:
Submitted by:
Reviewed by:
2005/01/19 10:17:49 dbo 1.5.30.1: #i35195##i40553#
- focus takeover
- invalid bootstraprc crash
- resmgr mutex cleanup
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog.cxx | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog.cxx b/desktop/source/deployment/gui/dp_gui_dialog.cxx index 7fd55a0cf827..c93506a8a93f 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dp_gui_dialog.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: kz $ $Date: 2005-01-21 17:10:37 $ + * last change: $Author: rt $ $Date: 2005-01-27 10:20:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -73,7 +73,6 @@ #include "vcl/wintypes.hxx" #include "vcl/msgbox.hxx" #include "svtools/svtools.hrc" -#include "com/sun/star/lang/XUnoTunnel.hpp" #include "com/sun/star/container/XChild.hpp" #include "com/sun/star/ui/dialogs/XFilePicker.hpp" #include "com/sun/star/ui/dialogs/XFilterManager.hpp" @@ -144,20 +143,6 @@ DialogImpl::~DialogImpl() pParent = VCLUnoHelper::GetWindow(xParent); ::rtl::Reference<DialogImpl> that( new DialogImpl( pParent, xContext ) ); - // XUnoTunnel: hack to set application solar mutex from within gui - // xxx todo: remove when PL has inserted res mgr mutex in tools: - Reference<lang::XUnoTunnel> xUnoTunnel( that->m_xPkgMgrFac, UNO_QUERY ); - if (xUnoTunnel.is()) - { - char const ar [] = "ResMgrMutexPointer"; - ::vos::IMutex ** ppmutex = reinterpret_cast< ::vos::IMutex ** >( - xUnoTunnel->getSomething( - Sequence<sal_Int8>( reinterpret_cast<sal_Int8 const *>(ar), - ARLEN(ar) - 1 ) ) ); - if (ppmutex != 0) - *ppmutex = &Application::GetSolarMutex(); - } - // xxx todo: set icon: // that->SetIcon( ICON_PACKAGE_MANAGER ); @@ -166,8 +151,7 @@ DialogImpl::~DialogImpl() new FixedText( that.get(), getResId(RID_FT_PACKAGES) ) ); // selection box: header bar + treelistbox: - that->m_selectionBox.reset( - new Control( that.get(), WB_BORDER | WB_TABSTOP ) ); + that->m_selectionBox.reset( new SelectionBoxControl( that.get() ) ); that->m_treelb.reset( new TreeListBoxImpl( that->m_selectionBox.get(), that.get() ) ); that->m_headerBar.reset( @@ -331,9 +315,9 @@ DialogImpl::~DialogImpl() that->m_headerBar->Show(); that->m_treelb->Show(); that->m_bottomLine->Show(); - that->m_treelb->GrabFocus(); // default selection: + that->m_treelb->GrabFocus(); SvLBoxEntry * defEntry = that->m_treelb->GetEntry( defaultView.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM("shared") ) ? 1 : 0 ); @@ -516,7 +500,7 @@ void DialogImpl::updateButtonStates( m_disableButton->Enable( bDisable ); m_enableButton->Enable( bEnable ); m_exportButton->Enable( bExport ); - SvLBoxEntry * currEntry = m_treelb->GetCurEntry(); + SvLBoxEntry * currEntry = m_treelb->getCurrentSingleSelectedEntry(); m_addButton->Enable( allowModification && (currEntry != 0 && @@ -527,7 +511,7 @@ void DialogImpl::updateButtonStates( //______________________________________________________________________________ Sequence< Reference<deployment::XPackage> > -DialogImpl::TreeListBoxImpl::getSelectedPackages( bool onlyFirstLevel ) +DialogImpl::TreeListBoxImpl::getSelectedPackages( bool onlyFirstLevel ) const { ::std::vector< Reference<deployment::XPackage> > ret; @@ -559,7 +543,8 @@ struct StrAllFiles : public rtl::StaticWithInit<const OUString, StrAllFiles> { void DialogImpl::clickAdd( USHORT ) { OSL_ASSERT( m_treelb->getSelectedPackages().getLength() == 0 ); - OUString context( m_treelb->getContext(m_treelb->GetCurEntry()) ); + OUString context( m_treelb->getContext( + m_treelb->getCurrentSingleSelectedEntry() ) ); OSL_ASSERT( context.getLength() > 0 ); if (context.getLength() == 0) return; @@ -912,7 +897,6 @@ namespace { struct DeploymentGuiResMgr : public rtl::StaticWithInit< ResMgr *, DeploymentGuiResMgr > { ResMgr * operator () () { - const ::vos::OGuard guard( Application::GetSolarMutex() ); return ResMgr::CreateResMgr( "deploymentgui" LIBRARY_SOLARUPD() ); } }; |