LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::SlideShowRestarter Class Reference

This class is used when a display is removed or added to restart the slide show. More...

#include <SlideShowRestarter.hxx>

Inheritance diagram for sd::SlideShowRestarter:
[legend]
Collaboration diagram for sd::SlideShowRestarter:
[legend]

Public Member Functions

 SlideShowRestarter (::rtl::Reference< SlideShow > pSlideShow, ViewShellBase *pViewShellBase)
 Create a new SlideShowRestarter object. More...
 
virtual ~SlideShowRestarter ()
 
void Restart (bool bForce)
 Restarting the slide show is an asynchronous multi step process which is started by calling this method. More...
 

Private Member Functions

 DECL_LINK (EndPresentation, void *, void)
 
void StartPresentation ()
 Restart the presentation on the slide last shown before the restart was initiated. More...
 

Private Attributes

ImplSVEventmnEventId
 
::rtl::Reference< SlideShowmpSlideShow
 
ViewShellBasempViewShellBase
 
::std::shared_ptr< SlideShowRestartermpSelf
 
sal_Int32 mnDisplayCount
 
SfxDispatchermpDispatcher
 
sal_Int32 mnCurrentSlideNumber
 

Detailed Description

This class is used when a display is removed or added to restart the slide show.

This is necessary at least with DirectX because deactivating a display invalidates DirectX resources. Accessing those leads to a crash.

During a restart a possibly installed presenter extension is given the opportunity to show or hide depending on the number of available displays.

Definition at line 47 of file SlideShowRestarter.hxx.

Constructor & Destructor Documentation

◆ SlideShowRestarter()

sd::SlideShowRestarter::SlideShowRestarter ( ::rtl::Reference< SlideShow pSlideShow,
ViewShellBase pViewShellBase 
)

Create a new SlideShowRestarter object.

Parameters
rpSlideShowThe slide show is used to determine the current slide, which is restored after the restart, and of course to stop and start the slide show.
pViewShellBaseUsed to get access to a slot dispatcher.

Definition at line 42 of file SlideShowRestarter.cxx.

References GetDispatcher(), and mnEventId.

◆ ~SlideShowRestarter()

sd::SlideShowRestarter::~SlideShowRestarter ( )
virtual

Definition at line 54 of file SlideShowRestarter.cxx.

Member Function Documentation

◆ DECL_LINK()

sd::SlideShowRestarter::DECL_LINK ( EndPresentation  ,
void *  ,
void   
)
private

◆ Restart()

void sd::SlideShowRestarter::Restart ( bool  bForce)

Restarting the slide show is an asynchronous multi step process which is started by calling this method.

Parameters
bForceUsed to force a re-start, even if the display count is unchanged.

Definition at line 58 of file SlideShowRestarter.cxx.

References LINK, mnCurrentSlideNumber, mnDisplayCount, mnEventId, mpSelf, mpSlideShow, and Application::PostUserEvent().

◆ StartPresentation()

void sd::SlideShowRestarter::StartPresentation ( )
private

Member Data Documentation

◆ mnCurrentSlideNumber

sal_Int32 sd::SlideShowRestarter::mnCurrentSlideNumber
private

Definition at line 75 of file SlideShowRestarter.hxx.

Referenced by Restart(), and StartPresentation().

◆ mnDisplayCount

sal_Int32 sd::SlideShowRestarter::mnDisplayCount
private

Definition at line 73 of file SlideShowRestarter.hxx.

Referenced by Restart().

◆ mnEventId

ImplSVEvent* sd::SlideShowRestarter::mnEventId
private

Definition at line 69 of file SlideShowRestarter.hxx.

Referenced by Restart().

◆ mpDispatcher

SfxDispatcher* sd::SlideShowRestarter::mpDispatcher
private

Definition at line 74 of file SlideShowRestarter.hxx.

Referenced by StartPresentation().

◆ mpSelf

::std::shared_ptr<SlideShowRestarter> sd::SlideShowRestarter::mpSelf
private

Definition at line 72 of file SlideShowRestarter.hxx.

Referenced by Restart(), and StartPresentation().

◆ mpSlideShow

::rtl::Reference<SlideShow> sd::SlideShowRestarter::mpSlideShow
private

Definition at line 70 of file SlideShowRestarter.hxx.

Referenced by Restart(), and StartPresentation().

◆ mpViewShellBase

ViewShellBase* sd::SlideShowRestarter::mpViewShellBase
private

Definition at line 71 of file SlideShowRestarter.hxx.

Referenced by StartPresentation().


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