LibreOffice Module sdext (master) 1
|
#include <configurationaccess.hxx>
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) |
Protected Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
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< OptimizerSettings > | maSettings |
Definition at line 75 of file configurationaccess.hxx.
|
explicit |
ConfigurationAccess::~ConfigurationAccess | ( | ) |
Definition at line 154 of file configurationaccess.cxx.
css::uno::Any ConfigurationAccess::GetConfigProperty | ( | const PPPOptimizerTokenEnum | ePropertyToken | ) | const |
Definition at line 336 of file configurationaccess.cxx.
References Any, Exception, 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_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 GetConfigProperty(), OptimizerDialog::onFinish(), OptimizerDialog::UpdateControlStatesPage1(), OptimizerDialog::UpdateControlStatesPage2(), OptimizerDialog::UpdateControlStatesPage3(), and OptimizerDialog::UpdateControlStatesPage4().
bool ConfigurationAccess::GetConfigProperty | ( | const PPPOptimizerTokenEnum | ePropertyToken, |
const bool | bDefault | ||
) | const |
Definition at line 403 of file configurationaccess.cxx.
References GetConfigProperty().
sal_Int16 ConfigurationAccess::GetConfigProperty | ( | const PPPOptimizerTokenEnum | ePropertyToken, |
const sal_Int16 | nDefault | ||
) | const |
Definition at line 411 of file configurationaccess.cxx.
References GetConfigProperty().
sal_Int32 ConfigurationAccess::GetConfigProperty | ( | const PPPOptimizerTokenEnum | ePropertyToken, |
const sal_Int32 | nDefault | ||
) | const |
Definition at line 419 of file configurationaccess.cxx.
References GetConfigProperty().
|
staticprivate |
Referenced by LoadConfiguration(), LoadStrings(), and SaveConfiguration().
Sequence< PropertyValue > ConfigurationAccess::GetConfigurationSequence | ( | ) |
Definition at line 427 of file configurationaccess.cxx.
References OptimizerSettings::maCustomShowName, OptimizerSettings::maFilterName, comphelper::makePropertyValue(), OptimizerSettings::maSaveAsURL, maSettings, OptimizerSettings::mbDeleteHiddenSlides, OptimizerSettings::mbDeleteNotesPages, OptimizerSettings::mbDeleteUnusedMasterPages, OptimizerSettings::mbEmbedLinkedGraphics, OptimizerSettings::mbJPEGCompression, OptimizerSettings::mbOLEOptimization, OptimizerSettings::mbOpenNewDocument, OptimizerSettings::mbRemoveCropArea, OptimizerSettings::mnEstimatedFileSize, OptimizerSettings::mnImageResolution, OptimizerSettings::mnJPEGQuality, and OptimizerSettings::mnOLEOptimizationType.
Referenced by OptimizerDialog::onFinish().
|
inline |
Definition at line 96 of file configurationaccess.hxx.
References maSettings.
Referenced by OptimizerDialog::InitPage4(), OptimizerDialog::onFinish(), OptimizerDialog::UpdateControlStatesPage0(), and OptimizerDialog::UpdateControlStatesPage4().
std::vector< OptimizerSettings >::iterator ConfigurationAccess::GetOptimizerSettingsByName | ( | const OUString & | rName | ) |
Definition at line 450 of file configurationaccess.cxx.
References maSettings.
Referenced by OptimizerDialog::onFinish().
OUString ConfigurationAccess::getString | ( | const PPPOptimizerTokenEnum | eToken | ) | const |
Definition at line 158 of file configurationaccess.cxx.
References eToken, and maStrings.
Referenced by OptimizerDialog::getStateDisplayName(), InformationDialog::InitDialog(), OptimizerDialog::InitDialog(), OptimizerDialog::InitPage3(), OptimizerDialog::InitPage4(), OptimizerDialog::onFinish(), OptimizerDialog::UpdateControlStatesPage4(), and OptimizerDialog::UpdateStatus().
|
private |
Definition at line 198 of file configurationaccess.cxx.
References Exception, GetConfigurationNode(), OptimizerSettings::LoadSettingsFromConfiguration(), maSettings, and OpenConfiguration().
|
private |
Definition at line 164 of file configurationaccess.cxx.
References Exception, GetConfigurationNode(), maStrings, OpenConfiguration(), and TKGet().
|
private |
Definition at line 284 of file configurationaccess.cxx.
References bReadOnly, Exception, GetPathToConfigurationRoot(), comphelper::InitAnyPropertySequence(), and mxContext.
Referenced by LoadConfiguration(), LoadStrings(), and SaveConfiguration().
void ConfigurationAccess::SaveConfiguration | ( | ) |
Definition at line 242 of file configurationaccess.cxx.
References Any, Exception, GetConfigurationNode(), maSettings, OpenConfiguration(), and OptimizerSettings::SaveSettingsToConfiguration().
Referenced by OptimizerDialog::~OptimizerDialog().
void ConfigurationAccess::SetConfigProperty | ( | const PPPOptimizerTokenEnum | ePropertyToken, |
const css::uno::Any & | aValue | ||
) |
Definition at line 370 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 OptimizerDialog::onFinish(), OptimizerDialog::UpdateConfiguration(), OptimizerDialog::UpdateControlStatesPage4(), and OptimizerDialog::UpdateStatus().
|
private |
Definition at line 105 of file configurationaccess.hxx.
Referenced by GetConfigProperty(), GetConfigurationSequence(), GetOptimizerSettings(), GetOptimizerSettingsByName(), LoadConfiguration(), SaveConfiguration(), and SetConfigProperty().
|
private |
Definition at line 103 of file configurationaccess.hxx.
Referenced by getString(), and LoadStrings().
|
protected |
Definition at line 100 of file configurationaccess.hxx.
Referenced by InformationDialog::InitDialog(), OptimizerDialog::onFinish(), OpenConfiguration(), and OptimizerDialog::UpdateControlStatesPage4().