LibreOffice Module sdext (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
sdext::presenter::PresenterFrameworkObserver Class Reference

Watch the drawing framework for changes and run callbacks when a certain change takes place. More...

#include <PresenterFrameworkObserver.hxx>

Inheritance diagram for sdext::presenter::PresenterFrameworkObserver:
[legend]
Collaboration diagram for sdext::presenter::PresenterFrameworkObserver:
[legend]

Public Types

typedef ::std::function< void(bool)> Action
 

Public Member Functions

 PresenterFrameworkObserver (const PresenterFrameworkObserver &)=delete
 
PresenterFrameworkObserveroperator= (const PresenterFrameworkObserver &)=delete
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL notifyConfigurationChange (const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
 

Static Public Member Functions

static void RunOnUpdateEnd (const css::uno::Reference< css::drawing::framework::XConfigurationController > &rxController, const Action &rAction)
 

Private Member Functions

 PresenterFrameworkObserver (const css::uno::Reference< css::drawing::framework::XConfigurationController > &rxController, const Action &rAction)
 Create a new PresenterFrameworkObserver object. More...
 
virtual ~PresenterFrameworkObserver () override
 
void Shutdown ()
 

Private Attributes

css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
 
Action maAction
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Watch the drawing framework for changes and run callbacks when a certain change takes place.

Definition at line 39 of file PresenterFrameworkObserver.hxx.

Member Typedef Documentation

Definition at line 44 of file PresenterFrameworkObserver.hxx.

Constructor & Destructor Documentation

sdext::presenter::PresenterFrameworkObserver::PresenterFrameworkObserver ( const PresenterFrameworkObserver )
delete

Referenced by RunOnUpdateEnd().

sdext::presenter::PresenterFrameworkObserver::PresenterFrameworkObserver ( const css::uno::Reference< css::drawing::framework::XConfigurationController > &  rxController,
const Action rAction 
)
private

Create a new PresenterFrameworkObserver object.

Parameters
rPredicateThis functor tests whether the action is to be executed or not.
rActionThe functor to execute when the predicate returns true, e.g. when some resource has been created.

Definition at line 30 of file PresenterFrameworkObserver.cxx.

References Any, m_aMutex, maAction, and mxConfigurationController.

sdext::presenter::PresenterFrameworkObserver::~PresenterFrameworkObserver ( )
overrideprivatevirtual

Definition at line 53 of file PresenterFrameworkObserver.cxx.

Member Function Documentation

void SAL_CALL sdext::presenter::PresenterFrameworkObserver::disposing ( )
overridevirtual

Definition at line 66 of file PresenterFrameworkObserver.cxx.

References maAction, and Shutdown().

virtual void SAL_CALL sdext::presenter::PresenterFrameworkObserver::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual
void SAL_CALL sdext::presenter::PresenterFrameworkObserver::notifyConfigurationChange ( const css::drawing::framework::ConfigurationChangeEvent &  rEvent)
overridevirtual

Definition at line 96 of file PresenterFrameworkObserver.cxx.

References dispose(), maAction, and Shutdown().

PresenterFrameworkObserver& sdext::presenter::PresenterFrameworkObserver::operator= ( const PresenterFrameworkObserver )
delete
void sdext::presenter::PresenterFrameworkObserver::RunOnUpdateEnd ( const css::uno::Reference< css::drawing::framework::XConfigurationController > &  rxController,
const Action rAction 
)
static
void sdext::presenter::PresenterFrameworkObserver::Shutdown ( )
private

Definition at line 73 of file PresenterFrameworkObserver.cxx.

References maAction, and mxConfigurationController.

Referenced by disposing(), and notifyConfigurationChange().

Member Data Documentation

Action sdext::presenter::PresenterFrameworkObserver::maAction
private

Definition at line 60 of file PresenterFrameworkObserver.hxx.

Referenced by disposing(), notifyConfigurationChange(), and Shutdown().

css::uno::Reference<css::drawing::framework::XConfigurationController> sdext::presenter::PresenterFrameworkObserver::mxConfigurationController
private

Definition at line 59 of file PresenterFrameworkObserver.hxx.

Referenced by PresenterFrameworkObserver(), and Shutdown().


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