38using ::com::sun::star::beans::Property;
39using ::com::sun::star::uno::Reference;
40using ::com::sun::star::uno::Sequence;
41using ::com::sun::star::uno::Any;
46const Sequence< Property > & StaticUpDownBarWrapperPropertyArray()
48 static Sequence< Property > aPropSeq = []()
66 static ::cppu::OPropertyArrayHelper aPropHelper( StaticUpDownBarWrapperPropertyArray() );
76 bool bUp, std::shared_ptr<Chart2ModelContact> spChart2ModelContact)
78 , m_aPropertySetName( bUp ? OUString(
"WhiteDay" ) : OUString(
"BlackDay" ))
113 return xPropertySetInfo;
120 const std::vector< rtl::Reference< ChartType > >
aTypes =
130 xPropSet->setPropertyValue( rPropertyName, rValue );
138 const std::vector< rtl::Reference< ChartType > >
aTypes =
148 aRet = xPropSet->getPropertyValue( rPropertyName );
154 OSL_FAIL(
"not implemented");
158 OSL_FAIL(
"not implemented");
162 OSL_FAIL(
"not implemented");
166 OSL_FAIL(
"not implemented");
173 sal_Int32 nMinCount = std::min( rValueSeq.getLength(), rNameSeq.getLength() );
174 for(sal_Int32 nN=0; nN<nMinCount; nN++)
176 OUString aPropertyName( rNameSeq[nN] );
181 catch(
const beans::UnknownPropertyException& )
191 if( rNameSeq.hasElements() )
193 aRetSeq.realloc( rNameSeq.getLength() );
194 auto pRetSeq = aRetSeq.getArray();
195 for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
197 OUString aPropertyName( rNameSeq[nN] );
205 OSL_FAIL(
"not implemented");
209 OSL_FAIL(
"not implemented");
213 OSL_FAIL(
"not implemented");
222 if( aDefault == aValue )
223 return beans::PropertyState_DEFAULT_VALUE;
225 return beans::PropertyState_DIRECT_VALUE;
230 if( rNameSeq.hasElements() )
232 aRetSeq.realloc( rNameSeq.getLength() );
233 auto pRetSeq = aRetSeq.getArray();
234 for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
236 OUString aPropertyName( rNameSeq[nN] );
256 tPropertyValueMap::const_iterator aFound( aStaticDefaults.find( StaticUpDownBarWrapperInfoHelper().getHandleByName( rPropertyName ) ) );
257 if( aFound == aStaticDefaults.end() )
259 return (*aFound).second;
267 for(beans::Property
const & prop : rPropSeq)
274 for(OUString
const & s : rNameSeq)
282 if( rNameSeq.hasElements() )
284 aRetSeq.realloc( rNameSeq.getLength() );
285 auto pRetSeq = aRetSeq.getArray();
286 for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++)
288 OUString aPropertyName( rNameSeq[nN] );
297 return "com.sun.star.comp.chart.ChartArea";
308 "com.sun.star.chart.ChartArea",
309 "com.sun.star.drawing.LineProperties",
310 "com.sun.star.drawing.FillProperties",
311 "com.sun.star.xml.UserDefinedAttributesSupplier"
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact
PropertiesInfo aProperties
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL addPropertiesChangeListener(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL firePropertiesChangeEvent(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListenerContainer
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
OUString m_aPropertySetName
virtual void SAL_CALL setAllPropertiesToDefault() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo declarations.
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
UpDownBarWrapper(bool bUp, std::shared_ptr< Chart2ModelContact > spChart2ModelContact)
virtual void SAL_CALL removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual ~UpDownBarWrapper() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact
virtual void SAL_CALL setPropertiesToDefault(const css::uno::Sequence< OUString > &aPropertyNames) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
sal_Int32 addInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(::std::unique_lock<::std::mutex > &rGuard, const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
#define DBG_UNHANDLED_EXCEPTION(...)
OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK