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

#include <fielduno.hxx>

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

Public Member Functions

 ScHeaderFieldsObj (ScHeaderFooterTextData &rData)
 
virtual ~ScHeaderFieldsObj () 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
 

Private Member Functions

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

Private Attributes

ScHeaderFooterTextDatamrData
 
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 105 of file fielduno.hxx.

Constructor & Destructor Documentation

◆ ScHeaderFieldsObj()

ScHeaderFieldsObj::ScHeaderFieldsObj ( ScHeaderFooterTextData rData)

Definition at line 416 of file fielduno.cxx.

References mpEditSource, and mrData.

◆ ~ScHeaderFieldsObj()

ScHeaderFieldsObj::~ScHeaderFieldsObj ( )
overridevirtual

Member Function Documentation

◆ addContainerListener()

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

Definition at line 521 of file fielduno.cxx.

◆ addRefreshListener()

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

◆ createEnumeration()

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

Definition at line 515 of file fielduno.cxx.

◆ getByIndex()

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

Definition at line 494 of file fielduno.cxx.

References GetObjectByIndex_Impl(), and nIndex.

◆ getCount()

sal_Int32 SAL_CALL ScHeaderFieldsObj::getCount ( )
overridevirtual

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

Definition at line 484 of file fielduno.cxx.

References mpEditSource.

Referenced by hasElements().

◆ getElementType()

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

Definition at line 504 of file fielduno.cxx.

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

◆ getImplementationName()

virtual OUString SAL_CALL ScHeaderFieldsObj::getImplementationName ( )
overridevirtual

◆ GetObjectByIndex_Impl()

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

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

Definition at line 440 of file fielduno.cxx.

References CENTER, ScHeaderFooterTextData::GetContentObj(), ScHeaderFooterContentObj::getImplementation(), ScHeaderFooterTextData::GetPart(), LEFT, mpEditSource, mrData, nPos, pData, and RIGHT.

Referenced by getByIndex().

◆ getSupportedServiceNames()

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

◆ hasElements()

sal_Bool SAL_CALL ScHeaderFieldsObj::hasElements ( )
overridevirtual

Definition at line 509 of file fielduno.cxx.

References getCount().

◆ refresh()

void SAL_CALL ScHeaderFieldsObj::refresh ( )
overridevirtual

◆ removeContainerListener()

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

Definition at line 527 of file fielduno.cxx.

◆ removeRefreshListener()

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

◆ supportsService()

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

Member Data Documentation

◆ aMutex

std::mutex ScHeaderFieldsObj::aMutex
private

mutex to lock the InterfaceContainerHelper

Definition at line 119 of file fielduno.hxx.

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

◆ maRefreshListeners

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

List of refresh listeners.

Definition at line 117 of file fielduno.hxx.

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

◆ mpEditSource

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

◆ mrData

ScHeaderFooterTextData& ScHeaderFieldsObj::mrData
private

Definition at line 113 of file fielduno.hxx.

Referenced by GetObjectByIndex_Impl().


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