LibreOffice Module cui (master) 1
|
#include <cuigrfflt.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::MetricSpinButton > | mxMtrThreshold |
std::unique_ptr< weld::CheckButton > | mxCbxInvert |
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 Size & | GetGraphicSizePixel () const |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 115 of file cuigrfflt.hxx.
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().
|
private |
|
private |
|
overridevirtual |
Implements GraphicFilterDialog.
Definition at line 290 of file cuigrfflt.cxx.
References BitmapFilter::Filter(), FRound(), Graphic::GetAnimation(), Graphic::GetBitmapEx(), Animation::Invert(), BitmapEx::Invert(), Graphic::IsAnimated(), IsInvert(), and mxMtrThreshold.
|
inline |
Definition at line 127 of file cuigrfflt.hxx.
References mxCbxInvert.
Referenced by GetFilteredGraphic().
|
private |
Definition at line 119 of file cuigrfflt.hxx.
Referenced by GraphicFilterSolarize(), and IsInvert().
|
private |
Definition at line 118 of file cuigrfflt.hxx.
Referenced by GetFilteredGraphic(), and GraphicFilterSolarize().