LibreOffice Module vcl (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::SettingsConfigItem Class Referencefinal

#include <configsettings.hxx>

Inheritance diagram for vcl::SettingsConfigItem:
[legend]
Collaboration diagram for vcl::SettingsConfigItem:
[legend]

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
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (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 ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Static Public Member Functions

static SettingsConfigItemget ()
 
- 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, SmallOUStrMapm_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_BoolGetReadOnlyStates (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)
 

Detailed Description

Definition at line 38 of file configsettings.hxx.

Constructor & Destructor Documentation

◆ SettingsConfigItem()

SettingsConfigItem::SettingsConfigItem ( )
private

Definition at line 47 of file configsettings.cxx.

References getValues(), m_aSettings, and NONE.

Referenced by get().

◆ ~SettingsConfigItem()

SettingsConfigItem::~SettingsConfigItem ( )
overridevirtual

Definition at line 54 of file configsettings.cxx.

References utl::ConfigItem::IsModified().

Member Function Documentation

◆ get()

SettingsConfigItem * SettingsConfigItem::get ( )
static

◆ getValue()

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().

◆ getValues()

void SettingsConfigItem::getValues ( )
private

◆ ImplCommit()

void SettingsConfigItem::ImplCommit ( )
overrideprivatevirtual

◆ Notify()

void SettingsConfigItem::Notify ( const css::uno::Sequence< OUString > &  rPropertyNames)
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 80 of file configsettings.cxx.

References getValues().

◆ setValue()

void SettingsConfigItem::setValue ( const OUString &  rGroup,
const OUString &  rKey,
const OUString &  rValue 
)

Member Data Documentation

◆ m_aSettings

std::unordered_map< OUString, SmallOUStrMap > vcl::SettingsConfigItem::m_aSettings
private

Definition at line 41 of file configsettings.hxx.

Referenced by getValue(), getValues(), ImplCommit(), and setValue().


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