LibreOffice Module cui (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GraphicFilterSolarize Class Reference

#include <cuigrfflt.hxx>

Inheritance diagram for GraphicFilterSolarize:
Collaboration diagram for GraphicFilterSolarize:

Public Member Functions

 GraphicFilterSolarize (weld::Window *pParent, const Graphic &rGraphic, sal_uInt8 nGreyThreshold, bool bInvert)
virtual Graphic GetFilteredGraphic (const Graphic &rGraphic, double fScaleX, double fScaleY) override
bool IsInvert () const
- Public Member Functions inherited from GraphicFilterDialog
 GraphicFilterDialog (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const Graphic &rGraphic)
virtual Graphic GetFilteredGraphic (const Graphic &rGraphic, double fScaleX, double fScaleY)=0
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
virtual DialoggetDialog () override
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
const DialoggetConstDialog () const
virtual short run ()
void set_title (const OUString &rTitle)
OUString get_title () const
void set_help_id (const OUString &rHelpId)
OUString get_help_id () const
void response (int nResponse)
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE

Private Member Functions

 DECL_LINK (CheckBoxModifyHdl, weld::Toggleable &, void)
 DECL_LINK (EditModifyHdl, weld::MetricSpinButton &, void)

Private Attributes

std::unique_ptr< weld::MetricSpinButtonmxMtrThreshold
std::unique_ptr< weld::CheckButtonmxCbxInvert

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
- Protected Member Functions inherited from GraphicFilterDialog
const Link< LinkParamNone *, void > & GetModifyHdl () const
const SizeGetGraphicSizePixel () const
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
std::shared_ptr< weld::Dialogm_xDialog

Detailed Description

Definition at line 115 of file cuigrfflt.hxx.

Constructor & Destructor Documentation

◆ GraphicFilterSolarize()

GraphicFilterSolarize::GraphicFilterSolarize ( weld::Window pParent,
const Graphic rGraphic,
sal_uInt8  nGreyThreshold,
bool  bInvert 

Definition at line 267 of file cuigrfflt.cxx.

References FRound(), LINK, mxCbxInvert, mxMtrThreshold, and PERCENT().

Member Function Documentation

◆ DECL_LINK() [1/2]

GraphicFilterSolarize::DECL_LINK ( CheckBoxModifyHdl  ,
weld::Toggleable ,

◆ DECL_LINK() [2/2]

GraphicFilterSolarize::DECL_LINK ( EditModifyHdl  ,
weld::MetricSpinButton ,

◆ GetFilteredGraphic()

Graphic GraphicFilterSolarize::GetFilteredGraphic ( const Graphic rGraphic,
double  fScaleX,
double  fScaleY 

◆ IsInvert()

bool GraphicFilterSolarize::IsInvert ( ) const

Definition at line 127 of file cuigrfflt.hxx.

References mxCbxInvert.

Referenced by GetFilteredGraphic().

Member Data Documentation

◆ mxCbxInvert

std::unique_ptr<weld::CheckButton> GraphicFilterSolarize::mxCbxInvert

Definition at line 119 of file cuigrfflt.hxx.

Referenced by GraphicFilterSolarize(), and IsInvert().

◆ mxMtrThreshold

std::unique_ptr<weld::MetricSpinButton> GraphicFilterSolarize::mxMtrThreshold

Definition at line 118 of file cuigrfflt.hxx.

Referenced by GetFilteredGraphic(), and GraphicFilterSolarize().

The documentation for this class was generated from the following files: