25#include <unonames.hxx>
26#include <com/sun/star/beans/XPropertySet.hpp>
42 return aEquationPropertyMap;
48 const css::uno::Reference< css::beans::XPropertySet > & rPropertySet,
52 const awt::Size* pRefSize ) :
56 rPropertySet, rItemPool, rDrawModel,
57 xNamedPropertyContainerFactory,
71 pConv->FillItemSet( rOutItemSet );
82 bResult = pConv->ApplyItemSet( rItemSet );
97 ItemPropertyMapType::const_iterator aIt( rMap.find( nWhichId ));
99 if( aIt == rMap.end())
102 rOutProperty =(*aIt).second;
107 sal_uInt16 nWhichId,
const SfxItemSet & rItemSet )
109 bool bChanged =
false;
113 case SID_ATTR_NUMBERFORMAT_VALUE:
115 uno::Any aValue(
static_cast< sal_Int32
>(
131 sal_uInt16 nWhichId,
SfxItemSet & rOutItemSet )
const
135 case SID_ATTR_NUMBERFORMAT_VALUE:
137 sal_Int32 nFormatKey = 0;
const WhichRangesContainer nRegEquationWhichPairs(svl::Items< XATTR_LINE_FIRST, XATTR_LINE_LAST, XATTR_FILL_FIRST, XATTR_FILL_LAST, SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, EE_ITEMS_START, EE_ITEMS_END, SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_VALUE, SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING >)
sal_uInt32 GetValue() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
This class serves for conversion between properties of an XPropertySet and SfxItems in SfxItemSets.
virtual void FillItemSet(SfxItemSet &rOutItemSet) const
applies all properties that can be mapped to items into the given item set.
std::pair< tPropertyNameType, tMemberIdType > tPropertyNameWithMemberId
const css::uno::Reference< css::beans::XPropertySet > & GetPropertySet() const
Returns the XPropertySet that was given in the CTOR and is used to apply items in ApplyItemSet().
virtual bool ApplyItemSet(const SfxItemSet &rItemSet)
applies all properties that are results of a conversion from all items in rItemSet to the internal XP...
virtual ~RegressionEquationItemConverter() override
virtual void FillSpecialItem(sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const override
for items that can not be mapped directly to a property.
std::vector< std::unique_ptr< ItemConverter > > m_aConverters
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
RegressionEquationItemConverter(const css::uno::Reference< css::beans::XPropertySet > &rPropertySet, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::uno::Reference< css::lang::XMultiServiceFactory > &xNamedPropertyContainerFactory, const css::awt::Size *pRefSize)
virtual bool ApplySpecialItem(sal_uInt16 nWhichId, const SfxItemSet &rItemSet) override
for items that can not be mapped directly to a property.
virtual void FillItemSet(SfxItemSet &rOutItemSet) const override
applies all properties that can be mapped to items into the given item set.
virtual bool GetItemProperty(tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const override
implement this method to return a Property object for a given which id.
virtual bool ApplyItemSet(const SfxItemSet &rItemSet) override
applies all properties that are results of a conversion from all items in rItemSet to the internal XP...
std::map< ItemConverter::tWhichIdType, std::pair< ItemConverter::tPropertyNameType, ItemConverter::tMemberIdType > > ItemPropertyMapType
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
constexpr OUStringLiteral CHART_UNONAME_NUMFMT