|
LibreOffice Module sdext (master) 1
|
#include <optimizerdialog.hxx>
Public Member Functions | |
| 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) | |
| std::unique_ptr< BuilderPage > | createPage (vcl::WizardTypes::WizardState nState) override |
| ~OptimizerDialog () | |
| void | execute () |
| void | UpdateStatus (const css::uno::Sequence< css::beans::PropertyValue > &rStatus) |
| void | UpdateConfiguration () |
| void | UpdateControlStates (sal_Int16 nStep=-1) |
| void | SetIntroPage (IntroPage *pPage0) |
| void | SetSlidesPage (SlidesPage *pPage1) |
| void | SetImagesPage (ImagesPage *pPage2) |
| void | SetObjectsPage (ObjectsPage *pPage3) |
| void | SetSummaryPage (SummaryPage *pPage4) |
| css::uno::Reference< css::frame::XDispatch > & | GetStatusDispatcher () |
| css::uno::Reference< css::frame::XFrame > & | GetFrame () |
Public Member Functions inherited from vcl::RoadmapWizardMachine | |
| RoadmapWizardMachine (weld::Window *_pParent) | |
| virtual | ~RoadmapWizardMachine () override |
| void | SetRoadmapHelpId (const OUString &_rId) |
| bool | isStateEnabled (WizardTypes::WizardState nState) const |
| virtual bool | canAdvance () const override |
| virtual void | updateTravelUI () override |
Public Member Functions inherited from vcl::WizardMachine | |
| WizardMachine (weld::Window *_pParent, WizardButtonFlags _nButtonFlags) | |
| virtual | ~WizardMachine () override |
| bool | Finish (short nResult=RET_CANCEL) |
| bool | ShowPage (WizardTypes::WizardState nState) |
| bool | ShowNextPage () |
| bool | ShowPrevPage () |
| void | AddPage (std::unique_ptr< BuilderPage > xPage) |
| void | RemovePage (const BuilderPage *pPage) |
| void | SetPage (WizardTypes::WizardState nLevel, std::unique_ptr< BuilderPage > xPage) |
| BuilderPage * | GetPage (WizardTypes::WizardState eState) const |
| void | enableButtons (WizardButtonFlags _nWizardButtonFlags, bool _bEnable) |
| void | defaultButton (WizardButtonFlags _nWizardButtonFlags) |
| void | defaultButton (weld::Button *_pNewDefButton) |
| void | setTitleBase (const OUString &_rTitleBase) |
| virtual bool | canAdvance () const |
| virtual void | updateTravelUI () |
| void | suspendTraveling (AccessGuard) |
| void | resumeTraveling (AccessGuard) |
| bool | isTravelingSuspended () const |
Public Member Functions inherited from weld::AssistantController | |
| AssistantController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
| virtual Dialog * | getDialog () override |
| virtual | ~AssistantController () 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 |
Public Member Functions inherited from ConfigurationAccess | |
| ConfigurationAccess (const css::uno::Reference< css::uno::XComponentContext > &rXFactory) | |
| ~ConfigurationAccess () | |
| void | SaveConfiguration () |
| OUString | getString (const PPPOptimizerTokenEnum) const |
| css::uno::Any | GetConfigProperty (const PPPOptimizerTokenEnum) const |
| void | SetConfigProperty (const PPPOptimizerTokenEnum, const css::uno::Any &aValue) |
| bool | GetConfigProperty (const PPPOptimizerTokenEnum, const bool bDefault) const |
| sal_Int16 | GetConfigProperty (const PPPOptimizerTokenEnum, const sal_Int16 nDefault) const |
| sal_Int32 | GetConfigProperty (const PPPOptimizerTokenEnum, const sal_Int32 nDefault) const |
| css::uno::Sequence< css::beans::PropertyValue > | GetConfigurationSequence () |
| std::vector< OptimizerSettings > & | GetOptimizerSettings () |
| std::vector< OptimizerSettings >::iterator | GetOptimizerSettingsByName (const OUString &rName) |
Public Attributes | |
| short | mnEndStatus |
| bool | mbIsReadonly |
| OptimizationStats | maStats |
Private Member Functions | |
| void | InitDialog () |
| void | InitRoadmap () |
| void | InitNavigationBar () |
| void | InitPage0 () |
| void | InitPage1 () |
| void | InitPage2 () |
| void | InitPage3 () |
| void | InitPage4 () |
| void | UpdateControlStatesPage0 () |
| void | UpdateControlStatesPage1 () |
| void | UpdateControlStatesPage2 () |
| void | UpdateControlStatesPage3 () |
| void | UpdateControlStatesPage4 () |
| virtual OUString | getStateDisplayName (vcl::WizardTypes::WizardState nState) const override |
| virtual bool | onFinish () override |
Private Attributes | |
| css::uno::Reference< css::frame::XFrame > | mxFrame |
| css::uno::Reference< css::frame::XController > | mxController |
| css::uno::Reference< css::frame::XDispatch > | mxStatusDispatcher |
| IntroPage * | mpPage0 |
| SlidesPage * | mpPage1 |
| ImagesPage * | mpPage2 |
| ObjectsPage * | mpPage3 |
| SummaryPage * | mpPage4 |
Definition at line 179 of file optimizerdialog.hxx.
| OptimizerDialog::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 | ||
| ) |
Definition at line 266 of file optimizerdialog.cxx.
References vcl::WizardMachine::ActivatePage(), GetFrameWeld(), OptimizationStats::GetStatusSequence(), InitDialog(), OptimizationStats::InitializeStatusValuesFromDocument(), InitNavigationBar(), InitPage0(), InitPage1(), InitPage2(), InitPage3(), InitPage4(), InitRoadmap(), weld::AssistantController::m_xAssistant, mbIsReadonly, mxController, RET_CANCEL, and UpdateStatus().
| OptimizerDialog::~OptimizerDialog | ( | ) |
Definition at line 344 of file optimizerdialog.cxx.
References mnEndStatus, RET_OK, and ConfigurationAccess::SaveConfiguration().
|
overridevirtual |
Implements vcl::WizardMachine.
Definition at line 313 of file optimizerdialog.cxx.
References getStateDisplayName(), ITEM_ID_GRAPHIC_OPTIMIZATION, ITEM_ID_INTRODUCTION, ITEM_ID_OLE_OPTIMIZATION, ITEM_ID_SLIDES, ITEM_ID_SUMMARY, weld::AssistantController::m_xAssistant, and nState.
| void OptimizerDialog::execute | ( | ) |
Definition at line 351 of file optimizerdialog.cxx.
References mnEndStatus, weld::DialogController::run(), and UpdateConfiguration().
Referenced by PPPOptimizerDialog::dispatch().
|
inline |
|
overrideprivatevirtual |
Reimplemented from vcl::RoadmapWizardMachine.
Definition at line 295 of file optimizerdialog.cxx.
References ConfigurationAccess::getString(), ITEM_ID_GRAPHIC_OPTIMIZATION, ITEM_ID_INTRODUCTION, ITEM_ID_OLE_OPTIMIZATION, ITEM_ID_SLIDES, ITEM_ID_SUMMARY, nState, STR_IMAGE_OPTIMIZATION, STR_INTRODUCTION, STR_OLE_OBJECTS, STR_SLIDES, and STR_SUMMARY.
Referenced by createPage().
|
inline |
Definition at line 240 of file optimizerdialog.hxx.
References mxStatusDispatcher.
Referenced by onFinish().
|
private |
Definition at line 234 of file optimizerdialog.cxx.
References ConfigurationAccess::getString(), weld::DialogController::set_title(), and STR_SUN_OPTIMIZATION_WIZARD2.
Referenced by OptimizerDialog().
|
private |
Definition at line 50 of file optimizerdialogcontrols.cxx.
References vcl::WizardMachine::m_xHelp.
Referenced by OptimizerDialog().
|
private |
Definition at line 81 of file optimizerdialogcontrols.cxx.
References UpdateControlStatesPage0().
Referenced by OptimizerDialog().
|
private |
Definition at line 94 of file optimizerdialogcontrols.cxx.
References SlidesPage::Init(), mpPage1, mxController, UpdateControlStatesPage1(), and xModel.
Referenced by OptimizerDialog().
|
private |
Definition at line 121 of file optimizerdialogcontrols.cxx.
References UpdateControlStatesPage2().
Referenced by OptimizerDialog().
|
private |
Definition at line 134 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::getString(), i, ObjectsPage::Init(), mpPage3, mxController, STR_NO_OLE_OBJECTS_DESC, STR_OLE_OBJECTS_DESC, UpdateControlStatesPage3(), and xModel.
Referenced by OptimizerDialog().
|
private |
Definition at line 333 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::GetOptimizerSettings(), ConfigurationAccess::getString(), i, SummaryPage::Init(), maName, mbIsReadonly, mpPage4, STR_MY_SETTINGS, and UpdateControlStatesPage4().
Referenced by OptimizerDialog().
|
private |
Definition at line 239 of file optimizerdialog.cxx.
References vcl::RoadmapWizardMachine::declarePath(), ITEM_ID_GRAPHIC_OPTIMIZATION, ITEM_ID_INTRODUCTION, ITEM_ID_OLE_OPTIMIZATION, ITEM_ID_SLIDES, ITEM_ID_SUMMARY, and weld::AssistantController::m_xAssistant.
Referenced by OptimizerDialog().
|
overrideprivatevirtual |
Reimplemented from vcl::WizardMachine.
Definition at line 476 of file optimizerdialog.cxx.
References aName, Any, aURL, Application::CreateMessageDialog(), ERRCODE_IO_CANTWRITE, ERRCODE_IO_GENERAL, ERRCODE_NONE, ERRCTX_SFX_SAVEASDOC, FileOpenDialog::execute(), ConfigurationAccess::GetConfigProperty(), ConfigurationAccess::GetConfigurationSequence(), FileOpenDialog::getFilterName(), GetFrame(), INetURLObject::getName(), ConfigurationAccess::GetOptimizerSettings(), ConfigurationAccess::GetOptimizerSettingsByName(), SummaryPage::GetSaveAsNew(), SummaryPage::GetSaveSettings(), SummaryPage::GetSettingsName(), GetStatusDispatcher(), ConfigurationAccess::getString(), FileOpenDialog::getURL(), ErrorHandler::HandleError(), INetURLObject::hasFinalSlash(), i, ITEM_ID_SUMMARY, INetURLObject::LAST_SEGMENT, weld::AssistantController::m_xAssistant, vcl::WizardMachine::m_xCancel, vcl::WizardMachine::m_xFinish, vcl::WizardMachine::m_xNextPage, vcl::WizardMachine::m_xPrevPage, comphelper::makePropertyValue(), OptimizerSettings::maName, maStats, mpPage4, ConfigurationAccess::mxContext, mxController, vcl::WizardMachine::onFinish(), ImpOptimizer::Optimize(), INetURLObject::removeExtension(), Application::Reschedule(), RET_YES, ConfigurationAccess::SetConfigProperty(), FileOpenDialog::setDefaultName(), OptimizationStats::SetStatusValue(), vcl::WizardMachine::ShowPage(), STR_FILENAME_SUFFIX, STR_WARN_UNSAVED_PRESENTATION, TK_FilterName, TK_Progress, TK_SaveAsURL, UpdateConfiguration(), URL, and INetURLObject::WithCharset.
|
inline |
Definition at line 236 of file optimizerdialog.hxx.
References mpPage2.
Referenced by ImagesPage::ImagesPage().
|
inline |
Definition at line 234 of file optimizerdialog.hxx.
References mpPage0.
Referenced by IntroPage::IntroPage().
|
inline |
Definition at line 237 of file optimizerdialog.hxx.
References mpPage3.
Referenced by ObjectsPage::ObjectsPage().
|
inline |
Definition at line 235 of file optimizerdialog.hxx.
References mpPage1.
Referenced by SlidesPage::SlidesPage().
|
inline |
Definition at line 238 of file optimizerdialog.hxx.
References mpPage4.
Referenced by SummaryPage::SummaryPage().
| void OptimizerDialog::UpdateConfiguration | ( | ) |
Definition at line 253 of file optimizerdialog.cxx.
References Any, SlidesPage::Get_TK_CustomShowName(), IntroPage::Get_TK_Name(), mpPage0, mpPage1, ConfigurationAccess::SetConfigProperty(), TK_CustomShowName, and TK_Name.
Referenced by execute(), and onFinish().
| void OptimizerDialog::UpdateControlStates | ( | sal_Int16 | nStep = -1 | ) |
Definition at line 357 of file optimizerdialog.cxx.
References UpdateControlStatesPage0(), UpdateControlStatesPage1(), UpdateControlStatesPage2(), UpdateControlStatesPage3(), and UpdateControlStatesPage4().
|
private |
Definition at line 55 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::GetOptimizerSettings(), i, maName, mpPage0, and IntroPage::UpdateControlStates().
Referenced by InitPage0(), and UpdateControlStates().
|
private |
Definition at line 86 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::GetConfigProperty(), mpPage1, TK_DeleteHiddenSlides, TK_DeleteNotesPages, TK_DeleteUnusedMasterPages, and SlidesPage::UpdateControlStates().
Referenced by InitPage1(), and UpdateControlStates().
|
private |
Definition at line 110 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::GetConfigProperty(), mpPage2, TK_EmbedLinkedGraphics, TK_ImageResolution, TK_JPEGCompression, TK_JPEGQuality, TK_RemoveCropArea, and ImagesPage::UpdateControlStates().
Referenced by InitPage2(), and UpdateControlStates().
|
private |
Definition at line 126 of file optimizerdialogcontrols.cxx.
References ConfigurationAccess::GetConfigProperty(), mpPage3, TK_OLEOptimization, TK_OLEOptimizationType, and ObjectsPage::UpdateControlStates().
Referenced by InitPage3(), and UpdateControlStates().
|
private |
Definition at line 172 of file optimizerdialogcontrols.cxx.
References Any, aStr, bVisible, PageCollector::CollectMasterPages(), GraphicCollector::CountGraphics(), SlidesPage::Get_TK_CustomShowName(), ConfigurationAccess::GetConfigProperty(), PPPOptimizer::GetFileSize(), ConfigurationAccess::GetOptimizerSettings(), ConfigurationAccess::getString(), i, ImpValueOfInMB(), mbIsReadonly, mpPage1, mpPage4, ConfigurationAccess::mxContext, mxController, ConfigurationAccess::SetConfigProperty(), STR_CREATE_REPLACEMENT, STR_DELETE_SLIDES, STR_FILESIZESEPARATOR, STR_OPTIMIZE_IMAGES, TK_CustomShowName, TK_DeleteHiddenSlides, TK_DeleteUnusedMasterPages, TK_EmbedLinkedGraphics, TK_EstimatedFileSize, TK_ImageResolution, TK_JPEGCompression, TK_JPEGQuality, TK_OLEOptimization, TK_RemoveCropArea, TK_SaveAs, SummaryPage::UpdateControlStates(), v, and w.
Referenced by InitPage4(), and UpdateControlStates().
| void OptimizerDialog::UpdateStatus | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rStatus | ) |
Definition at line 377 of file optimizerdialog.cxx.
References Any, OptimizationStats::GetStatusValue(), ConfigurationAccess::getString(), OptimizationStats::InitializeStatusValues(), maStats, mpPage4, Application::Reschedule(), ConfigurationAccess::SetConfigProperty(), TK_OpenNewDocument, TK_Progress, TK_Status, TKGet(), SummaryPage::UpdateProgressValue(), and SummaryPage::UpdateStatusLabel().
Referenced by PPPOptimizerDialog::dispatch(), and OptimizerDialog().
| OptimizationStats OptimizerDialog::maStats |
Definition at line 225 of file optimizerdialog.hxx.
Referenced by PPPOptimizerDialog::dispatch(), onFinish(), and UpdateStatus().
| bool OptimizerDialog::mbIsReadonly |
Definition at line 191 of file optimizerdialog.hxx.
Referenced by InitPage4(), OptimizerDialog(), and UpdateControlStatesPage4().
| short OptimizerDialog::mnEndStatus |
Definition at line 190 of file optimizerdialog.hxx.
Referenced by execute(), and ~OptimizerDialog().
|
private |
Definition at line 199 of file optimizerdialog.hxx.
Referenced by SetIntroPage(), UpdateConfiguration(), and UpdateControlStatesPage0().
|
private |
Definition at line 200 of file optimizerdialog.hxx.
Referenced by InitPage1(), SetSlidesPage(), UpdateConfiguration(), UpdateControlStatesPage1(), and UpdateControlStatesPage4().
|
private |
Definition at line 201 of file optimizerdialog.hxx.
Referenced by SetImagesPage(), and UpdateControlStatesPage2().
|
private |
Definition at line 202 of file optimizerdialog.hxx.
Referenced by InitPage3(), SetObjectsPage(), and UpdateControlStatesPage3().
|
private |
Definition at line 203 of file optimizerdialog.hxx.
Referenced by InitPage4(), onFinish(), SetSummaryPage(), UpdateControlStatesPage4(), and UpdateStatus().
|
private |
Definition at line 195 of file optimizerdialog.hxx.
Referenced by InitPage1(), InitPage3(), onFinish(), OptimizerDialog(), and UpdateControlStatesPage4().
|
private |
Definition at line 194 of file optimizerdialog.hxx.
Referenced by GetFrame().
|
private |
Definition at line 197 of file optimizerdialog.hxx.
Referenced by GetStatusDispatcher().