16#include <osl/diagnose.h>
21#include <document.hxx>
22#include <unonames.hxx>
29SC_SIMPLE_SERVICE_INFO( PivotTableDataSequence,
"PivotTableDataSequence",
"com.sun.star.chart2.data.DataSequence")
39 return aDataSequencePropertyMap_Impl;
43 std::vector<ValueAndFormat>&& rData)
44 : m_pDocument(pDocument)
45 , m_aID(
std::move(sID))
63 if (rHint.
GetId() == SfxHintId::Dying)
74 throw uno::RuntimeException();
77 auto pSeq =
aSeq.getArray();
83 pSeq[
i] <<= double(rItem.m_fValue);
85 pSeq[
i] <<= rItem.m_aString;
98 throw uno::RuntimeException();
101 auto pSeq =
aSeq.getArray();
106 pSeq[
i] = rItem.m_fValue;
118 throw uno::RuntimeException();
121 auto pSeq =
aSeq.getArray();
127 pSeq[
i] = rItem.m_aString;
144 throw uno::RuntimeException();
146 uno::Sequence<OUString>
aSeq;
155 return m_aData[0].m_nNumberFormat;
159 SAL_WARN(
"sc.ui",
"Passed invalid index to getNumberFormatKeyByIndex(). Will return default value '0'.");
193 if (rObj == aListener)
214 throw lang::IllegalArgumentException();
222 throw beans::UnknownPropertyException(rPropertyName);
234 css::uno::Sequence<sal_Int32> aHiddenValues;
235 aReturn <<= aHiddenValues;
246 throw beans::UnknownPropertyException(rPropertyName);
252 const uno::Reference< beans::XPropertyChangeListener>& )
254 OSL_FAIL(
"Not yet implemented");
259 const uno::Reference< beans::XPropertyChangeListener>& )
261 OSL_FAIL(
"Not yet implemented");
266 const uno::Reference< beans::XVetoableChangeListener>& )
268 OSL_FAIL(
"Not yet implemented");
273 const uno::Reference< beans::XVetoableChangeListener>& )
275 OSL_FAIL(
"Not yet implemented");
void AddUnoObject(SfxListener &rObject)
void RemoveUnoObject(SfxListener &rObject)
const SfxItemPropertyMap & getPropertyMap() const
css::uno::Type const & get()
virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
SfxItemPropertySet m_aPropSet
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel(css::chart2::data::LabelOrigin nOrigin) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual sal_Int32 SAL_CALL getNumberFormatKeyByIndex(sal_Int32 nIndex) override
virtual void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
std::vector< css::uno::Reference< css::util::XModifyListener > > m_aValueListeners
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &rListener) override
std::vector< ValueAndFormat > m_aData
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
css::chart2::data::DataSequenceRole m_aRole
virtual void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &rListener) override
virtual ~PivotTableDataSequence() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual OUString SAL_CALL getSourceRangeRepresentation() override
PivotTableDataSequence(ScDocument *pDocument, OUString sID, std::vector< ValueAndFormat > &&rData)
virtual void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &rListener) override
Sequence< sal_Int8 > aSeq
#define SAL_WARN(area, stream)
#define SC_SIMPLE_SERVICE_INFO(ClassName, ClassNameAscii, ServiceAscii)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
CAUTION! The following defines must be in the same namespace as the respective type.
static o3tl::span< const SfxItemPropertyMapEntry > lcl_GetDataSequencePropertyMap()
constexpr OUStringLiteral SC_UNONAME_TIME_BASED
constexpr OUStringLiteral SC_UNONAME_HIDDENVALUES
constexpr OUStringLiteral SC_UNONAME_ROLE
constexpr OUStringLiteral SC_UNONAME_INCLUDEHIDDENCELLS
constexpr OUStringLiteral SC_UNONAME_HAS_STRING_LABEL