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

#include <celllistsource.hxx>

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

Public Member Functions

 OCellListSource (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_rxDocument)
 has XInitialization::initialize been called? 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 ~OCellListSource () override
 
virtual sal_Int32 SAL_CALL getListEntryCount () override
 
virtual OUString SAL_CALL getListEntry (sal_Int32 Position) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntries () override
 
virtual void SAL_CALL addListEntryListener (const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
 
virtual void SAL_CALL removeListEntryListener (const css::uno::Reference< css::form::binding::XListEntryListener > &Listener) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAllListEntriesTyped (css::uno::Sequence< css::uno::Any > &rDataValues) 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 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 checkInitialized ()
 
css::table::CellRangeAddress getRangeAddress () const
 retrieves the actual address of our cell range @precond our m_xRange is not <NULL> More...
 
OUString getCellTextContent_noCheck (sal_Int32 _nRangeRelativeRow, css::uno::Any *pAny)
 retrieves the text of a cell within our range More...
 
void notifyModified ()
 
 OCellListSource (const OCellListSource &)=delete
 
OCellListSourceoperator= (const OCellListSource &)=delete
 

Private Attributes

css::uno::Reference< css::sheet::XSpreadsheetDocument > m_xDocument
 
css::uno::Reference< css::table::XCellRange > m_xRange
 the document where our cell lives More...
 
::comphelper::OInterfaceContainerHelper3< css::form::binding::XListEntryListener > m_aListEntryListeners
 the range of cells we're bound to More...
 
bool m_bInitialized
 our listeners 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 55 of file celllistsource.hxx.

Constructor & Destructor Documentation

◆ OCellListSource() [1/2]

calc::OCellListSource::OCellListSource ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  _rxDocument)
explicit

has XInitialization::initialize been called?

References DECLARE_XINTERFACE.

◆ ~OCellListSource()

calc::OCellListSource::~OCellListSource ( )
overrideprotectedvirtual

Definition at line 70 of file celllistsource.cxx.

References dispose().

◆ OCellListSource() [2/2]

calc::OCellListSource::OCellListSource ( const OCellListSource )
privatedelete

Member Function Documentation

◆ addListEntryListener()

void SAL_CALL calc::OCellListSource::addListEntryListener ( const css::uno::Reference< css::form::binding::XListEntryListener > &  Listener)
overrideprotectedvirtual

Definition at line 284 of file celllistsource.cxx.

References checkDisposed(), and m_aMutex.

◆ checkDisposed()

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

Definition at line 126 of file celllistsource.cxx.

◆ checkInitialized()

void calc::OCellListSource::checkInitialized ( )
private

Definition at line 133 of file celllistsource.cxx.

◆ createArrayHelper()

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

◆ disposing() [1/2]

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

Definition at line 83 of file celllistsource.cxx.

References m_aMutex.

◆ disposing() [2/2]

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

◆ getAllListEntries()

Sequence< OUString > SAL_CALL calc::OCellListSource::getAllListEntries ( )
overrideprotectedvirtual

Definition at line 249 of file celllistsource.cxx.

References checkDisposed(), i, and m_aMutex.

◆ getAllListEntriesTyped()

Sequence< OUString > SAL_CALL calc::OCellListSource::getAllListEntriesTyped ( css::uno::Sequence< css::uno::Any > &  rDataValues)
overrideprotectedvirtual

Definition at line 265 of file celllistsource.cxx.

References Any, checkDisposed(), i, m_aMutex, and nCount.

◆ getCellTextContent_noCheck()

OUString calc::OCellListSource::getCellTextContent_noCheck ( sal_Int32  _nRangeRelativeRow,
css::uno::Any *  pAny 
)
private

retrieves the text of a cell within our range

Parameters
_nRangeRelativeRowthe relative row index of the cell within our range
pAnyif not <NULL> then the underlying data value is returned in the Any @precond our m_xRange is not <NULL>

Definition at line 166 of file celllistsource.cxx.

◆ getFastPropertyValue() [1/4]

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

Reimplemented from comphelper::OPropertyContainer.

Definition at line 118 of file celllistsource.cxx.

References PROP_HANDLE_RANGE_ADDRESS.

◆ 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::OCellListSource::getImplementationName ( )
overrideprotectedvirtual

Definition at line 139 of file celllistsource.cxx.

◆ getInfoHelper()

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

Definition at line 106 of file celllistsource.cxx.

◆ getListEntry()

OUString SAL_CALL calc::OCellListSource::getListEntry ( sal_Int32  Position)
overrideprotectedvirtual

Definition at line 237 of file celllistsource.cxx.

References checkDisposed(), and m_aMutex.

◆ getListEntryCount()

sal_Int32 SAL_CALL calc::OCellListSource::getListEntryCount ( )
overrideprotectedvirtual

Definition at line 227 of file celllistsource.cxx.

References checkDisposed(), and m_aMutex.

◆ getPropertySetInfo()

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

Definition at line 101 of file celllistsource.cxx.

◆ getRangeAddress()

CellRangeAddress calc::OCellListSource::getRangeAddress ( ) const
private

retrieves the actual address of our cell range @precond our m_xRange is not <NULL>

Definition at line 155 of file celllistsource.cxx.

◆ getSupportedServiceNames()

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

Definition at line 149 of file celllistsource.cxx.

◆ initialize()

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

Definition at line 347 of file celllistsource.cxx.

References Any, Exception, m_xDocument, and TOOLS_WARN_EXCEPTION.

◆ modified()

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

Definition at line 308 of file celllistsource.cxx.

◆ notifyModified()

void calc::OCellListSource::notifyModified ( )
private

◆ operator=()

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

◆ removeListEntryListener()

void SAL_CALL calc::OCellListSource::removeListEntryListener ( const css::uno::Reference< css::form::binding::XListEntryListener > &  Listener)
overrideprotectedvirtual

Definition at line 296 of file celllistsource.cxx.

References checkDisposed(), and m_aMutex.

◆ supportsService()

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

Definition at line 144 of file celllistsource.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aListEntryListeners

::comphelper::OInterfaceContainerHelper3<css::form::binding::XListEntryListener> calc::OCellListSource::m_aListEntryListeners
private

the range of cells we're bound to

Definition at line 66 of file celllistsource.hxx.

◆ m_bInitialized

bool calc::OCellListSource::m_bInitialized
private

our listeners

Definition at line 67 of file celllistsource.hxx.

◆ m_xDocument

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

Definition at line 62 of file celllistsource.hxx.

◆ m_xRange

css::uno::Reference< css::table::XCellRange > calc::OCellListSource::m_xRange
private

the document where our cell lives

Definition at line 64 of file celllistsource.hxx.


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