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

#include <configurationaccess.hxx>

Inheritance diagram for ConfigurationAccess:
[legend]

Public Member Functions

 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)
 

Private Member Functions

void LoadStrings ()
 
void LoadConfiguration ()
 
css::uno::Reference< css::uno::XInterface > OpenConfiguration (bool bReadOnly)
 

Static Private Member Functions

static css::uno::Reference< css::uno::XInterface > GetConfigurationNode (const css::uno::Reference< css::uno::XInterface > &xRoot, const OUString &sPathToNode)
 

Private Attributes

std::map< PPPOptimizerTokenEnum, OUString > maStrings
 
std::vector< OptimizerSettingsmaSettings
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 75 of file configurationaccess.hxx.

Constructor & Destructor Documentation

◆ ConfigurationAccess()

ConfigurationAccess::ConfigurationAccess ( const css::uno::Reference< css::uno::XComponentContext > &  rXFactory)
explicit

◆ ~ConfigurationAccess()

ConfigurationAccess::~ConfigurationAccess ( )

Definition at line 156 of file configurationaccess.cxx.

Member Function Documentation

◆ GetConfigProperty() [1/4]

css::uno::Any ConfigurationAccess::GetConfigProperty ( const PPPOptimizerTokenEnum  ePropertyToken) const

◆ GetConfigProperty() [2/4]

bool ConfigurationAccess::GetConfigProperty ( const PPPOptimizerTokenEnum  ePropertyToken,
const bool  bDefault 
) const

Definition at line 405 of file configurationaccess.cxx.

References GetConfigProperty().

◆ GetConfigProperty() [3/4]

sal_Int16 ConfigurationAccess::GetConfigProperty ( const PPPOptimizerTokenEnum  ePropertyToken,
const sal_Int16  nDefault 
) const

Definition at line 413 of file configurationaccess.cxx.

References GetConfigProperty().

◆ GetConfigProperty() [4/4]

sal_Int32 ConfigurationAccess::GetConfigProperty ( const PPPOptimizerTokenEnum  ePropertyToken,
const sal_Int32  nDefault 
) const

Definition at line 421 of file configurationaccess.cxx.

References GetConfigProperty().

◆ GetConfigurationNode()

static css::uno::Reference< css::uno::XInterface > ConfigurationAccess::GetConfigurationNode ( const css::uno::Reference< css::uno::XInterface > &  xRoot,
const OUString &  sPathToNode 
)
staticprivate

◆ GetConfigurationSequence()

Sequence< PropertyValue > ConfigurationAccess::GetConfigurationSequence ( )

◆ GetOptimizerSettings()

std::vector< OptimizerSettings > & ConfigurationAccess::GetOptimizerSettings ( )
inline

◆ GetOptimizerSettingsByName()

std::vector< OptimizerSettings >::iterator ConfigurationAccess::GetOptimizerSettingsByName ( const OUString &  rName)

◆ getString()

OUString ConfigurationAccess::getString ( const PPPOptimizerTokenEnum  eToken) const

◆ LoadConfiguration()

void ConfigurationAccess::LoadConfiguration ( )
private

◆ LoadStrings()

void ConfigurationAccess::LoadStrings ( )
private

◆ OpenConfiguration()

Reference< XInterface > ConfigurationAccess::OpenConfiguration ( bool  bReadOnly)
private

◆ SaveConfiguration()

void ConfigurationAccess::SaveConfiguration ( )

◆ SetConfigProperty()

void ConfigurationAccess::SetConfigProperty ( const PPPOptimizerTokenEnum  ePropertyToken,
const css::uno::Any &  aValue 
)

Definition at line 372 of file configurationaccess.cxx.

References Exception, OptimizerSettings::maCustomShowName, OptimizerSettings::maFilterName, OptimizerSettings::maName, OptimizerSettings::maSaveAsURL, maSettings, OptimizerSettings::mbDeleteHiddenSlides, OptimizerSettings::mbDeleteNotesPages, OptimizerSettings::mbDeleteUnusedMasterPages, OptimizerSettings::mbEmbedLinkedGraphics, OptimizerSettings::mbJPEGCompression, OptimizerSettings::mbOLEOptimization, OptimizerSettings::mbOpenNewDocument, OptimizerSettings::mbRemoveCropArea, OptimizerSettings::mbSaveAs, OptimizerSettings::mnEstimatedFileSize, OptimizerSettings::mnImageResolution, OptimizerSettings::mnJPEGQuality, OptimizerSettings::mnOLEOptimizationType, TK_CustomShowName, TK_DeleteHiddenSlides, TK_DeleteNotesPages, TK_DeleteUnusedMasterPages, TK_EmbedLinkedGraphics, TK_EstimatedFileSize, TK_FilterName, TK_ImageResolution, TK_JPEGCompression, TK_JPEGQuality, TK_Name, TK_OLEOptimization, TK_OLEOptimizationType, TK_OpenNewDocument, TK_RemoveCropArea, TK_SaveAs, and TK_SaveAsURL.

Referenced by ActionListener::actionPerformed(), SpinListenerFormattedField0Pg1::down(), SpinListenerFormattedField0Pg1::first(), ItemListener::itemStateChanged(), SpinListenerFormattedField0Pg1::last(), TextListenerFormattedField0Pg1::textChanged(), TextListenerComboBox0Pg1::textChanged(), SpinListenerFormattedField0Pg1::up(), OptimizerDialog::UpdateConfiguration(), OptimizerDialog::UpdateControlStatesPage4(), and OptimizerDialog::UpdateStatus().

Member Data Documentation

◆ maSettings

std::vector< OptimizerSettings > ConfigurationAccess::maSettings
private

◆ maStrings

std::map< PPPOptimizerTokenEnum, OUString > ConfigurationAccess::maStrings
private

Definition at line 101 of file configurationaccess.hxx.

Referenced by getString(), and LoadStrings().

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > ConfigurationAccess::mxContext
private

Definition at line 105 of file configurationaccess.hxx.

Referenced by OpenConfiguration().


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