diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-31 16:37:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-31 21:21:38 +0000 |
commit | c8cae05ee8cfa0742865224b31d344317ceb996f (patch) | |
tree | ba53827d2df5b6616bd6ee29d44c54ec4b7db7d8 /cui/source/inc | |
parent | e70fb08305fdb3ad54c17f979c64996a7f043dcd (diff) |
convert solarize dialog to .ui
Change-Id: I1aab18d8e0aa12d39584266a6657436ea100b521
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/cuigrfflt.hxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/cui/source/inc/cuigrfflt.hxx b/cui/source/inc/cuigrfflt.hxx index edd3143cc44d..79c836b78bf7 100644 --- a/cui/source/inc/cuigrfflt.hxx +++ b/cui/source/inc/cuigrfflt.hxx @@ -185,23 +185,20 @@ public: // - GraphicFilterSolarize - // ------------------------- -class GraphicFilterSolarize : public oldGraphicFilterDialog +class GraphicFilterSolarize : public GraphicFilterDialog { private: - - FixedText maFtThreshold; - MetricField maMtrThreshold; - CheckBox maCbxInvert; + MetricField* mpMtrThreshold; + CheckBox* mpCbxInvert; public: - GraphicFilterSolarize( Window* pParent, const Graphic& rGraphic, + GraphicFilterSolarize( Window* pParent, const Graphic& rGraphic, sal_uInt8 nGreyThreshold, sal_Bool bInvert ); - ~GraphicFilterSolarize(); - virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ); - sal_uInt8 GetGreyThreshold() const { return( (sal_uInt8) FRound( maMtrThreshold.GetValue() * 2.55 ) ); } - sal_Bool IsInvert() const { return maCbxInvert.IsChecked(); } + virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ); + sal_uInt8 GetGreyThreshold() const { return( (sal_uInt8) FRound( mpMtrThreshold->GetValue() * 2.55 ) ); } + sal_Bool IsInvert() const { return mpCbxInvert->IsChecked(); } }; // ---------------------- |