LibreOffice Module sdext (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
OptimizerDialog Class Reference

#include <optimizerdialog.hxx>

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

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< BuilderPagecreatePage (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 OString &_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)
 
BuilderPageGetPage (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 OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~AssistantController () 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 OString &rHelpId)
 
OString 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
 
IntroPagempPage0
 
SlidesPagempPage1
 
ImagesPagempPage2
 
ObjectsPagempPage3
 
SummaryPagempPage4
 

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 Member Functions inherited from vcl::RoadmapWizardMachine
void declarePath (RoadmapWizardTypes::PathId _nPathId, const RoadmapWizardTypes::WizardPath &_lWizardStates)
 
void activatePath (RoadmapWizardTypes::PathId _nPathId, bool _bDecideForIt=false)
 
virtual WizardTypes::WizardState determineNextState (WizardTypes::WizardState nCurrentState) const override
 
void enableState (WizardTypes::WizardState nState, bool _bEnable=true)
 
bool knowsState (WizardTypes::WizardState nState) const
 
virtual void enterState (WizardTypes::WizardState nState) override
 
virtual OUString getStateDisplayName (WizardTypes::WizardState nState) const
 
- Protected Member Functions inherited from vcl::WizardMachine
virtual void ActivatePage ()
 
virtual bool DeactivatePage ()
 
virtual std::unique_ptr< BuilderPagecreatePage (WizardTypes::WizardState _nState)=0
 
virtual void enterState (WizardTypes::WizardState _nState)
 
virtual bool prepareLeaveCurrentState (WizardTypes::CommitPageReason eReason)
 
virtual bool leaveState (WizardTypes::WizardState nState)
 
virtual WizardTypes::WizardState determineNextState (WizardTypes::WizardState nCurrentState) const
 
virtual bool onFinish ()
 
bool travelNext ()
 
bool travelPrevious ()
 
void enableAutomaticNextButtonState ()
 
bool isAutomaticNextButtonStateEnabled () const
 
void removePageFromHistory (WizardTypes::WizardState nToRemove)
 
void skip ()
 
bool skipUntil (WizardTypes::WizardState nTargetState)
 
bool skipBackwardUntil (WizardTypes::WizardState nTargetState)
 
WizardTypes::WizardState getCurrentState () const
 
virtual IWizardPageController * getPageController (BuilderPage *pCurrentPage) const
 
void getStateHistory (std::vector< WizardTypes::WizardState > &out_rHistory)
 
BuilderPageGetOrCreatePage (const WizardTypes::WizardState i_nState)
 
- Protected Attributes inherited from vcl::WizardMachine
BuilderPagem_pCurTabPage
 
std::unique_ptr< weld::Buttonm_xFinish
 
std::unique_ptr< weld::Buttonm_xCancel
 
std::unique_ptr< weld::Buttonm_xNextPage
 
std::unique_ptr< weld::Buttonm_xPrevPage
 
std::unique_ptr< weld::Buttonm_xHelp
 
- Protected Attributes inherited from weld::AssistantController
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Assistantm_xAssistant
 
- Protected Attributes inherited from ConfigurationAccess
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 179 of file optimizerdialog.hxx.

Constructor & Destructor Documentation

◆ OptimizerDialog()

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 
)

◆ ~OptimizerDialog()

OptimizerDialog::~OptimizerDialog ( )

Member Function Documentation

◆ createPage()

std::unique_ptr< BuilderPage > OptimizerDialog::createPage ( vcl::WizardTypes::WizardState  nState)
overridevirtual

◆ execute()

void OptimizerDialog::execute ( )

◆ GetFrame()

css::uno::Reference< css::frame::XFrame > & OptimizerDialog::GetFrame ( )
inline

Definition at line 241 of file optimizerdialog.hxx.

References mxFrame.

Referenced by onFinish().

◆ getStateDisplayName()

OUString OptimizerDialog::getStateDisplayName ( vcl::WizardTypes::WizardState  nState) const
overrideprivatevirtual

◆ GetStatusDispatcher()

css::uno::Reference< css::frame::XDispatch > & OptimizerDialog::GetStatusDispatcher ( )
inline

Definition at line 240 of file optimizerdialog.hxx.

References mxStatusDispatcher.

Referenced by onFinish().

◆ InitDialog()

void OptimizerDialog::InitDialog ( )
private

◆ InitNavigationBar()

void OptimizerDialog::InitNavigationBar ( )
private

Definition at line 50 of file optimizerdialogcontrols.cxx.

References vcl::WizardMachine::m_xHelp.

Referenced by OptimizerDialog().

◆ InitPage0()

void OptimizerDialog::InitPage0 ( )
private

Definition at line 81 of file optimizerdialogcontrols.cxx.

References UpdateControlStatesPage0().

