LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
calc::OCellValueBinding Class Reference

#include <cellvaluebinding.hxx>

Inheritance diagram for calc::OCellValueBinding:
[legend]
Collaboration diagram for calc::OCellValueBinding:
[legend]

Public Member Functions

 OCellValueBinding (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_rxDocument, bool _bListPos)
 constructed as ListPositionCellBinding? More...
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

virtual ~OCellValueBinding () override
 
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 void SAL_CALL setValue (const css::uno::Any &aValue) override
 
virtual void SAL_CALL disposing () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &_rValue, sal_Int32 _nHandle) const override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual void SAL_CALL addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
virtual void SAL_CALL removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override
 
virtual void SAL_CALL modified (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const=0
 

Private Member Functions

void checkDisposed () const
 
void checkValueType (const css::uno::Type &_rType) const
 
void checkInitialized ()
 
void notifyModified ()
 notifies our modify listeners @precond our mutex is not locked More...
 
void setBooleanFormat ()
 
 OCellValueBinding (const OCellValueBinding &)=delete
 
OCellValueBindingoperator= (const OCellValueBinding &)=delete
 

Private Attributes

css::uno::Reference< css::sheet::XSpreadsheetDocument > m_xDocument
 
css::uno::Reference< css::table::XCell > m_xCell
 the document where our cell lives More...
 
css::uno::Reference< css::text::XTextRange > m_xCellText
 the cell we're bound to, for double value access More...
 
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_aModifyListeners
 the cell we're bound to, for text access More...
 
bool m_bInitialized
 our modify listeners More...
 
bool m_bListPos
 has XInitialization::initialize been called? More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static std::mutextheMutex ()
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 56 of file cellvaluebinding.hxx.

Constructor & Destructor Documentation

◆ OCellValueBinding() [1/2]

calc::OCellValueBinding::OCellValueBinding ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  _rxDocument,
bool  _bListPos 
)

constructed as ListPositionCellBinding?

References DECLARE_XINTERFACE.

◆ ~OCellValueBinding()

calc::OCellValueBinding::~OCellValueBinding ( )
overrideprotectedvirtual

Definition at line 77 of file cellvaluebinding.cxx.

References dispose().

◆ OCellValueBinding() [2/2]

calc::OCellValueBinding::OCellValueBinding ( const OCellValueBinding )
privatedelete

Member Function Documentation

◆ addModifyListener()

void SAL_CALL calc::OCellValueBinding::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overrideprotectedvirtual

Definition at line 442 of file cellvaluebinding.cxx.

◆ checkDisposed()

void calc::OCellValueBinding::checkDisposed ( ) const
private

Definition at line 393 of file cellvaluebinding.cxx.

◆ checkInitialized()

void calc::OCellValueBinding::checkInitialized ( )
private

Definition at line 400 of file cellvaluebinding.cxx.

◆ checkValueType()

void calc::OCellValueBinding::checkValueType ( const css::uno::Type &  _rType) const
private

Definition at line 406 of file cellvaluebinding.cxx.

References sMessage, and supportsType().

◆ createArrayHelper()

cppu::IPropertyArrayHelper * calc::OCellValueBinding::createArrayHelper ( ) const
overrideprotectedvirtual

◆ disposing() [1/2]

void SAL_CALL calc::OCellValueBinding::disposing ( )
overrideprotectedvirtual

Definition at line 90 of file cellvaluebinding.cxx.

◆ disposing() [2/2]

virtual void SAL_CALL calc::OCellValueBinding::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

◆ getFastPropertyValue() [1/4]

void SAL_CALL calc::OCellValueBinding::getFastPropertyValue ( css::uno::Any &  _rValue,
sal_Int32  _nHandle 
) const
overrideprotectedvirtual

Reimplemented from comphelper::OPropertyContainer.

Definition at line 121 of file cellvaluebinding.cxx.

References PROP_HANDLE_BOUND_CELL.

◆ getFastPropertyValue() [2/4]

virtual void SAL_CALL comphelper::OPropertyContainer::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
virtual

Reimplemented from comphelper::OPropertyContainer.

◆ getFastPropertyValue() [3/4]

virtual css::uno::Any SAL_CALL comphelper::OPropertyContainer::getFastPropertyValue ( sal_Int32  nHandle)

◆ getFastPropertyValue() [4/4]

