diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-05-01 07:19:57 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-05-03 01:32:08 +0900 |
commit | e8abc2e2467aa7da200b9ed02db74cb0651b9306 (patch) | |
tree | 45b67e2198d1afbaeeedaf1ad7010e5fdd3fa068 /svx/source/tbxctrls | |
parent | c559bda8ea865d816cdc632c4de59f129ec46250 (diff) |
nuke dead code
Change-Id: I1884cfcbe7276d902ba3f8525ffe39c7f33b729e
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 5c0e657aaec6..10e1662f63b8 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -133,21 +133,6 @@ void FontWorkGalleryDialog::initfavorites(sal_uInt16 nThemeId, std::vector< Bitm if( GalleryExplorer::GetSdrObj( nThemeId, nModelPos, pModel, pThumb ) ) { -/* - VirtualDevice aVDev; - Size aRenderSize( aThumbSize.Width() * 4, aThumbSize.Height() * 4 ); - aVDev.SetOutputSizePixel( aRenderSize ); - - if( GalleryExplorer::DrawCentered( &aVDev, *pModel ) ) - { - aThumb = aVDev.GetBitmap( Point(), aVDev.GetOutputSizePixel() ); - - Size aMS( 4, 4 ); - BmpFilterParam aParam( aMS ); - aThumb.Filter( BMP_FILTER_MOSAIC, &aParam ); - aThumb.Scale( aThumbSize ); - } -*/ } rFavorites.push_back( pThumb ); @@ -218,15 +203,6 @@ void FontWorkGalleryDialog::insertSelectedFontwork() { Rectangle aObjRect( pNewObject->GetLogicRect() ); Rectangle aVisArea = pOutDev->PixelToLogic(Rectangle(Point(0,0), pOutDev->GetOutputSizePixel())); -/* - sal_Int32 nObjHeight = aObjRect.GetHeight(); - VirtualDevice aVirDev( 1 ); // calculating the optimal textwidth - Font aFont; - aFont.SetHeight( nObjHeight ); - aVirDev.SetMapMode( MAP_100TH_MM ); - aVirDev.SetFont( aFont ); - aObjRect.SetSize( Size( aVirDev.GetTextWidth( maStrClickToAddText ), nObjHeight ) ); -*/ Point aPagePos = aVisArea.Center(); aPagePos.X() -= aObjRect.GetWidth() / 2; aPagePos.Y() -= aObjRect.GetHeight() / 2; |