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>
44 typedef ::cppu::WeakAggComponentImplHelper4 < css::form::binding::XListEntryTypedSource
45 , css::util::XModifyListener
46 , css::lang::XServiceInfo
47 , css::lang::XInitialization
52 typedef ::comphelper::OPropertyArrayUsageHelper< OCellListSource >
56 ,
public OCellListSource_Base
57 ,
public OCellListSource_PBase
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;
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;
129 css::table::CellRangeAddress
142 sal_Int32 _nRangeRelativeRow,
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
OCellListSource(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_rxDocument)
has XInitialization::initialize been called?
virtual sal_Int32 SAL_CALL getListEntryCount() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntries() override
::comphelper::OPropertyContainer OCellListSource_PBase
css::uno::Reference< css::table::XCellRange > m_xRange
the document where our cell lives
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntriesTyped(css::uno::Sequence< css::uno::Any > &rDataValues) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool m_bInitialized
our listeners
css::uno::Reference< css::sheet::XSpreadsheetDocument > m_xDocument
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
::comphelper::OInterfaceContainerHelper3< css::form::binding::XListEntryListener > m_aListEntryListeners
the range of cells we're bound to
virtual OUString SAL_CALL getImplementationName() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual void SAL_CALL removeListEntryListener(const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
::comphelper::OPropertyArrayUsageHelper< OCellListSource > OCellListSource_PABase
void checkDisposed() const
css::table::CellRangeAddress getRangeAddress() const
retrieves the actual address of our cell range our m_xRange is not
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual OUString SAL_CALL getListEntry(sal_Int32 Position) override
virtual ~OCellListSource() override
virtual void SAL_CALL disposing() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
OUString getCellTextContent_noCheck(sal_Int32 _nRangeRelativeRow, css::uno::Any *pAny)
retrieves the text of a cell within our range
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
::cppu::WeakAggComponentImplHelper4< css::form::binding::XListEntryTypedSource, css::util::XModifyListener, css::lang::XServiceInfo, css::lang::XInitialization > OCellListSource_Base
virtual void SAL_CALL addListEntryListener(const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
#define DECLARE_XINTERFACE()