#include <compressgraphicdialog.hxx>
|
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 |
|
Definition at line 33 of file compressgraphicdialog.hxx.
◆ CompressGraphicsDialog() [1/2]
◆ CompressGraphicsDialog() [2/2]
◆ ~CompressGraphicsDialog()
CompressGraphicsDialog::~CompressGraphicsDialog |
( |
| ) |
|
|
overridevirtual |
◆ Compress()
void CompressGraphicsDialog::Compress |
( |
SvStream & |
aStream | ) |
|
|
private |
Definition at line 253 of file compressgraphicdialog.cxx.
References GraphicFilter::ExportGraphic(), Graphic::GetBitmapEx(), GraphicFilter::GetExportFormatNumberForShortName(), GraphicFilter::GetGraphicFilter(), GetSelectedInterpolationType(), GetViewHeightInch(), GetViewWidthInch(), m_aGraphic, m_dResolution, m_xCompressionMF, m_xLosslessRB, m_xQualityMF, m_xReduceResolutionCB, comphelper::makePropertyValue(), BitmapEx::Scale(), and u.
Referenced by GetCompressedGraphic().
◆ 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 |
◆ 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()
Definition at line 432 of file compressgraphicdialog.cxx.
References tools::Rectangle::Bottom(), SdrObject::Clone(), GetCompressedGraphic(), GetScaledCropRectangle(), SdrObject::getSdrModelFromSdrObject(), tools::Rectangle::Left(), m_dResolution, m_xGraphicObj, m_xReduceResolutionCB, tools::Rectangle::Right(), and tools::Rectangle::Top().
◆ GetScaledCropRectangle()
Definition at line 393 of file compressgraphicdialog.cxx.
References tools::Rectangle::Bottom(), Graphic::GetBitmapEx(), BitmapEx::GetSizePixel(), GetViewHeightInch(), GetViewWidthInch(), Size::Height(), tools::Rectangle::Left(), m_aCropRectangle, m_aGraphic, m_dResolution, m_xReduceResolutionCB, tools::Rectangle::Right(), tools::Rectangle::Top(), and Size::Width().
Referenced by GetCompressedSdrGrafObj().
◆ GetSelectedInterpolationType()
BmpScaleFlag CompressGraphicsDialog::GetSelectedInterpolationType |
( |
| ) |
const |
|
private |
◆ GetViewHeightInch()
double CompressGraphicsDialog::GetViewHeightInch |
( |
| ) |
const |
|
private |
◆ GetViewWidthInch()
double CompressGraphicsDialog::GetViewWidthInch |
( |
| ) |
const |
|
private |
◆ Initialize()
void CompressGraphicsDialog::Initialize |
( |
| ) |
|
|
private |
Definition at line 113 of file compressgraphicdialog.cxx.
References LINK, m_xBtnCalculate, m_xBtnOkay, weld::GenericDialogController::m_xBuilder, m_xCompressionMF, m_xCompressionSlider, m_xFixedText2, m_xFixedText3, m_xFixedText5, m_xFixedText6, m_xInterpolationCombo, m_xJpegCompRB, m_xLabelGraphicType, m_xLosslessRB, m_xMFNewHeight, m_xMFNewWidth, m_xQualityMF, m_xQualitySlider, m_xReduceResolutionCB, m_xResolutionLB, Update(), UpdateNewHeightMF(), UpdateNewWidthMF(), and UpdateResolutionLB().
Referenced by CompressGraphicsDialog().
◆ recallParameter()
void CompressGraphicsDialog::recallParameter |
( |
| ) |
|
|
private |
◆ Update()
void CompressGraphicsDialog::Update |
( |
| ) |
|
|
private |
Definition at line 164 of file compressgraphicdialog.cxx.
References SfxBindings::GetDispatcher(), SfxModule::GetFieldUnit(), GetLocaleDataWrapper(), SfxDispatcher::GetModule(), LocaleDataWrapper::getNumDecimalSep(), Graphic::GetPrefMapMode(), Application::GetSettings(), Graphic::GetSharedGfxLink(), Graphic::GetSizePixel(), GetUnitString(), GetViewWidthInch(), Size::Height(), m_aGraphic, m_aNativeSize, m_aViewSize100mm, m_rBindings, m_xFixedText2, m_xFixedText3, m_xFixedText5, m_xFixedText6, m_xLabelGraphicType, SvxResId(), and Size::Width().
Referenced by Initialize().
◆ UpdateNewHeightMF()
void CompressGraphicsDialog::UpdateNewHeightMF |
( |
| ) |
|
|
private |
◆ UpdateNewWidthMF()
void CompressGraphicsDialog::UpdateNewWidthMF |
( |
| ) |
|
|
private |
◆ UpdateResolutionLB()
void CompressGraphicsDialog::UpdateResolutionLB |
( |
| ) |
|
|
private |
◆ m_aCropRectangle
◆ m_aGraphic
Graphic CompressGraphicsDialog::m_aGraphic |
|
private |
◆ m_aNativeSize
sal_Int32 CompressGraphicsDialog::m_aNativeSize |
|
private |
◆ m_aViewSize100mm
Size CompressGraphicsDialog::m_aViewSize100mm |
|
private |
◆ m_dResolution
double CompressGraphicsDialog::m_dResolution |
|
private |
◆ m_rBindings
◆ m_xBtnCalculate
std::unique_ptr<weld::Button> CompressGraphicsDialog::m_xBtnCalculate |
|
private |
◆ m_xBtnOkay
std::unique_ptr<weld::Button> CompressGraphicsDialog::m_xBtnOkay |
|
private |
◆ m_xCompressionMF
◆ m_xCompressionSlider
std::unique_ptr<weld::Scale> CompressGraphicsDialog::m_xCompressionSlider |
|
private |
◆ m_xFixedText2
std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText2 |
|
private |
◆ m_xFixedText3
std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText3 |
|
private |
◆ m_xFixedText5
std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText5 |
|
private |
◆ m_xFixedText6
std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xFixedText6 |
|
private |
◆ m_xGraphicObj
◆ m_xInterpolationCombo
std::unique_ptr<weld::ComboBox> CompressGraphicsDialog::m_xInterpolationCombo |
|
private |
◆ m_xJpegCompRB
◆ m_xLabelGraphicType
std::unique_ptr<weld::Label> CompressGraphicsDialog::m_xLabelGraphicType |
|
private |
◆ m_xLosslessRB
◆ m_xMFNewHeight
◆ m_xMFNewWidth
◆ m_xQualityMF
◆ m_xQualitySlider
std::unique_ptr<weld::Scale> CompressGraphicsDialog::m_xQualitySlider |
|
private |
◆ m_xReduceResolutionCB
◆ m_xResolutionLB
std::unique_ptr<weld::ComboBox> CompressGraphicsDialog::m_xResolutionLB |
|
private |
The documentation for this class was generated from the following files: