21#include <com/sun/star/beans/Property.hpp>
22#include <com/sun/star/uno/Any.hxx>
25#include <unordered_map>
36namespace PropertyHelper
45 const css::uno::Any & rValue,
46 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFact,
47 const OUString & rPreferredName );
55 const css::uno::Any & rValue,
56 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFact,
57 const OUString & rPreferredName );
66 const css::uno::Any & rValue,
67 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFact,
68 const OUString & rPreferredName );
76 const css::uno::Any & rValue,
77 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFact,
78 const OUString & rPreferredName );
86 const css::uno::Any & rValue,
87 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFact,
88 const OUString & rPreferredName );
97 const css::uno::Any & rAny );
105template<
typename Value >
119template<
typename Value >
139 bool operator() (
const css::beans::Property & first,
140 const css::beans::Property & second )
142 return (
first.Name.compareTo( second.Name ) < 0 );
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.
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.
OOO_DLLPUBLIC_CHARTTOOLS void setPropertyValueDefaultAny(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const css::uno::Any &rAny)
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.
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.
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.
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
OOO_DLLPUBLIC_CHARTTOOLS void setEmptyPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key)
Calls setPropertyValueDefault() with an empty Any as value.
void setPropertyValue(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Set a property to a certain value in the given map.
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.
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
constexpr OUStringLiteral first