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 (css::uno::Reference< css::drawing::framework::XConfigurationController > xController, 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

◆ Action

typedef ::std::function<void (bool)> sdext::presenter::PresenterFrameworkObserver::Action

Definition at line 44 of file PresenterFrameworkObserver.hxx.

Constructor & Destructor Documentation

◆ PresenterFrameworkObserver() [1/2]

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

Referenced by RunOnUpdateEnd().

◆ PresenterFrameworkObserver() [2/2]

sdext::presenter::PresenterFrameworkObserver::PresenterFrameworkObserver ( css::uno::Reference< css::drawing::framework::XConfigurationController >  xController,
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 31 of file PresenterFrameworkObserver.cxx.

References Any, m_aMutex, maAction, mxConfigurationController, and xController.

◆ ~PresenterFrameworkObserver()

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

Definition at line 54 of file PresenterFrameworkObserver.cxx.

Member Function Documentation

◆ disposing() [1/2]

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

Definition at line 67 of file PresenterFrameworkObserver.cxx.

References maAction, and Shutdown().

◆ disposing() [2/2]

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

◆ notifyConfigurationChange()

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

Definition at line 97 of file PresenterFrameworkObserver.cxx.

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

◆ operator=()

PresenterFrameworkObserver & sdext::presenter::PresenterFrameworkObserver::operator= ( const PresenterFrameworkObserver )
delete

◆ RunOnUpdateEnd()

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

◆ Shutdown()

void sdext::presenter::PresenterFrameworkObserver::Shutdown ( )
private

Definition at line 74 of file PresenterFrameworkObserver.cxx.

References maAction, and mxConfigurationController.

Referenced by disposing(), and notifyConfigurationChange().

Member Data Documentation

◆ maAction

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

Definition at line 60 of file PresenterFrameworkObserver.hxx.

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

◆ mxConfigurationController

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: