25#include <com/sun/star/uno/Sequence.h>
26#include <com/sun/star/uno/XComponentContext.hpp>
27#include <com/sun/star/frame/XDispatch.hpp>
32#define OD_DIALOG_WIDTH 330
33#define DIALOG_HEIGHT 210
34#define BUTTON_WIDTH 50
35#define BUTTON_HEIGHT 14
36#define BUTTON_POS_Y DIALOG_HEIGHT - BUTTON_HEIGHT - 6
40#define PAGE_WIDTH OD_DIALOG_WIDTH - PAGE_POS_X
42#define ITEM_ID_INTRODUCTION 0
43#define ITEM_ID_SLIDES 1
44#define ITEM_ID_GRAPHIC_OPTIMIZATION 2
45#define ITEM_ID_OLE_OPTIMIZATION 3
46#define ITEM_ID_SUMMARY 4
62 void UpdateControlStates(
const std::vector<OUString>& rItemList,
int nSelectedItem,
bool bRemoveButtonEnabled);
86 void Init(
const css::uno::Sequence<OUString>& rCustomShowList);
87 void UpdateControlStates(
bool bDeleteUnusedMasterPages,
bool bDeleteHiddenSlides,
bool bDeleteNotesPages);
118 int nResolution,
bool bEmbedLinkedGraphics);
136 void Init(
const OUString& rDesc);
163 void Init(
const OUString& rSettingsName,
bool bIsReadonly);
166 const std::vector<OUString>& rItemList,
167 const std::vector<OUString>& rSummaryStrings,
168 const OUString& rCurrentFileSize,
169 const OUString& rEstimatedFileSize);
183 OptimizerDialog(
const css::uno::Reference< css::uno::XComponentContext >& rxContext, css::uno::Reference< css::frame::XFrame >
const & rxFrame,
184 css::uno::Reference< css::frame::XDispatch >
const & rxStatusDispatcher );
194 css::uno::Reference< css::frame::XFrame >
mxFrame;
227 void UpdateStatus(
const css::uno::Sequence< css::beans::PropertyValue >& rStatus );
std::unique_ptr< weld::RadioButton > m_xLossLessCompression
DECL_LINK(SpinButtonActionPerformed, weld::SpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xEmbedLinkedGraphics
void UpdateControlStates(bool bJPEGCompression, int nJPEGQuality, bool bRemoveCropArea, int nResolution, bool bEmbedLinkedGraphics)
DECL_LINK(CompressionActionPerformed, weld::Toggleable &, void)
ImagesPage(weld::Container *pPage, OptimizerDialog &rOptimizerDialog)
std::unique_ptr< weld::CheckButton > m_xRemoveCropArea
std::unique_ptr< weld::ComboBox > m_xResolution
std::unique_ptr< weld::Label > m_xQualityLabel
DECL_LINK(EmbedLinkedGraphicsActionPerformed, weld::Toggleable &, void)
OptimizerDialog & mrOptimizerDialog
std::unique_ptr< weld::RadioButton > m_xJpegCompression
DECL_LINK(ComboBoxActionPerformed, weld::ComboBox &, void)
std::unique_ptr< weld::SpinButton > m_xQuality
DECL_LINK(RemoveCropAreaActionPerformed, weld::Toggleable &, void)
DECL_LINK(ComboBoxActionPerformed, weld::ComboBox &, void)
OUString Get_TK_Name() const
void UpdateControlStates(const std::vector< OUString > &rItemList, int nSelectedItem, bool bRemoveButtonEnabled)
IntroPage(weld::Container *pPage, OptimizerDialog &rOptimizerDialog)
OptimizerDialog & mrOptimizerDialog
std::unique_ptr< weld::ComboBox > mxComboBox
std::unique_ptr< weld::Button > mxButton
DECL_LINK(ButtonActionPerformed, weld::Button &, void)
DECL_LINK(OLEActionPerformed, weld::Toggleable &, void)
void Init(const OUString &rDesc)
OptimizerDialog & mrOptimizerDialog
std::unique_ptr< weld::RadioButton > m_xForeignOLEObjects
std::unique_ptr< weld::Label > m_xLabel
std::unique_ptr< weld::RadioButton > m_xAllOLEObjects
DECL_LINK(OLEOptimizationActionPerformed, weld::Toggleable &, void)
ObjectsPage(weld::Container *pPage, OptimizerDialog &rOptimizerDialog)
void UpdateControlStates(bool bConvertOLEObjects, int nOLEOptimizationType)
std::unique_ptr< weld::CheckButton > m_xCreateStaticImage
void UpdateControlStatesPage0()
std::unique_ptr< BuilderPage > createPage(vcl::WizardTypes::WizardState nState) override
css::uno::Reference< css::frame::XController > mxController
css::uno::Reference< css::frame::XFrame > mxFrame
void SetIntroPage(IntroPage *pPage0)
void UpdateControlStates(sal_Int16 nStep=-1)
OptimizerDialog(const css::uno::Reference< css::uno::XComponentContext > &rxContext, css::uno::Reference< css::frame::XFrame > const &rxFrame, css::uno::Reference< css::frame::XDispatch > const &rxStatusDispatcher)
css::uno::Reference< css::frame::XFrame > & GetFrame()
void UpdateControlStatesPage2()
void SetImagesPage(ImagesPage *pPage2)
void SetSlidesPage(SlidesPage *pPage1)
OptimizationStats maStats
css::uno::Reference< css::frame::XDispatch > & GetStatusDispatcher()
void UpdateStatus(const css::uno::Sequence< css::beans::PropertyValue > &rStatus)
void UpdateConfiguration()
void UpdateControlStatesPage3()
void SetObjectsPage(ObjectsPage *pPage3)
css::uno::Reference< css::frame::XDispatch > mxStatusDispatcher
virtual OUString getStateDisplayName(vcl::WizardTypes::WizardState nState) const override
void UpdateControlStatesPage4()
void SetSummaryPage(SummaryPage *pPage4)
void UpdateControlStatesPage1()
virtual bool onFinish() override
void Init(const css::uno::Sequence< OUString > &rCustomShowList)
DECL_LINK(UnusedSlidesActionPerformed, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > mxClearNodes
OUString Get_TK_CustomShowName() const
std::unique_ptr< weld::CheckButton > mxUnusedSlides
DECL_LINK(DeleteNotesActionPerformed, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > mxHiddenSlides
void UpdateControlStates(bool bDeleteUnusedMasterPages, bool bDeleteHiddenSlides, bool bDeleteNotesPages)
SlidesPage(weld::Container *pPage, OptimizerDialog &rOptimizerDialog)
OptimizerDialog & mrOptimizerDialog
DECL_LINK(UnusedHiddenSlidesActionPerformed, weld::Toggleable &, void)
DECL_LINK(UnusedMasterPagesActionPerformed, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > mxComboBox
std::unique_ptr< weld::CheckButton > mxMasterSlides
void Init(const OUString &rSettingsName, bool bIsReadonly)
SummaryPage(weld::Container *pPage, OptimizerDialog &rOptimizerDialog)
void UpdateControlStates(bool bSaveAs, bool bSaveSettingsEnabled, const std::vector< OUString > &rItemList, const std::vector< OUString > &rSummaryStrings, const OUString &rCurrentFileSize, const OUString &rEstimatedFileSize)
bool GetSaveAsNew() const
std::unique_ptr< weld::Label > m_xLabel3
DECL_LINK(SaveSettingsActionPerformed, weld::Toggleable &, void)
std::unique_ptr< weld::Label > m_xLabel2
std::unique_ptr< weld::Label > m_xEstimatedSize
bool GetSaveSettings() const
OptimizerDialog & mrOptimizerDialog
std::unique_ptr< weld::CheckButton > m_xSaveSettings
std::unique_ptr< weld::Label > m_xLabel1
std::unique_ptr< weld::ProgressBar > m_xProgress
OUString GetSettingsName() const
void UpdateProgressValue(int nProgress)
DECL_LINK(SaveAsNewActionPerformed, weld::Toggleable &, void)
std::unique_ptr< weld::Label > m_xCurrentSize
std::unique_ptr< weld::Label > m_xStatus
void UpdateStatusLabel(const OUString &rStatus)
std::unique_ptr< weld::ComboBox > m_xComboBox
std::unique_ptr< weld::RadioButton > m_xSaveToNew
std::unique_ptr< weld::RadioButton > m_xApplyToCurrent