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

#include <addinlis.hxx>

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

Public Member Functions

virtual ~ScAddInListener () override
 
bool HasDocument (ScDocument *pDoc) const
 
void AddDocument (ScDocument *pDoc)
 
const css::uno::Any & GetResult () const
 
virtual void SAL_CALL modified (const css::sheet::ResultEvent &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) 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 SvtBroadcaster
 SvtBroadcaster ()
 
 SvtBroadcaster (const SvtBroadcaster &rBC)
 
virtual ~SvtBroadcaster ()
 
void Broadcast (const SfxHint &rHint)
 
ListenersTypeGetAllListeners ()
 
const ListenersTypeGetAllListeners () const
 
bool HasListeners () const
 
void PrepareForDestruction ()
 

Static Public Member Functions

static ScAddInListenerCreateListener (const css::uno::Reference< css::sheet::XVolatileResult > &xVR, ScDocument *pDoc)
 
static ScAddInListenerGet (const css::uno::Reference< css::sheet::XVolatileResult > &xVR)
 
static void RemoveDocument (ScDocument *pDocument)
 

Private Member Functions

 ScAddInListener (css::uno::Reference< css::sheet::XVolatileResult > xVR, ScDocument *pD)
 

Private Attributes

css::uno::Reference< css::sheet::XVolatileResult > xVolRes
 
css::uno::Any aResult
 
std::unique_ptr< ScAddInDocspDocs
 
static ::std::vector< rtl::Reference< ScAddInListener > > aAllListeners
 

Additional Inherited Members

- Public Types inherited from SvtBroadcaster
typedef std::vector< SvtListener * > ListenersType
 
- Protected Member Functions inherited from SvtBroadcaster
virtual void ListenersGone ()
 

Detailed Description

Definition at line 33 of file addinlis.hxx.

Constructor & Destructor Documentation

◆ ScAddInListener()

ScAddInListener::ScAddInListener ( css::uno::Reference< css::sheet::XVolatileResult >  xVR,
ScDocument pD 
)
private

Definition at line 50 of file addinlis.cxx.

References pDocs.

◆ ~ScAddInListener()

ScAddInListener::~ScAddInListener ( )
overridevirtual

Definition at line 57 of file addinlis.cxx.

Member Function Documentation

◆ AddDocument()

void ScAddInListener::AddDocument ( ScDocument pDoc)
inline

Definition at line 64 of file addinlis.hxx.

References pDocs.

Referenced by ScInterpreter::ScExternal().

◆ CreateListener()

static ScAddInListener * ScAddInListener::CreateListener ( const css::uno::Reference< css::sheet::XVolatileResult > &  xVR,
ScDocument pDoc 
)
static

◆ disposing()

void SAL_CALL ScAddInListener::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 122 of file addinlis.cxx.

References xVolRes.

Referenced by ScInterpreter::ScExternal().

◆ Get()

ScAddInListener * ScAddInListener::Get ( const css::uno::Reference< css::sheet::XVolatileResult > &  xVR)
static

Definition at line 61 of file addinlis.cxx.

References aAllListeners.

Referenced by ScInterpreter::ScExternal().

◆ getImplementationName()

virtual OUString SAL_CALL ScAddInListener::getImplementationName ( )
overridevirtual

◆ GetResult()

const css::uno::Any & ScAddInListener::GetResult ( ) const
inline

Definition at line 67 of file addinlis.hxx.

References aResult.

Referenced by ScInterpreter::ScExternal().

◆ getSupportedServiceNames()

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

◆ HasDocument()

bool ScAddInListener::HasDocument ( ScDocument pDoc) const
inline

Definition at line 61 of file addinlis.hxx.

References pDocs.

Referenced by ScInterpreter::ScExternal().

◆ modified()

void SAL_CALL ScAddInListener::modified ( const css::sheet::ResultEvent &  aEvent)
overridevirtual

◆ RemoveDocument()

void ScAddInListener::RemoveDocument ( ScDocument pDocument)
static

Definition at line 78 of file addinlis.cxx.

References aAllListeners, and p.

Referenced by ScDocument::~ScDocument().

◆ supportsService()

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

Member Data Documentation

◆ aAllListeners

::std::vector<rtl::Reference<ScAddInListener> > ScAddInListener::aAllListeners
private

Definition at line 43 of file addinlis.hxx.

Referenced by Get(), and RemoveDocument().

◆ aResult

css::uno::Any ScAddInListener::aResult
private

Definition at line 40 of file addinlis.hxx.

Referenced by GetResult(), and modified().

◆ pDocs

std::unique_ptr<ScAddInDocs> ScAddInListener::pDocs
private

Definition at line 41 of file addinlis.hxx.

Referenced by AddDocument(), HasDocument(), modified(), and ScAddInListener().

◆ xVolRes

css::uno::Reference<css::sheet::XVolatileResult> ScAddInListener::xVolRes
private

Definition at line 39 of file addinlis.hxx.

Referenced by disposing().


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