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 (const 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

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
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2mpRefreshListeners
 List of refresh listeners. More...
 
osl::Mutex aMutex
 mutex to lock the InterfaceContainerHelper More...
 

Detailed Description

Definition at line 53 of file fielduno.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 379 of file fielduno.cxx.

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

Definition at line 403 of file fielduno.cxx.

References aMutex, and mpRefreshListeners.

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

Definition at line 373 of file fielduno.cxx.

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

Definition at line 351 of file fielduno.cxx.

References GetObjectByIndex_Impl().

sal_Int32 SAL_CALL ScCellFieldsObj::getCount ( )
overridevirtual

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

Definition at line 340 of file fielduno.cxx.

References mpEditSource.

Referenced by hasElements().

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

Definition at line 361 of file fielduno.cxx.

References cppu::UnoType< class >::get().

virtual OUString SAL_CALL ScCellFieldsObj::getImplementationName ( )
overridevirtual
uno::Reference< text::XTextField > ScCellFieldsObj::GetObjectByIndex_Impl ( sal_Int32  Index) const
private

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

Definition at line 321 of file fielduno.cxx.

References aCellPos, eType, SvxFieldData::GetClassId(), mpEditSource, mxContent, and pDocShell.

Referenced by getByIndex().

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

Definition at line 367 of file fielduno.cxx.

References getCount().

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

update of references

Reimplemented from SfxListener.

Definition at line 305 of file fielduno.cxx.

References SfxHint::GetId(), and pDocShell.

void SAL_CALL ScCellFieldsObj::refresh ( )
overridevirtual

Definition at line 392 of file fielduno.cxx.

References aEvent, and mpRefreshListeners.

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

Definition at line 385 of file fielduno.cxx.

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

Definition at line 414 of file fielduno.cxx.

References mpRefreshListeners.

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

Member Data Documentation

ScAddress ScCellFieldsObj::aCellPos
private

Definition at line 64 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl(), and ScCellFieldsObj().

osl::Mutex ScCellFieldsObj::aMutex
private

mutex to lock the InterfaceContainerHelper

Definition at line 69 of file fielduno.hxx.

Referenced by addRefreshListener().

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

Definition at line 65 of file fielduno.hxx.

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

std::unique_ptr<comphelper::OInterfaceContainerHelper2> ScCellFieldsObj::mpRefreshListeners
private

List of refresh listeners.

Definition at line 67 of file fielduno.hxx.

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

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

Definition at line 62 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl().

ScDocShell* ScCellFieldsObj::pDocShell
private

Definition at line 63 of file fielduno.hxx.

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


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