summaryrefslogtreecommitdiff
path: root/svx/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-26 22:26:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:05 +0100
commit012072ebd70a2180918864818f522944e46adf07 (patch)
treeba33e6c949b52aa7f61ef410f809c817fea5c328 /svx/workben
parenteb71f3d572b6e1c24a072bd2fcd9c29e08113d32 (diff)
valgrind: various unused code
Diffstat (limited to 'svx/workben')
-rw-r--r--svx/workben/edittest.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/svx/workben/edittest.cxx b/svx/workben/edittest.cxx
index 966f56b594fa..fc0da685e23a 100644
--- a/svx/workben/edittest.cxx
+++ b/svx/workben/edittest.cxx
@@ -823,36 +823,6 @@ IMPL_LINK( EditMainWindow, TBSelect, ToolBox *, p )
break;
case TB_FONT2: pNewItem = new SvxFontItem( FAMILY_SWISS, String( RTL_CONSTASCII_USTRINGPARAM( "Helv" ) ), String(), PITCH_DONTKNOW, RTL_TEXTENCODING_MS_1252, EE_CHAR_FONTINFO );
break;
-/*
- case TB_FONT:
- {
- FontDialog* pDlg = new FontDialog( this, WB_SVLOOK );
- pDlg->SetPrinter( pPrinter );
- Font aFont = pEditEngine->CreateFontFromItemSet( pEditView->GetAttribs() );
- MapMode aPntMode( MAP_POINT );
- MapMode aCurrent( aViewWin.GetMapMode() );
- Size aSz( aViewWin.LogicToLogic( aFont.GetSize(), &aCurrent, &aPntMode ) );
- aSz.Width() *= 10;
- aSz.Height() *= 10;
- aFont.SetSize( aSz );
- pDlg->SetSelectFont( aFont );
- if ( pDlg->Execute() )
- {
- Font aNewFont( pDlg->GetSelectFont() );
- aSz = aViewWin.LogicToLogic( aNewFont.GetSize(), &aPntMode, &aCurrent );
- aSz.Width() /= 10;
- aSz.Height() /= 10;
- aNewFont.SetSize( aSz );
-
- SfxItemSet aSet( pEditEngine->GetEmptyItemSet() );
-
- pEditEngine->SetFontInfoInItemSet( aSet, aNewFont );
- pEditView->SetAttribs( aSet );
- }
- delete pDlg;
- }
- break;
-*/
case TB_BOLD: if ( bChecked )
pNewItem = new SvxWeightItem( WEIGHT_NORMAL, EE_CHAR_WEIGHT);
else