Kaydet (Commit) f5a6989d authored tarafından Oliver Bolte's avatar Oliver Bolte

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
üst 3cc9dfd3
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: zoomctrl.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#ifndef _SFXDISPATCH_HXX //autogen #ifndef _SFXDISPATCH_HXX //autogen
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
#endif #endif
#include <tools/urlobj.hxx>
#pragma hdrstop #pragma hdrstop
#include "dialogs.hrc" #include "dialogs.hrc"
...@@ -147,16 +148,13 @@ void ZoomPopup_Impl::Select() ...@@ -147,16 +148,13 @@ void ZoomPopup_Impl::Select()
// class SvxZoomStatusBarControl ------------------------------------------ // class SvxZoomStatusBarControl ------------------------------------------
SvxZoomStatusBarControl::SvxZoomStatusBarControl( USHORT nId, SvxZoomStatusBarControl::SvxZoomStatusBarControl( USHORT nSlotId,
StatusBar& rStb, USHORT nId,
SfxBindings& rBind ) : StatusBar& rStb ) :
SfxStatusBarControl( nId, rStb, rBind ),
SfxStatusBarControl( nSlotId, nId, rStb ),
nZoom( 100 ), nZoom( 100 ),
nValueSet( SVX_ZOOM_ENABLE_ALL ) nValueSet( SVX_ZOOM_ENABLE_ALL )
{ {
} }
...@@ -239,7 +237,15 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt ) ...@@ -239,7 +237,15 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt )
else if ( ZOOM_WHOLE_PAGE == nId ) else if ( ZOOM_WHOLE_PAGE == nId )
aZoom.SetType( SVX_ZOOM_WHOLEPAGE ); 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(); ReleaseMouse();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment