diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-11 13:14:19 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-11 13:14:19 +0000 |
commit | b7039686a74c9a2a26992fa7c18c52301a85e3df (patch) | |
tree | e5b71ef8c218c49ed3132f5bac5ca87c824e97de /framework | |
parent | 2b680e4114c3a57dfdd5f0821915b250c6fee0aa (diff) |
INTEGRATION: CWS c05v001 (1.8.90); FILE MERGED
2005/08/15 14:04:36 ssa 1.8.90.1: #124966# synchronous update for toolboxes that will open in popup mode
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/toolbarwrapper.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/framework/source/uielement/toolbarwrapper.cxx b/framework/source/uielement/toolbarwrapper.cxx index b5291f7d96ff..e283242fa546 100644 --- a/framework/source/uielement/toolbarwrapper.cxx +++ b/framework/source/uielement/toolbarwrapper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: toolbarwrapper.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2005-09-09 01:59:20 $ + * last change: $Author: kz $ $Date: 2005-11-11 14:14:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -201,6 +201,20 @@ void SAL_CALL ToolBarWrapper::initialize( const Sequence< Any >& aArguments ) th { UIConfigElementWrapperBase::initialize( aArguments ); + sal_Bool bPopupMode( sal_False ); + for ( sal_Int32 i = 0; i < aArguments.getLength(); i++ ) + { + PropertyValue aPropValue; + if ( aArguments[i] >>= aPropValue ) + { + if ( aPropValue.Name.equalsAsciiL( "PopupMode", 9 )) + { + aPropValue.Value >>= bPopupMode; + break; + } + } + } + Reference< XFrame > xFrame( m_xWeakFrame ); if ( xFrame.is() && m_xConfigSource.is() ) { @@ -219,6 +233,7 @@ void SAL_CALL ToolBarWrapper::initialize( const Sequence< Any >& aArguments ) th pToolBarManager = new ToolBarManager( m_xServiceManager, xFrame, m_aResourceURL, pToolBar ); pToolBar->SetToolBarManager( pToolBarManager ); m_xToolBarManager = Reference< XComponent >( static_cast< OWeakObject *>( pToolBarManager ), UNO_QUERY ); + pToolBar->WillUsePopupMode( bPopupMode ); } } |