diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-11 13:14:32 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-11 13:14:32 +0000 |
commit | 637b32bbfd7e941c36e1428eb8137b745f3f4802 (patch) | |
tree | d47ba8ea1b4a3e0f9e853fe62b5feb31f258ae20 /framework | |
parent | b7039686a74c9a2a26992fa7c18c52301a85e3df (diff) |
INTEGRATION: CWS c05v001 (1.3.118); FILE MERGED
2005/08/15 14:04:37 ssa 1.3.118.1: #124966# synchronous update for toolboxes that will open in popup mode
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uifactory/toolboxfactory.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/framework/source/uifactory/toolboxfactory.cxx b/framework/source/uifactory/toolboxfactory.cxx index dac77cdae277..f0d4407d5a68 100644 --- a/framework/source/uifactory/toolboxfactory.cxx +++ b/framework/source/uifactory/toolboxfactory.cxx @@ -4,9 +4,9 @@ * * $RCSfile: toolboxfactory.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-09 02:01:36 $ + * last change: $Author: kz $ $Date: 2005-11-11 14:14:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -158,17 +158,20 @@ throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::l rtl::OUString aResourceURL( ResourceURL ); sal_Bool bPersistent( sal_True ); sal_Bool bMenuOnly( sal_False ); + sal_Bool bPopupMode( sal_False ); for ( sal_Int32 n = 0; n < Args.getLength(); n++ ) { if ( Args[n].Name.equalsAscii( "ConfigurationSource" )) Args[n].Value >>= xConfigSource; - else if ( Args[n].Name.equalsAscii( "Frame" )) + else if ( Args[n].Name.equalsAsciiL( "Frame", 5 )) Args[n].Value >>= xFrame; - else if ( Args[n].Name.equalsAscii( "ResourceURL" )) + else if ( Args[n].Name.equalsAsciiL( "ResourceURL", 11 )) Args[n].Value >>= aResourceURL; - else if ( Args[n].Name.equalsAscii( "Persistent" )) + else if ( Args[n].Name.equalsAsciiL( "Persistent", 10 )) Args[n].Value >>= bPersistent; + else if ( Args[n].Name.equalsAsciiL( "PopupMode", 9 )) + Args[n].Value >>= bPopupMode; } Reference< XUIConfigurationManager > xCfgMgr; @@ -213,7 +216,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::l } PropertyValue aPropValue; - Sequence< Any > aPropSeq( 4 ); + Sequence< Any > aPropSeq( 5 ); aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Frame" )); aPropValue.Value <<= xFrame; aPropSeq[0] <<= aPropValue; @@ -226,6 +229,9 @@ throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::l aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Persistent" )); aPropValue.Value <<= bPersistent; aPropSeq[3] <<= aPropValue; + aPropValue.Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PopupMode" )); + aPropValue.Value <<= bPopupMode; + aPropSeq[4] <<= aPropValue; vos::OGuard aGuard( Application::GetSolarMutex() ); ToolBarWrapper* pToolBarWrapper = new ToolBarWrapper( m_xServiceManager ); |