22#include <com/sun/star/form/binding/XListEntryTypedSource.hpp>
29#include <com/sun/star/table/CellRangeAddress.hpp>
30#include <com/sun/star/lang/XServiceInfo.hpp>
31#include <com/sun/star/lang/XInitialization.hpp>
32#include <com/sun/star/util/XModifyListener.hpp>
42 class OCellListSource;
44 typedef ::cppu::WeakComponentImplHelper < css::form::binding::XListEntryTypedSource
45 , css::util::XModifyListener
46 , css::lang::XServiceInfo
47 , css::lang::XInitialization
52 typedef ::comphelper::OPropertyArrayUsageHelper< OCellListSource >
61 css::uno::Reference< css::sheet::XSpreadsheetDocument >
63 css::uno::Reference< css::table::XCellRange >
71 const css::uno::Reference< css::sheet::XSpreadsheetDocument >& _rxDocument
84 DECLARE_XTYPEPROVIDER()
88 virtual OUString SAL_CALL
getListEntry( sal_Int32 Position ) override;
90 virtual
void SAL_CALL
addListEntryListener( const css::
uno::Reference< css::form::binding::XListEntryListener >& Listener ) override;
91 virtual
void SAL_CALL
removeListEntryListener( const css::
uno::Reference< css::form::binding::XListEntryListener >& Listener ) override;
97 virtual
void SAL_CALL
disposing() override;
115 virtual
void SAL_CALL
modified( const css::
lang::EventObject& aEvent ) override;
116 virtual
void SAL_CALL
disposing( const css::
lang::EventObject& Source ) override;
119 virtual
void SAL_CALL
initialize( const css::
uno::Sequence< css::
uno::Any >& aArguments ) override;
129 css::table::CellRangeAddress
142 sal_Int32 _nRangeRelativeRow,
virtual OUString SAL_CALL getListEntry(sal_Int32 Position) override
void checkDisposed() const
virtual void SAL_CALL disposing() override
virtual void SAL_CALL addListEntryListener(const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
OCellListSource(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_rxDocument)
has XInitialization::initialize been called?
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntries() override
OUString getCellTextContent_noCheck(sal_Int32 _nRangeRelativeRow, css::uno::Any *pAny)
retrieves the text of a cell within our range
css::uno::Reference< css::table::XCellRange > m_xRange
the document where our cell lives
css::table::CellRangeAddress getRangeAddress() const
retrieves the actual address of our cell range @precond our m_xRange is not <NULL>
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removeListEntryListener(const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
::comphelper::OInterfaceContainerHelper3< css::form::binding::XListEntryListener > m_aListEntryListeners
the range of cells we're bound to
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::sheet::XSpreadsheetDocument > m_xDocument
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
bool m_bInitialized
our listeners
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual ~OCellListSource() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntriesTyped(css::uno::Sequence< css::uno::Any > &rDataValues) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual sal_Int32 SAL_CALL getListEntryCount() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
::comphelper::OPropertyContainer OCellListSource_PBase
::cppu::WeakComponentImplHelper< css::form::binding::XListEntryTypedSource, css::util::XModifyListener, css::lang::XServiceInfo, css::lang::XInitialization > OCellListSource_Base
::comphelper::OPropertyArrayUsageHelper< OCellListSource > OCellListSource_PABase
#define DECLARE_XINTERFACE()