INTEGRATION: CWS toolbars2 (1.3.332); FILE MERGED

2004/08/18 13:47:15 cd 1.3.332.2: #i32219# Adapt status bar controller to new base class
2004/08/11 10:45:05 cd 1.3.332.1: #i32219# Adapt statusbar controller to new base class
This commit is contained in:
Oliver Bolte 2004-09-09 14:41:41 +00:00
parent 3cc9dfd3c2
commit f5a6989d79

View file

@ -2,9 +2,9 @@
*
* $RCSfile: zoomctrl.cxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2004-02-03 19:41:02 $
* last change: $Author: obo $ $Date: 2004-09-09 15:41:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -71,6 +71,7 @@
#ifndef _SFXDISPATCH_HXX //autogen
#include <sfx2/dispatch.hxx>
#endif
#include <tools/urlobj.hxx>
#pragma hdrstop
#include "dialogs.hrc"
@ -147,16 +148,13 @@ void ZoomPopup_Impl::Select()
// class SvxZoomStatusBarControl ------------------------------------------
SvxZoomStatusBarControl::SvxZoomStatusBarControl( USHORT nId,
StatusBar& rStb,
SfxBindings& rBind ) :
SfxStatusBarControl( nId, rStb, rBind ),
SvxZoomStatusBarControl::SvxZoomStatusBarControl( USHORT nSlotId,
USHORT nId,
StatusBar& rStb ) :
SfxStatusBarControl( nSlotId, nId, rStb ),
nZoom( 100 ),
nValueSet( SVX_ZOOM_ENABLE_ALL )
{
}
@ -239,7 +237,15 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt )
else if ( ZOOM_WHOLE_PAGE == nId )
aZoom.SetType( SVX_ZOOM_WHOLEPAGE );
GetBindings().GetDispatcher()->Execute( GetId(), SFX_CALLMODE_RECORD, &aZoom, 0L );
::com::sun::star::uno::Any a;
INetURLObject aObj( m_aCommandURL );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = aObj.GetURLPath();
aZoom.QueryValue( a );
aArgs[0].Value = a;
execute( aArgs );
}
ReleaseMouse();
}