LibreOffice Module comphelper (master) 1
Static Public Member Functions | Private Member Functions | List of all members
comphelper::ConfigurationLocalizedProperty< T, U > Struct Template Reference

A type-safe wrapper around a localized configuration property. More...

#include <configuration.hxx>

Static Public Member Functions

static U get ()
 Get the value of the given localized configuration property, for the locale currently set at the com.sun.star.configuration.theDefaultProvider. More...
 
static void set (U const &value, std::shared_ptr< ConfigurationChanges > const &batch)
 Set the value of the given localized configuration property, for the locale currently set at the com.sun.star.configuration.theDefaultProvider, via a given changes batch. More...
 

Private Member Functions

 ConfigurationLocalizedProperty (const ConfigurationLocalizedProperty &)=delete
 
ConfigurationLocalizedPropertyoperator= (const ConfigurationLocalizedProperty &)=delete
 
 ConfigurationLocalizedProperty ()=delete
 
 ~ConfigurationLocalizedProperty ()=delete
 

Detailed Description

template<typename T, typename U>
struct comphelper::ConfigurationLocalizedProperty< T, U >

A type-safe wrapper around a localized configuration property.

Automatically generated headers for the various localized configuration properties derive from this template and make available its member functions to access each given localized configuration property.

Definition at line 247 of file configuration.hxx.

Constructor & Destructor Documentation

◆ ConfigurationLocalizedProperty() [1/2]

template<typename T , typename U >
comphelper::ConfigurationLocalizedProperty< T, U >::ConfigurationLocalizedProperty ( const ConfigurationLocalizedProperty< T, U > &  )
privatedelete

◆ ConfigurationLocalizedProperty() [2/2]

template<typename T , typename U >
comphelper::ConfigurationLocalizedProperty< T, U >::ConfigurationLocalizedProperty ( )
privatedelete

◆ ~ConfigurationLocalizedProperty()

template<typename T , typename U >
comphelper::ConfigurationLocalizedProperty< T, U >::~ConfigurationLocalizedProperty ( )
privatedelete

Member Function Documentation

◆ get()

template<typename T , typename U >
static U comphelper::ConfigurationLocalizedProperty< T, U >::get ( )
inlinestatic

Get the value of the given localized configuration property, for the locale currently set at the com.sun.star.configuration.theDefaultProvider.

For nillable properties, U is of type std::optional<U'>.

Definition at line 254 of file configuration.hxx.

References a, comphelper::detail::Convert< T >::fromAny(), comphelper::detail::ConfigurationWrapper::get(), and U.

◆ operator=()

template<typename T , typename U >
ConfigurationLocalizedProperty & comphelper::ConfigurationLocalizedProperty< T, U >::operator= ( const ConfigurationLocalizedProperty< T, U > &  )
privatedelete

◆ set()

template<typename T , typename U >
static void comphelper::ConfigurationLocalizedProperty< T, U >::set ( U const &  value,
std::shared_ptr< ConfigurationChanges > const &  batch 
)
inlinestatic

Set the value of the given localized configuration property, for the locale currently set at the com.sun.star.configuration.theDefaultProvider, via a given changes batch.

For nillable properties, U is of type std::optional<U'>.

Definition at line 270 of file configuration.hxx.

References comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(), and value.


The documentation for this struct was generated from the following file: