From ee41193f3e12ea55237f7681e4b53162a0d421d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Sat, 16 Jun 2012 00:05:00 +0200 Subject: Dialog for Smooth filter Added dialog for smooth (gaussian blur) filter which now accepts a parameter for setting the strenth of smoothing (bluring). Change-Id: Ida6709b060cb5429a63af1994493e716fd0bfebb --- cui/source/factory/dlgfact.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'cui/source/factory/dlgfact.cxx') diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index bcb26fdf2715..e65d314a5b6e 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -1574,18 +1574,23 @@ AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPos return 0; } +AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSmooth ( Window* pParent, + const Graphic& rGraphic, double nRadius, sal_uInt32) +{ + GraphicFilterDialog* pDlg = new GraphicFilterSmooth( pParent, rGraphic, nRadius ); + return new AbstractGraphicFilterDialog_Impl( pDlg ); +} + AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSolarize - const Graphic& rGraphic, - sal_uInt8 nGreyThreshold, sal_Bool bInvert, sal_uInt32 ) + const Graphic& rGraphic, sal_uInt8 nGreyThreshold, sal_Bool bInvert, sal_uInt32 ) { GraphicFilterDialog* pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert ); return new AbstractGraphicFilterDialog_Impl( pDlg ); } AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic - const Graphic& rGraphic, - sal_uInt16 nTileWidth, sal_uInt16 nTileHeight, sal_Bool bEnhanceEdges, - sal_uInt32 nResId) + const Graphic& rGraphic, sal_uInt16 nTileWidth, sal_uInt16 nTileHeight, + sal_Bool bEnhanceEdges, sal_uInt32 nResId) { GraphicFilterDialog* pDlg=NULL; switch ( nResId ) -- cgit v1.2.1