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 aGraphic, Size aViewSize100mm, tools::Rectangle const &rCropRectangle, SfxBindings &rBindings)
 
virtual ~CompressGraphicsDialog () override
 
rtl::Reference< SdrGrafObjGetCompressedSdrGrafObj ()
 
Graphic GetCompressedGraphic ()
 
tools::Rectangle GetScaledCropRectangle () const
 
- 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

void Initialize ()
 
void recallParameter ()
 
 DECL_DLLPRIVATE_LINK (SlideHdl, weld::Scale &, void)
 
 DECL_DLLPRIVATE_LINK (NewInterpolationModifiedHdl, weld::ComboBox &, void)
 
 DECL_DLLPRIVATE_LINK (NewQualityModifiedHdl, weld::SpinButton &, void)
 
 DECL_DLLPRIVATE_LINK (NewCompressionModifiedHdl, weld::SpinButton &, void)
 
 DECL_DLLPRIVATE_LINK (NewWidthModifiedHdl, weld::SpinButton &, void)
 
 DECL_DLLPRIVATE_LINK (NewHeightModifiedHdl, weld::SpinButton &, void)
 
 DECL_DLLPRIVATE_LINK (ResolutionModifiedHdl, weld::ComboBox &, void)
 
 DECL_DLLPRIVATE_LINK (ToggleCompressionRB, weld::Toggleable &, void)
 
 DECL_DLLPRIVATE_LINK (ToggleReduceResolutionRB, weld::Toggleable &, void)
 
 DECL_DLLPRIVATE_LINK (CalculateClickHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (OkayClickHdl, 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
 
std::unique_ptr< weld::Buttonm_xBtnOkay
 
SdrGrafObjm_xGraphicObj
 
Graphic m_aGraphic
 
Size m_aViewSize100mm
 
tools::Rectangle m_aCropRectangle
 
SfxBindingsm_rBindings
 
double m_dResolution
 
sal_Int32 m_aNativeSize
 

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() [1/2]

CompressGraphicsDialog::CompressGraphicsDialog ( weld::Window pParent,
SdrGrafObj pGraphicObj,
SfxBindings rBindings 
)

◆ CompressGraphicsDialog() [2/2]

CompressGraphicsDialog::CompressGraphicsDialog ( weld::Window pParent,
Graphic  aGraphic,
Size  aViewSize100mm,
tools::Rectangle const &  rCropRectangle,
SfxBindings rBindings 
)

Definition at line 78 of file compressgraphicdialog.cxx.

References Initialize(), and recallParameter().

◆ ~CompressGraphicsDialog()

CompressGraphicsDialog::~CompressGraphicsDialog ( )
overridevirtual

Definition at line 91 of file compressgraphicdialog.cxx.

Member Function Documentation

◆ Compress()

void CompressGraphicsDialog::Compress ( SvStream aStream)
private

◆ DECL_DLLPRIVATE_LINK() [1/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( CalculateClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( NewCompressionModifiedHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( NewHeightModifiedHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( NewInterpolationModifiedHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [5/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( NewQualityModifiedHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [6/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( NewWidthModifiedHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [7/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( OkayClickHdl  ,
weld::Button ,
void   
)
private

References Update.

◆ DECL_DLLPRIVATE_LINK() [8/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( ResolutionModifiedHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [9/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( SlideHdl  ,
weld::Scale ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [10/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( ToggleCompressionRB  ,
weld::Toggleable ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [11/11]

CompressGraphicsDialog::DECL_DLLPRIVATE_LINK ( ToggleReduceResolutionRB  ,
weld::Toggleable ,
void   
)
private

◆ GetCompressedGraphic()

Graphic CompressGraphicsDialog::GetCompressedGraphic ( )

◆ GetCompressedSdrGrafObj()

rtl::Reference< SdrGrafObj > CompressGraphicsDialog::GetCompressedSdrGrafObj ( )

◆ GetScaledCropRectangle()

tools::Rectangle CompressGraphicsDialog::GetScaledCropRectangle ( ) const

◆ GetSelectedInterpolationType()

BmpScaleFlag CompressGraphicsDialog::GetSelectedInterpolationType ( ) const
private

Definition at line 237 of file compressgraphicdialog.cxx.

References m_xInterpolationCombo.

Referenced by Compress().

◆ GetViewHeightInch()

double CompressGraphicsDialog::GetViewHeightInch ( ) const
private

◆ GetViewWidthInch()

double CompressGraphicsDialog::GetViewWidthInch ( ) const
private

◆ Initialize()

void CompressGraphicsDialog::Initialize ( )
private

◆ recallParameter()

void CompressGraphicsDialog::recallParameter ( )
private

◆ Update()

void CompressGraphicsDialog::Update ( )
private

◆ UpdateNewHeightMF()

void CompressGraphicsDialog::UpdateNewHeightMF ( )
private

Definition at line 216 of file compressgraphicdialog.cxx.

References GetViewHeightInch(), m_dResolution, and m_xMFNewHeight.

Referenced by Initialize().

◆ UpdateNewWidthMF()

void CompressGraphicsDialog::UpdateNewWidthMF ( )
private

Definition at line 210 of file compressgraphicdialog.cxx.

References GetViewWidthInch(), m_dResolution, and m_xMFNewWidth.

Referenced by Initialize().

◆ UpdateResolutionLB()

void CompressGraphicsDialog::UpdateResolutionLB ( )
private

Definition at line 222 of file compressgraphicdialog.cxx.

References m_dResolution, and m_xResolutionLB.

Referenced by Initialize().

Member Data Documentation

◆ m_aCropRectangle

tools::Rectangle CompressGraphicsDialog::m_aCropRectangle
private

Definition at line 59 of file compressgraphicdialog.hxx.

Referenced by CompressGraphicsDialog(), and GetScaledCropRectangle().

◆ m_aGraphic

Graphic CompressGraphicsDialog::m_aGraphic
private

Definition at line 57 of file compressgraphicdialog.hxx.

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

◆ m_aNativeSize

sal_Int32 CompressGraphicsDialog::m_aNativeSize
private

Definition at line 63 of file compressgraphicdialog.hxx.

Referenced by Update().

◆ m_aViewSize100mm

Size CompressGraphicsDialog::m_aViewSize100mm
private

Definition at line 58 of file compressgraphicdialog.hxx.

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

◆ m_dResolution

double CompressGraphicsDialog::m_dResolution
private

◆ m_rBindings

SfxBindings& CompressGraphicsDialog::m_rBindings
private

Definition at line 60 of file compressgraphicdialog.hxx.

Referenced by Update().

◆ m_xBtnCalculate

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

Definition at line 52 of file compressgraphicdialog.hxx.

Referenced by Initialize().

◆ m_xBtnOkay

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

Definition at line 54 of file compressgraphicdialog.hxx.

Referenced by Initialize().

◆ m_xCompressionMF

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

Definition at line 48 of file compressgraphicdialog.hxx.

Referenced by Compress(), Initialize(), and recallParameter().

◆ m_xCompressionSlider

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

Definition at line 49 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and recallParameter().

◆ m_xFixedText2

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

Definition at line 37 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

◆ m_xFixedText3

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

Definition at line 38 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

◆ m_xFixedText5

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

Definition at line 39 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

◆ m_xFixedText6

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

Definition at line 40 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

◆ m_xGraphicObj

SdrGrafObj* CompressGraphicsDialog::m_xGraphicObj
private

Definition at line 56 of file compressgraphicdialog.hxx.

Referenced by CompressGraphicsDialog(), and GetCompressedSdrGrafObj().

◆ m_xInterpolationCombo

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

◆ m_xJpegCompRB

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

Definition at line 47 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and recallParameter().

◆ m_xLabelGraphicType

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

Definition at line 36 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and Update().

◆ m_xLosslessRB

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

Definition at line 46 of file compressgraphicdialog.hxx.

Referenced by Compress(), Initialize(), and recallParameter().

◆ m_xMFNewHeight

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

Definition at line 44 of file compressgraphicdialog.hxx.

Referenced by Initialize(), recallParameter(), and UpdateNewHeightMF().

◆ m_xMFNewWidth

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

Definition at line 43 of file compressgraphicdialog.hxx.

Referenced by Initialize(), recallParameter(), and UpdateNewWidthMF().

◆ m_xQualityMF

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

Definition at line 50 of file compressgraphicdialog.hxx.

Referenced by Compress(), Initialize(), and recallParameter().

◆ m_xQualitySlider

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

Definition at line 51 of file compressgraphicdialog.hxx.

Referenced by Initialize(), and recallParameter().

◆ m_xReduceResolutionCB

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

◆ m_xResolutionLB

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: