LibreOffice Module sd (master) 1
|
This class is used when a display is removed or added to restart the slide show. More...
#include <SlideShowRestarter.hxx>
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 | |
ImplSVEvent * | mnEventId |
::rtl::Reference< SlideShow > | mpSlideShow |
ViewShellBase * | mpViewShellBase |
::std::shared_ptr< SlideShowRestarter > | mpSelf |
sal_Int32 | mnDisplayCount |
SfxDispatcher * | mpDispatcher |
sal_Int32 | mnCurrentSlideNumber |
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.
sd::SlideShowRestarter::SlideShowRestarter | ( | ::rtl::Reference< SlideShow > | pSlideShow, |
ViewShellBase * | pViewShellBase | ||
) |
Create a new SlideShowRestarter object.
rpSlideShow | The 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. |
pViewShellBase | Used to get access to a slot dispatcher. |
Definition at line 42 of file SlideShowRestarter.cxx.
References GetDispatcher(), and mnEventId.
|
virtual |
Definition at line 54 of file SlideShowRestarter.cxx.
|
private |
void sd::SlideShowRestarter::Restart | ( | bool | bForce | ) |
Restarting the slide show is an asynchronous multi step process which is started by calling this method.
bForce | Used 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().
|
private |
Restart the presentation on the slide last shown before the restart was initiated.
Definition at line 129 of file SlideShowRestarter.cxx.
References aProperties, SfxDispatcher::Execute(), SfxViewFrame::GetDispatcher(), sd::ViewShellBase::GetDrawController(), SfxViewShell::GetViewFrame(), sd::DrawController::IsDisposing(), comphelper::makePropertyValue(), mnCurrentSlideNumber, mpDispatcher, mpSelf, mpSlideShow, mpViewShellBase, and Sequence.
Referenced by sd::IMPL_LINK_NOARG().
|
private |
Definition at line 75 of file SlideShowRestarter.hxx.
Referenced by Restart(), and StartPresentation().
|
private |
Definition at line 73 of file SlideShowRestarter.hxx.
Referenced by Restart().
|
private |
Definition at line 69 of file SlideShowRestarter.hxx.
Referenced by Restart().
|
private |
Definition at line 74 of file SlideShowRestarter.hxx.
Referenced by StartPresentation().
|
private |
Definition at line 72 of file SlideShowRestarter.hxx.
Referenced by Restart(), and StartPresentation().
|
private |
Definition at line 70 of file SlideShowRestarter.hxx.
Referenced by Restart(), and StartPresentation().
|
private |
Definition at line 71 of file SlideShowRestarter.hxx.
Referenced by StartPresentation().