summaryrefslogtreecommitdiff
path: root/basctl/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-07-06 11:18:39 +0000
committerOliver Bolte <obo@openoffice.org>2004-07-06 11:18:39 +0000
commit397ddcd45d71f26e2759f04a3bab4b530adb2347 (patch)
tree307323c42a9006bfee6c7c0e69946ef364ab2968 /basctl/source
parent0a9386b4316b625f13c186e3df3d3f4671d9b74f (diff)
INTEGRATION: CWS docking1 (1.3.40); FILE MERGED
2004/05/06 12:00:15 cd 1.3.40.2: #i26252# Fixed several problems with non-defined enum-slots and added subtoolbar creation 2004/04/25 05:42:50 cd 1.3.40.1: #i26252# Transition of toolbar controllers
Diffstat (limited to 'basctl/source')
-rw-r--r--basctl/source/basicide/basicbox.cxx36
1 files changed, 29 insertions, 7 deletions
diff --git a/basctl/source/basicide/basicbox.cxx b/basctl/source/basicide/basicbox.cxx
index 79f32cf46c45..149cfc62e10b 100644
--- a/basctl/source/basicide/basicbox.cxx
+++ b/basctl/source/basicide/basicbox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basicbox.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 17:10:59 $
+ * last change: $Author: obo $ $Date: 2004-07-06 12:18:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,10 +74,19 @@
#include <iderdll.hxx>
#include <bastypes.hxx>
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
+#include <com/sun/star/beans/PropertyValue.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDER_HPP_
+#include <com/sun/star/frame/XDispatchProvider.hpp>
+#endif
+
+using namespace ::com::sun::star;
+
SFX_IMPL_TOOLBOX_CONTROL( LibBoxControl, SfxStringItem );
-LibBoxControl::LibBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind )
- : SfxToolBoxControl( nId, rTbx, rBind )
+LibBoxControl::LibBoxControl( USHORT nSlotId, USHORT nId, ToolBox& rTbx )
+ : SfxToolBoxControl( nSlotId, nId, rTbx )
{
}
@@ -114,15 +123,16 @@ void LibBoxControl::StateChanged( USHORT nSID, SfxItemState eState, const SfxPoo
Window* LibBoxControl::CreateItemWindow( Window *pParent )
{
- return new BasicLibBox( pParent );
+ return new BasicLibBox( pParent, m_xFrame );
}
-BasicLibBox::BasicLibBox( Window* pParent ) :
- ListBox( pParent, WinBits( WB_BORDER | WB_DROPDOWN ) )
+BasicLibBox::BasicLibBox( Window* pParent, const uno::Reference< frame::XFrame >& rFrame ) :
+ ListBox( pParent, WinBits( WB_BORDER | WB_DROPDOWN ) ),
+ m_xFrame( rFrame )
{
FillBox();
bIgnoreSelect = TRUE; // Select von 0 noch nicht weiterleiten
@@ -313,6 +323,17 @@ void BasicLibBox::NotifyIDE()
aLib = GetSelectEntry();
SfxStringItem aLibName( SID_BASICIDE_ARG_LIBNAME, aLib );
+
+ uno::Any a;
+ uno::Sequence< beans::PropertyValue > aArgs( 1 );
+ aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LibSelect" ));
+ aLibName.QueryValue( a );
+ aArgs[0].Value = a;
+ SfxToolBoxControl::Dispatch(
+ uno::Reference< frame::XDispatchProvider >( m_xFrame->getController(), uno::UNO_QUERY ),
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:LibSelect" )),
+ aArgs );
+/*
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
@@ -321,6 +342,7 @@ void BasicLibBox::NotifyIDE()
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED,
SFX_CALLMODE_SYNCHRON, &aLibName, 0L );
}
+*/
ReleaseFocus();
}