summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/tmplctrl.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-09 14:36:25 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-09 14:36:25 +0000
commitac1648c49f4462c68a64091e34b3d7943adea618 (patch)
tree24de7df4b12db1476ab487408e1a8bcebbce2f6e /sw/source/ui/utlui/tmplctrl.cxx
parent12b863fef18bb3fa1c3792192bd749342a8e8f68 (diff)
INTEGRATION: CWS toolbars2 (1.3.628); FILE MERGED
2004/08/11 10:47:33 cd 1.3.628.1: #i32219# Adapt statusbar controller to new base class
Diffstat (limited to 'sw/source/ui/utlui/tmplctrl.cxx')
-rw-r--r--sw/source/ui/utlui/tmplctrl.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sw/source/ui/utlui/tmplctrl.cxx b/sw/source/ui/utlui/tmplctrl.cxx
index 799d92539bc8..931af044eebc 100644
--- a/sw/source/ui/utlui/tmplctrl.cxx
+++ b/sw/source/ui/utlui/tmplctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tmplctrl.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2003-04-17 15:57:04 $
+ * last change: $Author: obo $ $Date: 2004-09-09 15:36:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,10 +124,10 @@ void TemplatePopup_Impl::Select()
// class SvxZoomStatusBarControl ------------------------------------------
-SwTemplateControl::SwTemplateControl( USHORT nId,
- StatusBar& rStb,
- SfxBindings& rBind ) :
- SfxStatusBarControl( nId, rStb, rBind )
+SwTemplateControl::SwTemplateControl( USHORT nSlotId,
+ USHORT nId,
+ StatusBar& rStb ) :
+ SfxStatusBarControl( nSlotId, nId, rStb )
{
}
@@ -139,10 +139,9 @@ SwTemplateControl::~SwTemplateControl()
// -----------------------------------------------------------------------
-void SwTemplateControl::StateChanged( const SfxPoolItem* pState )
+void SwTemplateControl::StateChanged(
+ USHORT nSID, SfxItemState eState, const SfxPoolItem* pState )
{
- SfxItemState eState = GetItemState(pState);
-
if( eState != SFX_ITEM_AVAILABLE || pState->ISA( SfxVoidItem ) )
GetStatusBar().SetItemText( GetId(), String() );
else if ( pState->ISA( SfxStringItem ) )