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 (css::uno::Reference< css::uno::XComponentContext > const &context)
 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 241 of file configuration.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename T , typename U >
static U comphelper::ConfigurationLocalizedProperty< T, U >::get ( css::uno::Reference< css::uno::XComponentContext > const &  context)
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 boost::optional<U'>.

Definition at line 248 of file configuration.hxx.

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

template<typename T , typename U >
ConfigurationLocalizedProperty& comphelper::ConfigurationLocalizedProperty< T, U >::operator= ( const ConfigurationLocalizedProperty< T, U > &  )
privatedelete
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 boost::optional<U'>.

Definition at line 264 of file configuration.hxx.

References comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue().


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