LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScCellFieldsObj Class Referencefinal

#include <fielduno.hxx>

Inheritance diagram for ScCellFieldsObj:
[legend]
Collaboration diagram for ScCellFieldsObj:
[legend]

Public Member Functions

 ScCellFieldsObj (css::uno::Reference< css::text::XTextRange > xContent, ScDocShell *pDocSh, const ScAddress &rPos)
 
virtual ~ScCellFieldsObj () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL refresh () override
 
virtual void SAL_CALL addRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) override
 
virtual void SAL_CALL removeRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) 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
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

css::uno::Reference< css::text::XTextField > GetObjectByIndex_Impl (sal_Int32 Index) const
 

Private Attributes

css::uno::Reference< css::text::XTextRange > mxContent
 
ScDocShellpDocShell
 
ScAddress aCellPos
 
std::unique_ptr< ScEditSourcempEditSource
 
comphelper::OInterfaceContainerHelper4< css::util::XRefreshListener > maRefreshListeners
 List of refresh listeners. More...
 
std::mutex aMutex
 mutex to lock the InterfaceContainerHelper More...
 

Detailed Description

Definition at line 49 of file fielduno.hxx.

Constructor & Destructor Documentation

◆ ScCellFieldsObj()

ScCellFieldsObj::ScCellFieldsObj ( css::uno::Reference< css::text::XTextRange >  xContent,
ScDocShell pDocSh,
const ScAddress rPos 
)

◆ ~ScCellFieldsObj()

ScCellFieldsObj::~ScCellFieldsObj ( )
overridevirtual

Member Function Documentation

◆ addContainerListener()

void SAL_CALL ScCellFieldsObj::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 373 of file fielduno.cxx.

◆ addRefreshListener()

void SAL_CALL ScCellFieldsObj::addRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL ScCellFieldsObj::createEnumeration ( )
overridevirtual

Definition at line 367 of file fielduno.cxx.

◆ getByIndex()

uno::Any SAL_CALL ScCellFieldsObj::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 346 of file fielduno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getCount()

sal_Int32 SAL_CALL ScCellFieldsObj::getCount ( )
overridevirtual

Field functions have to be passed to the forwarder !!!

Definition at line 335 of file fielduno.cxx.

References mpEditSource.

Referenced by hasElements().

◆ getElementType()

uno::Type SAL_CALL ScCellFieldsObj::getElementType ( )
overridevirtual

Definition at line 356 of file fielduno.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

virtual OUString SAL_CALL ScCellFieldsObj::getImplementationName ( )
overridevirtual

◆ GetObjectByIndex_Impl()

uno::Reference< text::XTextField > ScCellFieldsObj::GetObjectByIndex_Impl ( sal_Int32  Index) const
private

Field functions have to be passed to the forwarder !!!

Definition at line 316 of file fielduno.cxx.

References aCellPos, eType, mpEditSource, mxContent, nPos, pData, and pDocShell.

Referenced by getByIndex().

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScCellFieldsObj::getSupportedServiceNames ( )
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL ScCellFieldsObj::hasElements ( )
overridevirtual

Definition at line 361 of file fielduno.cxx.

References getCount().

◆ Notify()

void ScCellFieldsObj::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

update of references

Reimplemented from SfxListener.

Definition at line 300 of file fielduno.cxx.

References SfxHint::GetId(), and pDocShell.

◆ refresh()

void SAL_CALL ScCellFieldsObj::refresh ( )
overridevirtual

◆ removeContainerListener()

void SAL_CALL ScCellFieldsObj::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 379 of file fielduno.cxx.

◆ removeRefreshListener()

void SAL_CALL ScCellFieldsObj::removeRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

◆ supportsService()

virtual sal_Bool SAL_CALL ScCellFieldsObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

◆ aCellPos

ScAddress ScCellFieldsObj::aCellPos
private

Definition at line 60 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl(), and ScCellFieldsObj().

◆ aMutex

std::mutex ScCellFieldsObj::aMutex
private

mutex to lock the InterfaceContainerHelper

Definition at line 65 of file fielduno.hxx.

Referenced by addRefreshListener(), refresh(), removeRefreshListener(), and ~ScCellFieldsObj().

◆ maRefreshListeners

comphelper::OInterfaceContainerHelper4<css::util::XRefreshListener> ScCellFieldsObj::maRefreshListeners
private

List of refresh listeners.

Definition at line 63 of file fielduno.hxx.

Referenced by addRefreshListener(), refresh(), removeRefreshListener(), and ~ScCellFieldsObj().

◆ mpEditSource

std::unique_ptr<ScEditSource> ScCellFieldsObj::mpEditSource
private

Definition at line 61 of file fielduno.hxx.

Referenced by getCount(), GetObjectByIndex_Impl(), ScCellFieldsObj(), and ~ScCellFieldsObj().

◆ mxContent

css::uno::Reference<css::text::XTextRange> ScCellFieldsObj::mxContent
private

Definition at line 58 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl().

◆ pDocShell

ScDocShell* ScCellFieldsObj::pDocShell
private

Definition at line 59 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl(), Notify(), ScCellFieldsObj(), and ~ScCellFieldsObj().


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