diff options
Diffstat (limited to 'basctl/source/basicide/tbxctl.cxx')
-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); } |