Referenced by OptimizerDialog().

◆ InitPage1()

void OptimizerDialog::InitPage1 ( )
private

◆ InitPage2()

void OptimizerDialog::InitPage2 ( )
private

Definition at line 121 of file optimizerdialogcontrols.cxx.

References UpdateControlStatesPage2().

Referenced by OptimizerDialog().

◆ InitPage3()

void OptimizerDialog::InitPage3 ( )
private

◆ InitPage4()

void OptimizerDialog::InitPage4 ( )
private

◆ InitRoadmap()

void OptimizerDialog::InitRoadmap ( )
private

◆ onFinish()

bool OptimizerDialog::onFinish ( )
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.

◆ SetImagesPage()

void OptimizerDialog::SetImagesPage ( ImagesPage pPage2)
inline

Definition at line 236 of file optimizerdialog.hxx.

References mpPage2.

Referenced by ImagesPage::ImagesPage().

◆ SetIntroPage()

void OptimizerDialog::SetIntroPage ( IntroPage pPage0)
inline

Definition at line 234 of file optimizerdialog.hxx.

References mpPage0.

Referenced by IntroPage::IntroPage().

◆ SetObjectsPage()

void OptimizerDialog::SetObjectsPage ( ObjectsPage pPage3)
inline

Definition at line 237 of file optimizerdialog.hxx.

References mpPage3.

Referenced by ObjectsPage::ObjectsPage().

◆ SetSlidesPage()

void OptimizerDialog::SetSlidesPage ( SlidesPage pPage1)
inline

Definition at line 235 of file optimizerdialog.hxx.

References mpPage1.

Referenced by SlidesPage::SlidesPage().

◆ SetSummaryPage()

void OptimizerDialog::SetSummaryPage ( SummaryPage pPage4)
inline

Definition at line 238 of file optimizerdialog.hxx.

References mpPage4.

Referenced by SummaryPage::SummaryPage().

◆ UpdateConfiguration()

void OptimizerDialog::UpdateConfiguration ( )

◆ UpdateControlStates()

void OptimizerDialog::UpdateControlStates ( sal_Int16  nStep = -1)

◆ UpdateControlStatesPage0()

void OptimizerDialog::UpdateControlStatesPage0 ( )
private

◆ UpdateControlStatesPage1()

void OptimizerDialog::UpdateControlStatesPage1 ( )
private

◆ UpdateControlStatesPage2()

void OptimizerDialog::UpdateControlStatesPage2 ( )
private

◆ UpdateControlStatesPage3()

void OptimizerDialog::UpdateControlStatesPage3 ( )
private

◆ UpdateControlStatesPage4()

void OptimizerDialog::UpdateControlStatesPage4 ( )
private

◆ UpdateStatus()

void OptimizerDialog::UpdateStatus ( const css::uno::Sequence< css::beans::PropertyValue > &  rStatus)

Member Data Documentation

◆ maStats

OptimizationStats OptimizerDialog::maStats

Definition at line 225 of file optimizerdialog.hxx.

Referenced by PPPOptimizerDialog::dispatch(), onFinish(), and UpdateStatus().

◆ mbIsReadonly

bool OptimizerDialog::mbIsReadonly

Definition at line 191 of file optimizerdialog.hxx.

Referenced by InitPage4(), OptimizerDialog(), and UpdateControlStatesPage4().

◆ mnEndStatus

short OptimizerDialog::mnEndStatus

Definition at line 190 of file optimizerdialog.hxx.

Referenced by execute(), and ~OptimizerDialog().

◆ mpPage0

IntroPage* OptimizerDialog::mpPage0
private

◆ mpPage1

SlidesPage* OptimizerDialog::mpPage1
private

◆ mpPage2

ImagesPage* OptimizerDialog::mpPage2
private

Definition at line 201 of file optimizerdialog.hxx.

Referenced by SetImagesPage(), and UpdateControlStatesPage2().

◆ mpPage3

ObjectsPage* OptimizerDialog::mpPage3
private

Definition at line 202 of file optimizerdialog.hxx.

Referenced by InitPage3(), SetObjectsPage(), and UpdateControlStatesPage3().

◆ mpPage4

SummaryPage* OptimizerDialog::mpPage4
private

◆ mxController

css::uno::Reference< css::frame::XController > OptimizerDialog::mxController
private

◆ mxFrame

css::uno::Reference< css::frame::XFrame > OptimizerDialog::mxFrame
private

Definition at line 194 of file optimizerdialog.hxx.

Referenced by GetFrame().

◆ mxStatusDispatcher

css::uno::Reference< css::frame::XDispatch > OptimizerDialog::mxStatusDispatcher
private

Definition at line 197 of file optimizerdialog.hxx.

Referenced by GetStatusDispatcher().


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