summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls/insctrl.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-09 14:40:12 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-09 14:40:12 +0000
commit70251d4787eb4c7a0ee13efe434376a9e6ac1812 (patch)
treec8bda263e64b50adfd6d60798a6e1448efb385d6 /svx/source/stbctrls/insctrl.cxx
parent2d76cd2dba659fcefc6e83b4c6435a4da3230a67 (diff)
INTEGRATION: CWS toolbars2 (1.1.1.1.934); FILE MERGED
2004/08/18 13:47:14 cd 1.1.1.1.934.2: #i32219# Adapt status bar controller to new base class 2004/08/11 10:45:04 cd 1.1.1.1.934.1: #i32219# Adapt statusbar controller to new base class
Diffstat (limited to 'svx/source/stbctrls/insctrl.cxx')
-rw-r--r--svx/source/stbctrls/insctrl.cxx25
1 files changed, 16 insertions, 9 deletions
diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx
index 05b25fcc0991..34c55f038e72 100644
--- a/svx/source/stbctrls/insctrl.cxx
+++ b/svx/source/stbctrls/insctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: insctrl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:01:23 $
+ * last change: $Author: obo $ $Date: 2004-09-09 15:40:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,14 +91,14 @@ SFX_IMPL_STATUSBAR_CONTROL(SvxInsertStatusBarControl, SfxBoolItem);
// class SvxInsertStatusBarControl ---------------------------------------
-SvxInsertStatusBarControl::SvxInsertStatusBarControl( USHORT nId,
- StatusBar& rStb,
- SfxBindings& rBind ) :
-
- SfxStatusBarControl( nId, rStb, rBind ),
+SvxInsertStatusBarControl::SvxInsertStatusBarControl( USHORT nSlotId,
+ USHORT nId,
+ StatusBar& rStb ) :
+ SfxStatusBarControl( nSlotId, nId, rStb ),
bInsert( TRUE )
{
+ rStb.SetHelpId( nId, nSlotId );
}
// -----------------------------------------------------------------------
@@ -130,8 +130,15 @@ void SvxInsertStatusBarControl::Click()
if ( !GetStatusBar().GetItemText( GetId() ).Len() )
return;
bInsert = !bInsert;
- SfxBoolItem aIns( GetId(), bInsert );
- GetBindings().GetDispatcher()->Execute( GetId(), SFX_CALLMODE_RECORD, &aIns, 0L );
+ SfxBoolItem aIns( GetSlotId(), bInsert );
+
+ ::com::sun::star::uno::Any a;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 );
+ aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InsertMode" ));
+ aIns.QueryValue( a );
+ aArgs[0].Value = a;
+
+ execute( aArgs );
}
// -----------------------------------------------------------------------