virtual void comphelper::OPropertyContainer::getFastPropertyValue ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rValue,
sal_Int32  nHandle 
) const

◆ getImplementationName()

OUString SAL_CALL calc::OCellValueBinding::getImplementationName ( )
overrideprotectedvirtual

Definition at line 421 of file cellvaluebinding.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL calc::OCellValueBinding::getInfoHelper ( )
overrideprotected

Definition at line 109 of file cellvaluebinding.cxx.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL calc::OCellValueBinding::getPropertySetInfo ( )
overrideprotectedvirtual

Definition at line 104 of file cellvaluebinding.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL calc::OCellValueBinding::getSupportedServiceNames ( )
overrideprotectedvirtual

Definition at line 431 of file cellvaluebinding.cxx.

◆ getSupportedValueTypes()

Sequence< Type > SAL_CALL calc::OCellValueBinding::getSupportedValueTypes ( )
overrideprotectedvirtual

◆ getValue()

Any SAL_CALL calc::OCellValueBinding::getValue ( const css::uno::Type &  aType)
overrideprotectedvirtual

Definition at line 178 of file cellvaluebinding.cxx.

References Any, checkDisposed(), and nValue.

◆ initialize()

void SAL_CALL calc::OCellValueBinding::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overrideprotectedvirtual

Definition at line 493 of file cellvaluebinding.cxx.

References Any, Exception, m_xDocument, and TOOLS_WARN_EXCEPTION.

◆ modified()

void SAL_CALL calc::OCellValueBinding::modified ( const css::lang::EventObject &  aEvent)
overrideprotectedvirtual

Definition at line 477 of file cellvaluebinding.cxx.

◆ notifyModified()

void calc::OCellValueBinding::notifyModified ( )
private

◆ operator=()

OCellValueBinding & calc::OCellValueBinding::operator= ( const OCellValueBinding )
privatedelete

◆ removeModifyListener()

void SAL_CALL calc::OCellValueBinding::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overrideprotectedvirtual

Definition at line 448 of file cellvaluebinding.cxx.

◆ setBooleanFormat()

void calc::OCellValueBinding::setBooleanFormat ( )
private

Definition at line 347 of file cellvaluebinding.cxx.

References Any, Exception, and m_xDocument.

◆ setValue()

void SAL_CALL calc::OCellValueBinding::setValue ( const css::uno::Any &  aValue)
overrideprotectedvirtual

Definition at line 264 of file cellvaluebinding.cxx.

References checkDisposed(), and nValue.

◆ supportsService()

sal_Bool SAL_CALL calc::OCellValueBinding::supportsService ( const OUString &  ServiceName)
overrideprotectedvirtual

Definition at line 426 of file cellvaluebinding.cxx.

References cppu::supportsService().

◆ supportsType()

sal_Bool SAL_CALL calc::OCellValueBinding::supportsType ( const css::uno::Type &  aType)
overrideprotectedvirtual

Definition at line 164 of file cellvaluebinding.cxx.

References aSupportedTypes, checkDisposed(), and i.

Referenced by checkValueType().

Member Data Documentation

◆ m_aModifyListeners

::comphelper::OInterfaceContainerHelper3<css::util::XModifyListener> calc::OCellValueBinding::m_aModifyListeners
private

the cell we're bound to, for text access

Definition at line 69 of file cellvaluebinding.hxx.

◆ m_bInitialized

bool calc::OCellValueBinding::m_bInitialized
private

our modify listeners

Definition at line 70 of file cellvaluebinding.hxx.

◆ m_bListPos

bool calc::OCellValueBinding::m_bListPos
private

has XInitialization::initialize been called?

Definition at line 71 of file cellvaluebinding.hxx.

◆ m_xCell

css::uno::Reference< css::table::XCell > calc::OCellValueBinding::m_xCell
private

the document where our cell lives

Definition at line 65 of file cellvaluebinding.hxx.

◆ m_xCellText

css::uno::Reference< css::text::XTextRange > calc::OCellValueBinding::m_xCellText
private

the cell we're bound to, for double value access

Definition at line 67 of file cellvaluebinding.hxx.

◆ m_xDocument

css::uno::Reference< css::sheet::XSpreadsheetDocument > calc::OCellValueBinding::m_xDocument
private

Definition at line 63 of file cellvaluebinding.hxx.


The documentation for this class was generated from the following files: