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)
 
 ~OptimizerDialog ()
 
void execute ()
 
void UpdateStatus (const css::uno::Sequence< css::beans::PropertyValue > &rStatus)
 
void UpdateConfiguration ()
 
void EnablePage (sal_Int16 nStep)
 
void DisablePage (sal_Int16 nStep)
 
void SwitchPage (sal_Int16 nNewStep)
 
void UpdateControlStates (sal_Int16 nStep=-1)
 
OUString GetSelectedString (OUString const &token)
 
css::uno::Reference< css::frame::XDispatch > & GetStatusDispatcher ()
 
css::uno::Reference< css::frame::XFrame > & GetFrame ()
 
const css::uno::Reference< css::uno::XComponentContext > & GetComponentContext () const
 
- Public Member Functions inherited from UnoDialog
 UnoDialog (const css::uno::Reference< css::uno::XComponentContext > &rxMSF, css::uno::Reference< css::frame::XFrame > const &rxFrame)
 
 ~UnoDialog ()
 
void execute ()
 
void endExecute (bool bStatus)
 
css::uno::Reference< css::uno::XInterface > insertControlModel (const OUString &rServiceName, const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
void setVisible (const OUString &rName, bool bVisible)
 
css::uno::Reference< css::awt::XButton > insertButton (const OUString &rName, const css::uno::Reference< css::awt::XActionListener > &xActionListener, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XFixedText > insertFixedText (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XCheckBox > insertCheckBox (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XControl > insertFormattedField (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XComboBox > insertComboBox (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XRadioButton > insertRadioButton (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XListBox > insertListBox (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
css::uno::Reference< css::awt::XControl > insertImage (const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
 
void setControlProperty (const OUString &rControlName, const OUString &rPropertyName, const css::uno::Any &rPropertyValue)
 
css::uno::Any getControlProperty (const OUString &rControlName, const OUString &rPropertyName)
 
void enableControl (const OUString &rControlName)
 
void disableControl (const OUString &rControlName)
 
void reschedule () const
 
bool endStatus () const
 
css::uno::Reference< css::awt::XControl > getControl (const OUString &rControlName) const
 
const css::uno::Reference< css::frame::XController > & controller () const
 
void setPropertyValues (const css::uno::Sequence< OUString > &rNameSeq, const css::uno::Sequence< css::uno::Any > &rValueSeq)
 
- 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

sal_Int16 mnCurrentStep
 
sal_Int16 mnTabIndex
 
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 ()
 
void ActivatePage (sal_Int16 nStep)
 
void DeactivatePage (sal_Int16 nStep)
 
void InsertRoadmapItem (const sal_Int32 nIndex, const OUString &rLabel, const sal_Int32 nItemID)
 

Private Attributes

css::uno::Reference< css::frame::XFrame > mxFrame
 
css::uno::Reference< css::uno::XInterface > mxRoadmapControl
 
css::uno::Reference< css::uno::XInterface > mxRoadmapControlModel
 
css::uno::Reference< css::awt::XItemListener > mxItemListener
 
css::uno::Reference< css::awt::XActionListener > mxActionListener
 
css::uno::Reference< css::awt::XActionListener > mxActionListenerListBox0Pg0
 
css::uno::Reference< css::awt::XTextListener > mxTextListenerFormattedField0Pg1
 
css::uno::Reference< css::awt::XTextListener > mxTextListenerComboBox0Pg1
 
css::uno::Reference< css::awt::XSpinListener > mxSpinListenerFormattedField0Pg1
 
css::uno::Reference< css::frame::XDispatch > mxStatusDispatcher
 
std::vector< std::vector< OUString > > maControlPages
 

Additional Inherited Members

- Protected Attributes inherited from UnoDialog
css::uno::Reference< css::uno::XComponentContext > mxContext
 
css::uno::Reference< css::frame::XController > mxController
 

Detailed Description

Definition at line 51 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

◆ ActivatePage()

void OptimizerDialog::ActivatePage ( sal_Int16  nStep)
private

Definition at line 898 of file optimizerdialogcontrols.cxx.

References maControlPages, and UnoDialog::setVisible().

Referenced by OptimizerDialog(), and SwitchPage().

◆ DeactivatePage()

void OptimizerDialog::DeactivatePage ( sal_Int16  nStep)
private

◆ DisablePage()

void OptimizerDialog::DisablePage ( sal_Int16  nStep)

◆ EnablePage()

void OptimizerDialog::EnablePage ( sal_Int16  nStep)

◆ execute()

void OptimizerDialog::execute ( )

◆ GetComponentContext()

const css::uno::Reference< css::uno::XComponentContext > & OptimizerDialog::GetComponentContext ( ) const
inline

Definition at line 117 of file optimizerdialog.hxx.

References UnoDialog::mxContext.

Referenced by ActionListener::actionPerformed().

◆ GetFrame()

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

Definition at line 116 of file optimizerdialog.hxx.

References mxFrame.

Referenced by ActionListener::actionPerformed().

◆ GetSelectedString()

OUString OptimizerDialog::GetSelectedString ( OUString const &  token)

Definition at line 301 of file optimizerdialog.cxx.

References UnoDialog::getControlProperty().

Referenced by ActionListener::actionPerformed().

◆ GetStatusDispatcher()

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

Definition at line 115 of file optimizerdialog.hxx.

References mxStatusDispatcher.

Referenced by ActionListener::actionPerformed().

◆ InitDialog()

void OptimizerDialog::InitDialog ( )
private

◆ InitNavigationBar()

void OptimizerDialog::InitNavigationBar ( )
private

◆ InitPage0()

void OptimizerDialog::InitPage0 ( )
private

◆ InitPage1()

void OptimizerDialog::InitPage1 ( )
private

◆ InitPage2()

void OptimizerDialog::InitPage2 ( )
private

◆ InitPage3()

void OptimizerDialog::InitPage3 ( )
private

◆ InitPage4()

void OptimizerDialog::InitPage4 ( )
private

◆ InitRoadmap()

void OptimizerDialog::InitRoadmap ( )
private

◆ InsertRoadmapItem()

void OptimizerDialog::InsertRoadmapItem ( const sal_Int32  nIndex,
const OUString &  rLabel,
const sal_Int32  nItemID 
)
private

Definition at line 138 of file optimizerdialog.cxx.

References Any, Exception, mxRoadmapControlModel, nIndex, and nItemID.

Referenced by InitRoadmap().

◆ SwitchPage()

void OptimizerDialog::SwitchPage ( sal_Int16  nNewStep)

◆ 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

◆ maControlPages

std::vector< std::vector< OUString > > OptimizerDialog::maControlPages
private

◆ maStats

OptimizationStats OptimizerDialog::maStats

◆ mbIsReadonly

bool OptimizerDialog::mbIsReadonly

Definition at line 63 of file optimizerdialog.hxx.

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

◆ mnCurrentStep

sal_Int16 OptimizerDialog::mnCurrentStep

Definition at line 61 of file optimizerdialog.hxx.

Referenced by ActionListener::actionPerformed(), and SwitchPage().

◆ mnTabIndex

sal_Int16 OptimizerDialog::mnTabIndex

◆ mxActionListener

css::uno::Reference< css::awt::XActionListener > OptimizerDialog::mxActionListener
private

Definition at line 72 of file optimizerdialog.hxx.

Referenced by InitNavigationBar(), InitPage0(), and InitPage1().

◆ mxActionListenerListBox0Pg0

css::uno::Reference< css::awt::XActionListener > OptimizerDialog::mxActionListenerListBox0Pg0
private

Definition at line 73 of file optimizerdialog.hxx.

Referenced by InitPage0().

◆ mxFrame

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

Definition at line 66 of file optimizerdialog.hxx.

Referenced by GetFrame().

◆ mxItemListener

css::uno::Reference< css::awt::XItemListener > OptimizerDialog::mxItemListener
private

Definition at line 71 of file optimizerdialog.hxx.

Referenced by execute(), InitPage1(), InitPage2(), InitPage3(), and InitPage4().

◆ mxRoadmapControl

css::uno::Reference< css::uno::XInterface > OptimizerDialog::mxRoadmapControl
private

Definition at line 68 of file optimizerdialog.hxx.

Referenced by execute(), and InitRoadmap().

◆ mxRoadmapControlModel

css::uno::Reference< css::uno::XInterface > OptimizerDialog::mxRoadmapControlModel
private

Definition at line 69 of file optimizerdialog.hxx.

Referenced by InitRoadmap(), and InsertRoadmapItem().

◆ mxSpinListenerFormattedField0Pg1

css::uno::Reference< css::awt::XSpinListener > OptimizerDialog::mxSpinListenerFormattedField0Pg1
private

Definition at line 76 of file optimizerdialog.hxx.

Referenced by InitPage2().

◆ mxStatusDispatcher

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

Definition at line 77 of file optimizerdialog.hxx.

Referenced by GetStatusDispatcher().

◆ mxTextListenerComboBox0Pg1

css::uno::Reference< css::awt::XTextListener > OptimizerDialog::mxTextListenerComboBox0Pg1
private

Definition at line 75 of file optimizerdialog.hxx.

Referenced by InitPage2().

◆ mxTextListenerFormattedField0Pg1

css::uno::Reference< css::awt::XTextListener > OptimizerDialog::mxTextListenerFormattedField0Pg1
private

Definition at line 74 of file optimizerdialog.hxx.

Referenced by InitPage2().


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