22#include <com/sun/star/form/binding/XValueBinding.hpp>
23#include <com/sun/star/util/XModifyBroadcaster.hpp>
30#include <com/sun/star/lang/XServiceInfo.hpp>
31#include <com/sun/star/lang/XInitialization.hpp>
42 class OCellValueBinding;
44 typedef ::cppu::WeakComponentImplHelper < css::form::binding::XValueBinding
45 , css::lang::XServiceInfo
46 , css::util::XModifyBroadcaster
47 , css::util::XModifyListener
48 , css::lang::XInitialization
53 typedef ::comphelper::OPropertyArrayUsageHelper< OCellValueBinding >
62 css::uno::Reference< css::sheet::XSpreadsheetDocument >
64 css::uno::Reference< css::table::XCell >
66 css::uno::Reference< css::text::XTextRange >
75 const css::uno::Reference< css::sheet::XSpreadsheetDocument >& _rxDocument,
89 DECLARE_XTYPEPROVIDER()
95 virtual
void SAL_CALL
setValue( const css::
uno::Any& aValue ) override;
98 virtual
void SAL_CALL
disposing() override;
116 virtual
void SAL_CALL
addModifyListener( const css::
uno::Reference< css::util::XModifyListener >& aListener ) override;
117 virtual
void SAL_CALL
removeModifyListener( const css::
uno::Reference< css::util::XModifyListener >& aListener ) override;
120 virtual
void SAL_CALL
modified( const css::
lang::EventObject& aEvent ) override;
121 virtual
void SAL_CALL
disposing( const css::
lang::EventObject& Source ) override;
124 virtual
void SAL_CALL
initialize( const css::
uno::Sequence< css::
uno::Any >& aArguments ) override;
void checkValueType(const css::uno::Type &_rType) const
void notifyModified()
notifies our modify listeners @precond our mutex is not locked
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
bool m_bListPos
has XInitialization::initialize been called?
css::uno::Reference< css::table::XCell > m_xCell
the document where our cell lives
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getSupportedValueTypes() override
virtual sal_Bool SAL_CALL supportsType(const css::uno::Type &aType) override
virtual css::uno::Any SAL_CALL getValue(const css::uno::Type &aType) override
virtual ~OCellValueBinding() override
bool m_bInitialized
our modify listeners
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &_rValue, sal_Int32 _nHandle) const override
void checkDisposed() const
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_aModifyListeners
the cell we're bound to, for text access
OCellValueBinding(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_rxDocument, bool _bListPos)
constructed as ListPositionCellBinding?
virtual void SAL_CALL disposing() override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL setValue(const css::uno::Any &aValue) override
css::uno::Reference< css::sheet::XSpreadsheetDocument > m_xDocument
css::uno::Reference< css::text::XTextRange > m_xCellText
the cell we're bound to, for double value access
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
::comphelper::OPropertyArrayUsageHelper< OCellValueBinding > OCellValueBinding_PABase
::cppu::WeakComponentImplHelper< css::form::binding::XValueBinding, css::lang::XServiceInfo, css::util::XModifyBroadcaster, css::util::XModifyListener, css::lang::XInitialization > OCellValueBinding_Base
::comphelper::OPropertyContainer OCellValueBinding_PBase
#define DECLARE_XINTERFACE()