24#include <com/sun/star/sheet/XResultListener.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
29namespace rtl {
template <
class reference_type>
class Reference; }
34 css::sheet::XResultListener,
35 css::lang::XServiceInfo >,
39 css::uno::Reference<css::sheet::XVolatileResult>
xVolRes;
41 std::unique_ptr<ScAddInDocs>
pDocs;
54 const css::uno::Reference<css::sheet::XVolatileResult>& xVR,
57 static ScAddInListener*
Get(
const css::uno::Reference<css::sheet::XVolatileResult>& xVR );
62 {
return pDocs->find( pDoc ) !=
pDocs->end(); }
65 {
pDocs->insert( pDoc ); }
71 virtual void SAL_CALL
modified(
const css::sheet::ResultEvent& aEvent )
override;
74 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
static ScAddInListener * CreateListener(const css::uno::Reference< css::sheet::XVolatileResult > &xVR, ScDocument *pDoc)
const css::uno::Any & GetResult() const
std::unique_ptr< ScAddInDocs > pDocs
virtual ~ScAddInListener() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static void RemoveDocument(ScDocument *pDocument)
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
static ScAddInListener * Get(const css::uno::Reference< css::sheet::XVolatileResult > &xVR)
ScAddInListener(css::uno::Reference< css::sheet::XVolatileResult > xVR, ScDocument *pD)
void AddDocument(ScDocument *pDoc)
virtual void SAL_CALL modified(const css::sheet::ResultEvent &aEvent) override
css::uno::Reference< css::sheet::XVolatileResult > xVolRes
bool HasDocument(ScDocument *pDoc) const
static ::std::vector< rtl::Reference< ScAddInListener > > aAllListeners
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override