diff options
author | Anders Jonsson <anders.jonsson@norsjonet.se> | 2011-01-08 13:32:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-09 20:40:01 +0000 |
commit | fd8e6b21a5d52399abbeae0af84943c72dcde5de (patch) | |
tree | e8256f6119595e9b20c54d88b60e400c54667c0d /basctl | |
parent | 8051a883370d3fd1df8c35d233a88e72a6e08f1f (diff) |
Remove commented code
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/tbxctl.cxx | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/basctl/source/basicide/tbxctl.cxx b/basctl/source/basicide/tbxctl.cxx index 14ad71b2b93a..fab909754834 100644 --- a/basctl/source/basicide/tbxctl.cxx +++ b/basctl/source/basicide/tbxctl.cxx @@ -52,68 +52,6 @@ SFX_IMPL_TOOLBOX_CONTROL( TbxControls, SfxAllEnumItem ) /************************************************************************* |* -|* WorkWindow Alignment -|* -\************************************************************************/ -/* -IMPL_LINK( PopupWindowTbx, SelectHdl, void*, EMPTYARG ) -{ - if ( IsInPopupMode() ) - EndPopupMode(); - - aSelectLink.Call( &aTbx.GetToolBox() ); - - return 0; -} - -PopupWindowTbx::PopupWindowTbx( USHORT nId, WindowAlign eAlign, - ResId aRIdWin, ResId aRIdTbx, - SfxBindings& rBind ) : - SfxPopupWindow ( nId, aRIdWin, rBind ), - aTbx ( this, GetBindings(), aRIdTbx ) -{ - FreeResource(); - aTbx.Initialize(); - - ToolBox& rBox = aTbx.GetToolBox(); - rBox.SetAlign( eAlign ); - if( eAlign == WINDOWALIGN_LEFT ) - SetText( String() ); - - Size aSize = aTbx.CalcWindowSizePixel(); - rBox.SetSizePixel( aSize ); - SetOutputSizePixel( aSize ); - aSelectLink = rBox.GetSelectHdl(); - rBox.SetSelectHdl( LINK( this, PopupWindowTbx, SelectHdl ) ); -} - -SfxPopupWindow* PopupWindowTbx::Clone() const -{ - return new PopupWindowTbx( GetId(), aTbx.GetAlign(), - IDEResId( RID_TBXCONTROLS ), - IDEResId( RID_TOOLBOX ), - (SfxBindings&) GetBindings() ); -} - -void PopupWindowTbx::PopupModeEnd() -{ - aTbx.GetToolBox().EndSelection(); - SfxPopupWindow::PopupModeEnd(); -} - -void PopupWindowTbx::Update() -{ - ToolBox *pBox = &aTbx.GetToolBox(); - aTbx.Activate( pBox ); - aTbx.Deactivate( pBox ); -} - -PopupWindowTbx::~PopupWindowTbx() -{ -} -*/ -/************************************************************************* -|* |* Klasse fuer Toolbox |* \************************************************************************/ @@ -219,23 +157,6 @@ SfxPopupWindow* TbxControls::CreatePopupWindow() if ( GetSlotId() == SID_CHOOSE_CONTROLS ) createAndPositionSubToolBar( aSubToolBarResName ); -/* - if (GetId() == SID_CHOOSE_CONTROLS) - { - PopupWindowTbx *pWin = - new PopupWindowTbx( GetId(), - GetToolBox().IsHorizontal() ? - WINDOWALIGN_LEFT : WINDOWALIGN_TOP, - IDEResId( RID_TBXCONTROLS ), - IDEResId( RID_TOOLBOX ), - GetBindings() ); - pWin->StartPopupMode(&GetToolBox(), TRUE); - pWin->Update(); - pWin->StartSelection(); - pWin->Show(); - return(pWin); - } -*/ return(0); } |