LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CompressGraphicsDialog Class Referencefinal

#include <compressgraphicdialog.hxx>

Inheritance diagram for CompressGraphicsDialog:
[legend]
Collaboration diagram for CompressGraphicsDialog:
[legend]

Public Member Functions

 CompressGraphicsDialog (weld::Window *pParent, SdrGrafObj *pGraphicObj, SfxBindings &rBindings)
 
 CompressGraphicsDialog (weld::Window *pParent, Graphic const &rGraphic, Size rViewSize100mm, tools::Rectangle const &rCropRectangle, SfxBindings &rBindings)
 
virtual ~CompressGraphicsDialog () override
 
SdrGrafObjGetCompressedSdrGrafObj ()
 
Graphic GetCompressedGraphic ()
 
tools::Rectangle GetScaledCropRectangle () const
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void Initialize ()
 
 DECL_LINK (SlideHdl, weld::Scale &, void)
 
 DECL_LINK (NewInterpolationModifiedHdl, weld::ComboBox &, void)
 
 DECL_LINK (NewQualityModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (NewCompressionModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (NewWidthModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (NewHeightModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (ResolutionModifiedHdl, weld::ComboBox &, void)
 
 DECL_LINK (ToggleCompressionRB, weld::ToggleButton &, void)
 
 DECL_LINK (ToggleReduceResolutionRB, weld::ToggleButton &, void)
 
 DECL_LINK (CalculateClickHdl, weld::Button &, void)
 
void Update ()
 
void UpdateNewWidthMF ()
 
void UpdateNewHeightMF ()
 
void UpdateResolutionLB ()
 
void Compress (SvStream &aStream)
 
double GetViewWidthInch () const
 
double GetViewHeightInch () const
 
BmpScaleFlag GetSelectedInterpolationType () const
 

Private Attributes

std::unique_ptr< weld::Labelm_xLabelGraphicType
 
std::unique_ptr< weld::Labelm_xFixedText2
 
std::unique_ptr< weld::Labelm_xFixedText3
 
std::unique_ptr< weld::Labelm_xFixedText5
 
std::unique_ptr< weld::Labelm_xFixedText6
 
std::unique_ptr< weld::CheckButtonm_xReduceResolutionCB
 
std::unique_ptr< weld::SpinButtonm_xMFNewWidth
 
std::unique_ptr< weld::SpinButtonm_xMFNewHeight
 
std::unique_ptr< weld::ComboBoxm_xResolutionLB
 
std::unique_ptr< weld::RadioButtonm_xLosslessRB
 
std::unique_ptr< weld::RadioButtonm_xJpegCompRB
 
std::unique_ptr< weld::SpinButtonm_xCompressionMF
 
std::unique_ptr< weld::Scalem_xCompressionSlider
 
std::unique_ptr< weld::SpinButtonm_xQualityMF
 
std::unique_ptr< weld::Scalem_xQualitySlider
 
std::unique_ptr< weld::Buttonm_xBtnCalculate
 
std::unique_ptr< weld::ComboBoxm_xInterpolationCombo
 
SdrGrafObjm_xGraphicObj
 
Graphic const m_aGraphic
 
Size const m_aViewSize100mm
 
tools::Rectangle m_aCropRectangle
 
SfxBindingsm_rBindings
 
double m_dResolution
 

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 Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 33 of file compressgraphicdialog.hxx.

Constructor & Destructor Documentation

CompressGraphicsDialog::CompressGraphicsDialog ( weld::Window pParent,
SdrGrafObj pGraphicObj,
SfxBindings rBindings 
)
CompressGraphicsDialog::CompressGraphicsDialog ( weld::Window pParent,
Graphic const &  rGraphic,
Size  rViewSize100mm,
tools::Rectangle const &  rCropRectangle,
SfxBindings rBindings 
)

Definition at line 57 of file compressgraphicdialog.cxx.

References Initialize().

CompressGraphicsDialog::~CompressGraphicsDialog ( )
overridevirtual

Definition at line 69 of file compressgraphicdialog.cxx.

Member Function Documentation

void CompressGraphicsDialog::Compress ( SvStream aStream)
private
CompressGraphicsDialog::DECL_LINK ( SlideHdl  ,
weld::Scale ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( NewInterpolationModifiedHdl  ,
weld::ComboBox ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( NewQualityModifiedHdl  ,
weld::Entry ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( NewCompressionModifiedHdl  ,
weld::Entry ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( NewWidthModifiedHdl  ,
weld::Entry ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( NewHeightModifiedHdl  ,
weld::Entry ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( ResolutionModifiedHdl  ,
weld::ComboBox ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( ToggleCompressionRB  ,
weld::ToggleButton ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( ToggleReduceResolutionRB  ,
weld::ToggleButton ,
void   
)
private
CompressGraphicsDialog::DECL_LINK ( CalculateClickHdl  ,
weld::Button ,
void   
)
private
Graphic CompressGraphicsDialog::GetCompressedGraphic ( )
SdrGrafObj * CompressGraphicsDialog::GetCompressedSdrGrafObj ( )
tools::Rectangle CompressGraphicsDialog::GetScaledCropRectangle ( ) const
BmpScaleFlag CompressGraphicsDialog::GetSelectedInterpolationType ( ) const
private

Definition at line 231 of file compressgraphicdialog.cxx.

References m_xInterpolationCombo.

Referenced by Compress().

double CompressGraphicsDialog::GetViewHeightInch ( ) const
private
double CompressGraphicsDialog::GetViewWidthInch ( ) const
private
void CompressGraphicsDialog::Initialize ( )
private
void CompressGraphicsDialog::Update ( )
private
void CompressGraphicsDialog::UpdateNewHeightMF ( )
private

Definition at line 210 of file compressgraphicdialog.cxx.

References GetViewHeightInch(), m_dResolution, and m_xMFNewHeight.

Referenced by Initialize().

void CompressGraphicsDialog::UpdateNewWidthMF ( )
private

Definition at line 204 of file compressgraphicdialog.cxx.

References GetViewWidthInch(), m_dResolution, and m_xMFNewWidth.

Referenced by Initialize().

void CompressGraphicsDialog::UpdateResolutionLB ( )
private

Definition at line 216 of file compressgraphicdialog.cxx.

References m_dResolution, and m_xResolutionLB.

Referenced by Initialize().

Member Data Documentation

tools::Rectangle CompressGraphicsDialog::m_aCropRectangle
private

Definition at line 58 of file compressgraphicdialog.hxx.

Referenced by CompressGraphicsDialog(), and GetScaledCropRectangle().

Graphic const CompressGraphicsDialog::m_aGraphic
private

Definition at line 56 of file compressgraphicdialog.hxx.

Referenced by Compress(), GetScaledCropRectangle(), and Update().

Size const CompressGraphicsDialog::m_aViewSize100mm
private

Definition at line 57 of file compressgraphicdialog.hxx.

Referenced by GetViewHeightInch(), GetViewWidthInch(), and Update().

double CompressGraphicsDialog::m_dResolution
private
SfxBindings& CompressGraphicsDialog::m_rBindings
private

Definition at line 59 of file compressgraphicdialog.hxx.

Referenced by Update().

std::unique_ptr<weld::Button> CompressGraphicsDialog::m_xBtnCalculate
private

Definition at line 52 of file compressgraphicdialog.hxx.

Referenced by Initialize().

std::unique_ptr<weld::SpinButton> CompressGraphicsDialog::m_xCompressionMF
private

Definition at line 48 of file compressgraphicdialog.hxx.

Referenced by Compress(), and Initialize().

std::unique_ptr<weld::Scale> CompressGraphicsDialog::m_xCompressionSlider
private

Definition at line 49 of file compressgraphicdialog.hxx.

Referenced by Initialize().

std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText2
private

Definition at line 37 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText3
private

Definition at line 38 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText5
private

Definition at line 39 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText6
private

Definition at line 40 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

SdrGrafObj* CompressGraphicsDialog::m_xGraphicObj
private

Definition at line 55 of file compressgraphicdialog.hxx.

Referenced by CompressGraphicsDialog(), and GetCompressedSdrGrafObj().

std::unique_ptr<weld::ComboBox> CompressGraphicsDialog::m_xInterpolationCombo
private

Definition at line 53 of file compressgraphicdialog.hxx.

Referenced by GetSelectedInterpolationType(), and Initialize().

std::unique_ptr<weld::RadioButton> CompressGraphicsDialog::m_xJpegCompRB
private

Definition at line 47 of file compressgraphicdialog.hxx.

Referenced by Initialize().

std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xLabelGraphicType
private

Definition at line 36 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

std::unique_ptr<weld::RadioButton> CompressGraphicsDialog::m_xLosslessRB
private

Definition at line 46 of file compressgraphicdialog.hxx.

Referenced by Compress(), and Initialize().

std::unique_ptr<weld::SpinButton> CompressGraphicsDialog::m_xMFNewHeight
private

Definition at line 44 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and UpdateNewHeightMF().

std::unique_ptr<weld::SpinButton> CompressGraphicsDialog::m_xMFNewWidth
private

Definition at line 43 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and UpdateNewWidthMF().

std::unique_ptr<weld::SpinButton> CompressGraphicsDialog::m_xQualityMF
private

Definition at line 50 of file compressgraphicdialog.hxx.

Referenced by Compress(), and Initialize().

std::unique_ptr<weld::Scale> CompressGraphicsDialog::m_xQualitySlider
private

Definition at line 51 of file compressgraphicdialog.hxx.

Referenced by Initialize().

std::unique_ptr<weld::CheckButton> CompressGraphicsDialog::m_xReduceResolutionCB
private
std::unique_ptr<weld::ComboBox> CompressGraphicsDialog::m_xResolutionLB
private

Definition at line 45 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and UpdateResolutionLB().


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