LibreOffice Module vcl (master) 1
|
#include <configsettings.hxx>
Public Member Functions | |
virtual | ~SettingsConfigItem () override |
OUString | getValue (const OUString &rGroup, const OUString &rKey) const |
void | setValue (const OUString &rGroup, const OUString &rKey, const OUString &rValue) |
Public Member Functions inherited from utl::ConfigItem | |
virtual | ~ConfigItem () override |
ConfigItem (ConfigItem const &)=default | |
ConfigItem (ConfigItem &&)=default | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (ConfigItem &&)=delete |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0 |
const OUString & | GetSubTreeName () const |
bool | IsModified () const |
void | Commit () |
ConfigItemMode | GetMode () const |
Public Member Functions inherited from utl::ConfigurationBroadcaster | |
void | AddListener (utl::ConfigurationListener *pListener) |
void | RemoveListener (utl::ConfigurationListener const *pListener) |
void | NotifyListeners (ConfigurationHints nHint) |
ConfigurationBroadcaster () | |
ConfigurationBroadcaster (ConfigurationBroadcaster const &) | |
virtual | ~ConfigurationBroadcaster () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Static Public Member Functions | |
static SettingsConfigItem * | get () |
Static Public Member Functions inherited from utl::ConfigItem | |
static css::uno::Sequence< OUString > | GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat) |
static css::uno::Sequence< css::uno::Any > | GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales) |
static bool | PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales) |
static bool | ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode) |
static bool | ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales) |
static bool | SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
Private Member Functions | |
virtual void | Notify (const css::uno::Sequence< OUString > &rPropertyNames) override |
void | getValues () |
SettingsConfigItem () | |
virtual void | ImplCommit () override |
Private Attributes | |
std::unordered_map< OUString, SmallOUStrMap > | m_aSettings |
Additional Inherited Members | |
Protected Member Functions inherited from utl::ConfigItem | |
ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE) | |
void | SetModified () |
void | ClearModified () |
css::uno::Sequence< css::uno::Any > | GetProperties (const css::uno::Sequence< OUString > &rNames) |
css::uno::Sequence< sal_Bool > | GetReadOnlyStates (const css::uno::Sequence< OUString > &rNames) |
bool | PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues) |
bool | EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false) |
void | DisableNotification () |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode) |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat) |
bool | ClearNodeSet (const OUString &rNode) |
bool | ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements) |
bool | SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | AddNode (const OUString &rNode, const OUString &rNewNode) |
Definition at line 38 of file configsettings.hxx.
|
private |
Definition at line 47 of file configsettings.cxx.
References getValues(), m_aSettings, and NONE.
Referenced by get().
|
overridevirtual |
Definition at line 54 of file configsettings.cxx.
References utl::ConfigItem::IsModified().
|
static |
Definition at line 39 of file configsettings.cxx.
References ImplGetSVData(), ImplSVData::mpSettingsConfigItem, and SettingsConfigItem().
Referenced by MiscSettings::GetDisablePrinting(), MiscSettings::GetEnableATToolSupport(), ImplAccelDisabled(), vcl::PrintDialog::PrintDialog(), vcl::PrintDialog::readFromSettings(), Printer::StartJob(), and vcl::PrintDialog::storeToSettings().
OUString SettingsConfigItem::getValue | ( | const OUString & | rGroup, |
const OUString & | rKey | ||
) | const |
Definition at line 115 of file configsettings.cxx.
References group, and m_aSettings.
Referenced by vcl::PrintDialog::PrintDialog(), and vcl::PrintDialog::readFromSettings().
|
private |
Definition at line 85 of file configsettings.cxx.
References utl::ConfigItem::GetNodeNames(), utl::ConfigItem::GetProperties(), i, m_aSettings, and SAL_INFO.
Referenced by Notify(), and SettingsConfigItem().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 59 of file configsettings.cxx.
References utl::ConfigItem::AddNode(), m_aSettings, nIndex, pValues, and utl::ConfigItem::ReplaceSetProperties().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 80 of file configsettings.cxx.
References getValues().
void SettingsConfigItem::setValue | ( | const OUString & | rGroup, |
const OUString & | rKey, | ||
const OUString & | rValue | ||
) |
Definition at line 125 of file configsettings.cxx.
References m_aSettings, and utl::ConfigItem::SetModified().
Referenced by Printer::StartJob(), and vcl::PrintDialog::storeToSettings().
|
private |
Definition at line 41 of file configsettings.hxx.
Referenced by getValue(), getValues(), ImplCommit(), and setValue().