21#include <com/sun/star/sheet/XDataPilotTable.hpp>
22#include <ooo/vba/excel/XPivotTable.hpp>
29 uno::Reference< sheet::XDataPilotTable > xTable( aSource, uno::UNO_QUERY_THROW );
39 PivotTableEnumeration(
const uno::Reference< XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< container::XEnumeration >& xEnumeration ) :
EnumerationHelperImpl( xParent, xContext, xEnumeration ) {}
41 virtual uno::Any SAL_CALL nextElement( )
override
54uno::Reference< container::XEnumeration >
57 uno::Reference< container::XEnumerationAccess > xEnumAccess(
m_xIndexAccess, uno::UNO_QUERY_THROW );
58 return new PivotTableEnumeration(
mxParent,
mxContext, xEnumAccess->createEnumeration() );
76 return "ScVbaPivotTables";
79css::uno::Sequence<OUString>
82 static uno::Sequence< OUString >
const sNames
84 "ooo.vba.excel.PivotTables"
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
css::uno::Reference< css::container::XIndexAccess > m_xIndexAccess
virtual OUString getServiceImplName() override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual css::uno::Sequence< OUString > getServiceNames() override
ScVbaPivotTables(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess)
virtual css::uno::Any createCollectionObject(const css::uno::Any &aSource) override
virtual css::uno::Type SAL_CALL getElementType() override
css::uno::Type const & get()
static uno::Any DataPilotToPivotTable(const uno::Any &aSource, const uno::Reference< uno::XComponentContext > &xContext)