summaryrefslogtreecommitdiff
path: root/cui/source/factory/dlgfact.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-06-16 00:05:00 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-06-16 00:39:08 +0200
commitee41193f3e12ea55237f7681e4b53162a0d421d2 (patch)
treef02ac0b7a6fb8c64df55491152af8eeb4c371c09 /cui/source/factory/dlgfact.cxx
parentd7036ac1c8f620eae2b4f43cdf5840b4c8a584c6 (diff)
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
Diffstat (limited to 'cui/source/factory/dlgfact.cxx')
-rw-r--r--cui/source/factory/dlgfact.cxx15
1 files changed, 10 insertions, 5 deletions
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 )