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:
Collaboration diagram for ScAddInListener:

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 

Definition at line 50 of file addinlis.cxx.

References pDocs.

◆ ~ScAddInListener()

ScAddInListener::~ScAddInListener ( )

Definition at line 57 of file addinlis.cxx.

Member Function Documentation

◆ AddDocument()

void ScAddInListener::AddDocument ( ScDocument pDoc)

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 

◆ disposing()

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

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)

Definition at line 61 of file addinlis.cxx.

References aAllListeners.

Referenced by ScInterpreter::ScExternal().

◆ getImplementationName()

virtual OUString SAL_CALL ScAddInListener::getImplementationName ( )

◆ GetResult()

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

Definition at line 67 of file addinlis.hxx.

References aResult.

Referenced by ScInterpreter::ScExternal().

◆ getSupportedServiceNames()

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

◆ HasDocument()

bool ScAddInListener::HasDocument ( ScDocument pDoc) const

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)

◆ RemoveDocument()

void ScAddInListener::RemoveDocument ( ScDocument pDocument)

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)

Member Data Documentation

◆ aAllListeners

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

Definition at line 43 of file addinlis.hxx.

Referenced by Get(), and RemoveDocument().

◆ aResult

css::uno::Any ScAddInListener::aResult

Definition at line 40 of file addinlis.hxx.

Referenced by GetResult(), and modified().

◆ pDocs

std::unique_ptr<ScAddInDocs> ScAddInListener::pDocs

Definition at line 41 of file addinlis.hxx.

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

◆ xVolRes

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

Definition at line 39 of file addinlis.hxx.

Referenced by disposing().

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