LibreOffice Module chart2 (master) 1
Functions
chart::PropertyHelper Namespace Reference

Functions

OOO_DLLPUBLIC_CHARTTOOLS OUString addLineDashUniqueNameToTable (const css::uno::Any &rValue, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 adds a line dash with a unique name to the gradient obtained by the given factory. More...
 
OOO_DLLPUBLIC_CHARTTOOLS OUString addGradientUniqueNameToTable (const css::uno::Any &rValue, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 adds a gradient with a unique name to the gradient obtained by the given factory. More...
 
OOO_DLLPUBLIC_CHARTTOOLS OUString addTransparencyGradientUniqueNameToTable (const css::uno::Any &rValue, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 adds a transparency gradient with a unique name to the gradient obtained by the given factory. More...
 
OOO_DLLPUBLIC_CHARTTOOLS OUString addHatchUniqueNameToTable (const css::uno::Any &rValue, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 adds a hatch with a unique name to the gradient obtained by the given factory. More...
 
OOO_DLLPUBLIC_CHARTTOOLS OUString addBitmapUniqueNameToTable (const css::uno::Any &rValue, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 adds a bitmap with a unique name to the gradient obtained by the given factory. More...
 
OOO_DLLPUBLIC_CHARTTOOLS void setPropertyValueAny (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 Set a property to a certain value in the given map. More...
 
template<typename Value >
void setPropertyValue (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
 Set a property to a certain value in the given map. More...
 
template<>
void setPropertyValue< css::uno::Any > (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 
OOO_DLLPUBLIC_CHARTTOOLS void setPropertyValueDefaultAny (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 
template<typename Value >
void setPropertyValueDefault (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
 Calls setPropertyValue() but asserts that the given property hasn't been set before. More...
 
template<>
void setPropertyValueDefault< css::uno::Any > (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 Calls setPropertyValue() but asserts that the given property hasn't been set before. More...
 
OOO_DLLPUBLIC_CHARTTOOLS void setEmptyPropertyValueDefault (tPropertyValueMap &rOutMap, tPropertyValueMapKey key)
 Calls setPropertyValueDefault() with an empty Any as value. More...
 
OUString addLineDashUniqueNameToTable (const Any &rValue, const Reference< lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 
OUString addGradientUniqueNameToTable (const Any &rValue, const Reference< lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 
OUString addTransparencyGradientUniqueNameToTable (const Any &rValue, const Reference< lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 
OUString addHatchUniqueNameToTable (const Any &rValue, const Reference< lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 
OUString addBitmapUniqueNameToTable (const Any &rValue, const Reference< lang::XMultiServiceFactory > &xFact, const OUString &rPreferredName)
 
void setPropertyValueAny (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const uno::Any &rAny)
 
template<>
void setPropertyValue< css::uno::Any > (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 
void setPropertyValueDefaultAny (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const uno::Any &rAny)
 
template<>
void setPropertyValueDefault< css::uno::Any > (tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
 Calls setPropertyValue() but asserts that the given property hasn't been set before. More...
 

Function Documentation

◆ addBitmapUniqueNameToTable() [1/2]

OUString chart::PropertyHelper::addBitmapUniqueNameToTable ( const Any &  rValue,
const Reference< lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

Definition at line 246 of file PropertyHelper.cxx.

◆ addBitmapUniqueNameToTable() [2/2]

OOO_DLLPUBLIC_CHARTTOOLS OUString chart::PropertyHelper::addBitmapUniqueNameToTable ( const css::uno::Any &  rValue,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

adds a bitmap with a unique name to the gradient obtained by the given factory.

Returns
The name used for storing this element in the table

Referenced by chart::wrapper::GraphicPropertyItemConverter::ApplySpecialItem(), and chart::sidebar::ChartAreaPanel::setFillStyleAndBitmap().

◆ addGradientUniqueNameToTable() [1/2]

OUString chart::PropertyHelper::addGradientUniqueNameToTable ( const Any &  rValue,
const Reference< lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

Definition at line 195 of file PropertyHelper.cxx.

◆ addGradientUniqueNameToTable() [2/2]

OOO_DLLPUBLIC_CHARTTOOLS OUString chart::PropertyHelper::addGradientUniqueNameToTable ( const css::uno::Any &  rValue,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

adds a gradient with a unique name to the gradient obtained by the given factory.

Returns
The name used for storing this element in the table

Referenced by chart::wrapper::GraphicPropertyItemConverter::ApplySpecialItem(), chart::ChartController::executeDispatch_FillGradient(), and chart::sidebar::ChartAreaPanel::setFillStyleAndGradient().

◆ addHatchUniqueNameToTable() [1/2]

OUString chart::PropertyHelper::addHatchUniqueNameToTable ( const Any &  rValue,
const Reference< lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

Definition at line 229 of file PropertyHelper.cxx.

◆ addHatchUniqueNameToTable() [2/2]

OOO_DLLPUBLIC_CHARTTOOLS OUString chart::PropertyHelper::addHatchUniqueNameToTable ( const css::uno::Any &  rValue,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

adds a hatch with a unique name to the gradient obtained by the given factory.

Returns
The name used for storing this element in the table

Referenced by chart::wrapper::GraphicPropertyItemConverter::ApplySpecialItem().

◆ addLineDashUniqueNameToTable() [1/2]

OUString chart::PropertyHelper::addLineDashUniqueNameToTable ( const Any &  rValue,
const Reference< lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

Definition at line 178 of file PropertyHelper.cxx.

◆ addLineDashUniqueNameToTable() [2/2]

OOO_DLLPUBLIC_CHARTTOOLS OUString chart::PropertyHelper::addLineDashUniqueNameToTable ( const css::uno::Any &  rValue,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

adds a line dash with a unique name to the gradient obtained by the given factory.

Returns
The name used for storing this element in the table

Referenced by chart::wrapper::GraphicPropertyItemConverter::ApplySpecialItem(), and chart::sidebar::ChartLineStyleWrapper::operator()().

◆ addTransparencyGradientUniqueNameToTable() [1/2]

OUString chart::PropertyHelper::addTransparencyGradientUniqueNameToTable ( const Any &  rValue,
const Reference< lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

Definition at line 212 of file PropertyHelper.cxx.

◆ addTransparencyGradientUniqueNameToTable() [2/2]

OOO_DLLPUBLIC_CHARTTOOLS OUString chart::PropertyHelper::addTransparencyGradientUniqueNameToTable ( const css::uno::Any &  rValue,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  xFact,
const OUString &  rPreferredName 
)

adds a transparency gradient with a unique name to the gradient obtained by the given factory.

Returns
The name used for storing this element in the table

Referenced by chart::wrapper::GraphicPropertyItemConverter::ApplySpecialItem(), and chart::sidebar::ChartAreaPanel::setFillFloatTransparence().

◆ setEmptyPropertyValueDefault()

void chart::PropertyHelper::setEmptyPropertyValueDefault ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key 
)

Calls setPropertyValueDefault() with an empty Any as value.

Definition at line 290 of file PropertyHelper.cxx.

References setPropertyValueDefault().

Referenced by chart::DataPointProperties::AddDefaultsToMap().

◆ setPropertyValue()

template<typename Value >
void chart::PropertyHelper::setPropertyValue ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const Value &  value 
)

Set a property to a certain value in the given map.

This works for properties that are already set, and those which are not yet in the map.

Parameters
valueis the value of type Value that will be put into a variant type Any before set in the property map.

Definition at line 106 of file PropertyHelper.hxx.

References setPropertyValueAny(), and value.

Referenced by chart::Wall::GetDefaultValue(), setPropertyValueDefaultAny(), chart::StaticAxisDefaults(), chart::StaticDataSeriesDefaults(), and chart::StaticLegendDefaults().

◆ setPropertyValue< css::uno::Any >() [1/2]

template<>
void chart::PropertyHelper::setPropertyValue< css::uno::Any > ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

◆ setPropertyValue< css::uno::Any >() [2/2]

template<>
void chart::PropertyHelper::setPropertyValue< css::uno::Any > ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

◆ setPropertyValueAny() [1/2]

OOO_DLLPUBLIC_CHARTTOOLS void chart::PropertyHelper::setPropertyValueAny ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

Set a property to a certain value in the given map.

This works for properties that are already set, and those which are not yet in the map.

Parameters
anyis the value encapsulated in the variant type Any

Referenced by setPropertyValue(), and setPropertyValue< css::uno::Any >().

◆ setPropertyValueAny() [2/2]

void chart::PropertyHelper::setPropertyValueAny ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const uno::Any rAny 
)

Definition at line 263 of file PropertyHelper.cxx.

◆ setPropertyValueDefault()

template<typename Value >
void chart::PropertyHelper::setPropertyValueDefault ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const Value &  value 
)

◆ setPropertyValueDefault< css::uno::Any >() [1/2]

template<>
void chart::PropertyHelper::setPropertyValueDefault< css::uno::Any > ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

Calls setPropertyValue() but asserts that the given property hasn't been set before.

Definition at line 285 of file PropertyHelper.cxx.

References setPropertyValueDefault< css::uno::Any >(), and setPropertyValueDefaultAny().

Referenced by setPropertyValueDefault< css::uno::Any >().

◆ setPropertyValueDefault< css::uno::Any >() [2/2]

template<>
void chart::PropertyHelper::setPropertyValueDefault< css::uno::Any > ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

Calls setPropertyValue() but asserts that the given property hasn't been set before.

Definition at line 285 of file PropertyHelper.cxx.

References setPropertyValueDefault< css::uno::Any >(), and setPropertyValueDefaultAny().

Referenced by setPropertyValueDefault< css::uno::Any >().

◆ setPropertyValueDefaultAny() [1/2]

OOO_DLLPUBLIC_CHARTTOOLS void chart::PropertyHelper::setPropertyValueDefaultAny ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const css::uno::Any &  rAny 
)

◆ setPropertyValueDefaultAny() [2/2]

void chart::PropertyHelper::setPropertyValueDefaultAny ( tPropertyValueMap rOutMap,
tPropertyValueMapKey  key,
const uno::Any rAny 
)

Definition at line 278 of file PropertyHelper.cxx.

References setPropertyValue().