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

#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 > const &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 34 of file addinlis.hxx.

Constructor & Destructor Documentation

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

Definition at line 50 of file addinlis.cxx.

References pDocs.

ScAddInListener::~ScAddInListener ( )
overridevirtual

Definition at line 57 of file addinlis.cxx.

Member Function Documentation

void ScAddInListener::AddDocument ( ScDocument pDoc)
inline

Definition at line 65 of file addinlis.hxx.

static ScAddInListener* ScAddInListener::CreateListener ( const css::uno::Reference< css::sheet::XVolatileResult > &  xVR,
ScDocument pDoc 
)
static
void SAL_CALL ScAddInListener::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 122 of file addinlis.cxx.

References xVolRes.

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

Definition at line 61 of file addinlis.cxx.

References aAllListeners.

virtual OUString SAL_CALL ScAddInListener::getImplementationName ( )
overridevirtual
const css::uno::Any& ScAddInListener::GetResult ( ) const
inline

Definition at line 68 of file addinlis.hxx.

References aResult.

virtual css::uno::Sequence< OUString > SAL_CALL ScAddInListener::getSupportedServiceNames ( )
overridevirtual
bool ScAddInListener::HasDocument ( ScDocument pDoc) const
inline

Definition at line 62 of file addinlis.hxx.

void SAL_CALL ScAddInListener::modified ( const css::sheet::ResultEvent &  aEvent)
overridevirtual
void ScAddInListener::RemoveDocument ( ScDocument pDocument)
static

Definition at line 78 of file addinlis.cxx.

References aAllListeners, and p.

Referenced by ScDocument::~ScDocument().

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

Member Data Documentation

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

Definition at line 44 of file addinlis.hxx.

Referenced by Get(), and RemoveDocument().

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

Definition at line 41 of file addinlis.hxx.

Referenced by GetResult(), and modified().

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

Definition at line 42 of file addinlis.hxx.

Referenced by modified(), and ScAddInListener().

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

Definition at line 40 of file addinlis.hxx.

Referenced by disposing().


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