diff options
author | Anders Jonsson <anders.jonsson@norsjonet.se> | 2010-12-22 07:50:53 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2010-12-22 11:28:21 +0100 |
commit | d6f32c0efd417bd56876b96ba9bcf22a64491417 (patch) | |
tree | 3b2597dfa499aa055f2b76cf60360a00ae8a1fcc /sd/source/ui/app | |
parent | 8dda77692a0a5f78cac1bca5e445f3cc2e616867 (diff) |
Remove unused code
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r-- | sd/source/ui/app/tbxww.cxx | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/sd/source/ui/app/tbxww.cxx b/sd/source/ui/app/tbxww.cxx index 905c0a242a92..87fea0731a9e 100644 --- a/sd/source/ui/app/tbxww.cxx +++ b/sd/source/ui/app/tbxww.cxx @@ -55,140 +55,6 @@ SFX_IMPL_TOOLBOX_CONTROL( SdTbxControl, TbxImageItem ) /************************************************************************* |* -|* PopUp-Window -|* -\************************************************************************/ -/* -SdPopupWindowTbx::SdPopupWindowTbx( USHORT nId, WindowAlign eAlign, - SdResId aRIdWin, SdResId aRIdTbx, - SfxBindings& rBindings ) : - SfxPopupWindow ( nId, aRIdWin, rBindings ), - aTbx ( this, GetBindings(), aRIdTbx ), - aSdResIdWin ( aRIdWin ), - aSdResIdTbx ( aRIdTbx ), - eTbxAlign ( eAlign ) -{ - aTbx.UseDefault(); - aSelectLink = aTbx.GetToolBox().GetSelectHdl(); - aTbx.GetToolBox().SetSelectHdl( LINK( this, SdPopupWindowTbx, TbxSelectHdl ) ); - - FreeResource(); - - if( ( eAlign == WINDOWALIGN_TOP ) || ( eAlign == WINDOWALIGN_BOTTOM ) ) - { - if ( aSdResIdWin.GetId() != RID_TEXT ) - aTbx.GetToolBox().SetAlign( WINDOWALIGN_LEFT ); - - SetText( String() ); - } - - AdaptToCTL(); -} - - -void SdPopupWindowTbx::AdaptToCTL (void) -{ - Size aSize = aTbx.CalcWindowSizePixel(); - if (aSdResIdWin.GetId() == RID_TEXT) - { - SvtCJKOptions aCJKOptions; - if ( ! aCJKOptions.IsVerticalTextEnabled()) - { - ToolBox& aToolBox = aTbx.GetToolBox(); - - // Iterate over all tool box items and remove those that are - // specific to complex text layout. - USHORT i=0; - while (i < aToolBox.GetItemCount()) - { - USHORT nIndex = aToolBox.GetItemId(i); - switch (nIndex) - { - case 0: // Line break. - case SID_ATTR_CHAR_VERTICAL: - case SID_TEXT_FITTOSIZE_VERTICAL: - case SID_DRAW_CAPTION_VERTICAL: - case SID_DRAW_FONTWORK_VERTICAL: - aToolBox.RemoveItem (i); - break; - - default: - // Leave the item unmodified. Advance to the next one. - i+=1; - } - } - aToolBox.RecalcItems(); - // Why is this necessary? - aToolBox.SetLineCount(1); - USHORT nLineCount = aToolBox.GetLineCount(); - aSize = aToolBox.CalcWindowSizePixel(nLineCount); - } - } - aTbx.SetPosSizePixel( Point(), aSize ); - SetOutputSizePixel( aSize ); -} -*/ - -/*-------------------------------------------------------------------------*/ -/* -SdPopupWindowTbx::~SdPopupWindowTbx() -{ -} -*/ -/*-------------------------------------------------------------------------*/ -/* -SfxPopupWindow* SdPopupWindowTbx::Clone() const -{ - SfxBindings& rBindings = (SfxBindings&)GetBindings(); - - return( new SdPopupWindowTbx( GetId(), eTbxAlign, - aSdResIdWin, aSdResIdTbx, rBindings ) ); - - //return( SfxPopupWindow::Clone() ); -} -*/ -/*-------------------------------------------------------------------------*/ -/* -void SdPopupWindowTbx::Update() -{ - AdaptToCTL(); - - ToolBox *pBox = &aTbx.GetToolBox(); - aTbx.Activate( pBox ); - aTbx.Deactivate( pBox ); -} -*/ -/*-------------------------------------------------------------------------*/ -/* -void SdPopupWindowTbx::PopupModeEnd() -{ - aTbx.GetToolBox().EndSelection(); - - SfxPopupWindow::PopupModeEnd(); -} -*/ -/*-------------------------------------------------------------------------*/ -/* -IMPL_LINK( SdPopupWindowTbx, TbxSelectHdl, ToolBox*, pBox) -{ - if( IsInPopupMode() ) - EndPopupMode(); - - aSelectLink.Call( &aTbx.GetToolBox() ); - - if ( pBox->GetModifier() & KEY_MOD1 ) - { - // #99013# if selected with control key, return focus to current view - Window* pShellWnd = SfxViewShell::Current()->GetWindow(); - if ( pShellWnd ) - pShellWnd->GrabFocus(); - } - - return( 0L ); -} -*/ -/************************************************************************* -|* |* Klasse fuer Toolbox |* \************************************************************************/ |