LibreOffice Module forms (master) 1
|
maintains translation tables format key <-> enum value More...
#include <limitedformats.hxx>
Protected Member Functions | |
OLimitedFormats (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const sal_Int16 _nClassId) | |
ctor More... | |
~OLimitedFormats () | |
void | setAggregateSet (const css::uno::Reference< css::beans::XFastPropertySet > &_rxAggregate, sal_Int32 _nOriginalPropertyHandle) |
void | getFormatKeyPropertyValue (css::uno::Any &_rValue) const |
bool | convertFormatKeyPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue) |
void | setFormatKeyPropertyValue (const css::uno::Any &_rNewValue) |
const css::uno::Reference< css::util::XNumberFormatsSupplier > & | getFormatsSupplier () const |
Private Member Functions | |
void | acquireSupplier (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) |
void | releaseSupplier () |
Static Private Member Functions | |
static void | ensureTableInitialized (const sal_Int16 _nTableId) |
static void | clearTable (const sal_Int16 _nTableId) |
Private Attributes | |
sal_Int32 | m_nFormatEnumPropertyHandle |
const sal_Int16 | m_nTableId |
css::uno::Reference< css::beans::XFastPropertySet > | m_xAggregate |
Static Private Attributes | |
static sal_Int32 | s_nInstanceCount |
::osl::Mutex | s_aMutex |
static css::uno::Reference< css::util::XNumberFormatsSupplier > | s_xStandardFormats |
maintains translation tables format key <-> enum value
Used for controls which provide a limited number for (standard) formats, which should be available as format keys.
Definition at line 38 of file limitedformats.hxx.
|
protected |
ctor
The class id is used to determine the translation table to use. All instances which pass the same value here share one table.
Definition at line 132 of file limitedformats.cxx.
References acquireSupplier(), ensureTableInitialized(), and m_nTableId.
|
protected |
Definition at line 142 of file limitedformats.cxx.
References releaseSupplier().
|
private |
Definition at line 352 of file limitedformats.cxx.
References frm::getLocale(), s_aMutex, s_nInstanceCount, and s_xStandardFormats.
Referenced by OLimitedFormats().
|
staticprivate |
Definition at line 202 of file limitedformats.cxx.
References frm::lcl_getFormatTable(), and s_aMutex.
Referenced by releaseSupplier().
|
protected |
Definition at line 270 of file limitedformats.cxx.
References Any, frm::lcl_getFormatTable(), m_nFormatEnumPropertyHandle, m_nTableId, and m_xAggregate.
Referenced by frm::ODateModel::convertFastPropertyValue(), and frm::OTimeModel::convertFastPropertyValue().
|
staticprivate |
Definition at line 148 of file limitedformats.cxx.
References Exception, frm::getLocale(), frm::lcl_getFormatTable(), s_aMutex, and s_xStandardFormats.
Referenced by OLimitedFormats().
|
protected |
Definition at line 239 of file limitedformats.cxx.
References Any, frm::lcl_getFormatTable(), m_nFormatEnumPropertyHandle, m_nTableId, m_xAggregate, and nValue.
Referenced by frm::ODateModel::getFastPropertyValue(), and frm::OTimeModel::getFastPropertyValue().
|
inlineprotected |
Definition at line 79 of file limitedformats.hxx.
References s_xStandardFormats.
Referenced by frm::ODateModel::getFastPropertyValue(), and frm::OTimeModel::getFastPropertyValue().
|
private |
Definition at line 362 of file limitedformats.cxx.
References clearTable(), s_aMutex, s_nInstanceCount, and s_xStandardFormats.
Referenced by ~OLimitedFormats().
|
protected |
Definition at line 215 of file limitedformats.cxx.
References Exception, m_nFormatEnumPropertyHandle, and m_xAggregate.
Referenced by frm::ODateModel::~ODateModel(), and frm::OTimeModel::~OTimeModel().
|
protected |
Definition at line 339 of file limitedformats.cxx.
References m_nFormatEnumPropertyHandle, and m_xAggregate.
Referenced by frm::ODateModel::setFastPropertyValue_NoBroadcast(), and frm::OTimeModel::setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 46 of file limitedformats.hxx.
Referenced by convertFormatKeyPropertyValue(), getFormatKeyPropertyValue(), setAggregateSet(), and setFormatKeyPropertyValue().
|
private |
Definition at line 47 of file limitedformats.hxx.
Referenced by convertFormatKeyPropertyValue(), getFormatKeyPropertyValue(), and OLimitedFormats().
|
private |
Definition at line 49 of file limitedformats.hxx.
Referenced by convertFormatKeyPropertyValue(), getFormatKeyPropertyValue(), setAggregateSet(), and setFormatKeyPropertyValue().
|
staticprivate |
Definition at line 42 of file limitedformats.hxx.
Referenced by acquireSupplier(), clearTable(), ensureTableInitialized(), and releaseSupplier().
|
staticprivate |
Definition at line 41 of file limitedformats.hxx.
Referenced by acquireSupplier(), and releaseSupplier().
|
staticprivate |
Definition at line 44 of file limitedformats.hxx.
Referenced by acquireSupplier(), ensureTableInitialized(), getFormatsSupplier(), and releaseSupplier().