LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::SlideShow Class Referencefinal

#include <slideshow.hxx>

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

Public Member Functions

void startPreview (const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage, const css::uno::Reference< css::animations::XAnimationNode > &xAnimationNode)
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL start () override
 
virtual void SAL_CALL end () override
 
virtual void SAL_CALL rehearseTimings () override
 
virtual void SAL_CALL startWithArguments (const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
 
virtual sal_Bool SAL_CALL isRunning () override
 
virtual css::uno::Reference< css::presentation::XSlideShowController > SAL_CALL getController () override
 
void jumpToPageNumber (sal_Int32 nPage)
 
void jumpToPageIndex (sal_Int32 nIndex)
 
void jumpToBookmark (const OUString &sBookmark)
 
void pause (bool bPause)
 sets or clears the pause state of the running slideshow. More...
 
bool swipe (const CommandGestureSwipeData &rSwipeData)
 
bool longpress (const CommandGestureLongPressData &rLongPressData)
 
bool isFullScreen () const
 
OutputDevicegetShowWindow ()
 
int getAnimationMode () const
 
sal_Int32 getCurrentPageNumber () const
 
void resize (const Size &rSize)
 
bool activate (ViewShellBase &rBase)
 
void deactivate ()
 
void paint ()
 
bool keyInput (const KeyEvent &rKEvt)
 
bool dependsOn (ViewShellBase const *pViewShellBase)
 
bool IsExitAfterPresenting () const
 
void SetExitAfterPresenting (bool bExit)
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Static Public Member Functions

static rtl::Reference< SlideShowCreate (SdDrawDocument *pDoc)
 used by the model to create a slideshow for it More...
 
static rtl::Reference< SlideShowGetSlideShow (SdDrawDocument const *pDocument)
 
static rtl::Reference< SlideShowGetSlideShow (SdDrawDocument const &rDocument)
 
static rtl::Reference< SlideShowGetSlideShow (ViewShellBase const &rBase)
 
static css::uno::Reference< css::presentation::XSlideShowController > GetSlideShowController (ViewShellBase const &rBase)
 
static bool StartPreview (ViewShellBase const &rBase, const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage, const css::uno::Reference< css::animations::XAnimationNode > &xAnimationNode)
 
static void Stop (ViewShellBase const &rBase)
 
static bool IsRunning (ViewShellBase const &rBase)
 returns true if there is a running presentation for the given ViewShellBase More...
 
static bool IsRunning (const ViewShell &rViewShell)
 returns true if there is a running presentation inside the given ViewShell returns false even if there is a running presentation but in another ViewShell More...
 
static sal_Int32 GetDisplay ()
 convert configuration setting display concept to real screens More...
 

Private Member Functions

 SlideShow (SdDrawDocument *pDoc)
 
 DECL_LINK (StartInPlacePresentationConfigurationHdl, void *, void)
 
void StartInPlacePresentationConfigurationCallback ()
 
void StartInPlacePresentation ()
 
void StartFullscreenPresentation ()
 
void ThrowIfDisposed () const
 
void CreateController (ViewShell *pViewSh, ::sd::View *pView, vcl::Window *pParentWindow)
 
WorkWindowGetWorkWindow ()
 
 SlideShow (const SlideShow &)=delete
 
SlideShowoperator= (const SlideShow &)=delete
 

Private Attributes

SvxItemPropertySet maPropSet
 
rtl::Reference< SlideshowImplmxController
 
bool mbIsInStartup
 This flag is used together with mxController.is() to prevent multiple instances of the slide show for one document. More...
 
SdDrawDocumentmpDoc
 
std::shared_ptr< PresentationSettingsExmxCurrentSettings
 
ViewShellBasempCurrentViewShellBase
 
ViewShellBasempFullScreenViewShellBase
 
FrameViewmpFullScreenFrameView
 
ImplSVEventmnInPlaceConfigEvent
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 78 of file slideshow.hxx.

Constructor & Destructor Documentation

◆ SlideShow() [1/2]

SlideShow::SlideShow ( SdDrawDocument pDoc)
private

Definition at line 134 of file slideshow.cxx.

Referenced by Create().

◆ SlideShow() [2/2]

sd::SlideShow::SlideShow ( const SlideShow )
privatedelete

Member Function Documentation

◆ activate()

bool SlideShow::activate ( ViewShellBase rBase)

◆ addPropertyChangeListener()

void SAL_CALL SlideShow::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 606 of file slideshow.cxx.

◆ addVetoableChangeListener()

void SAL_CALL SlideShow::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 614 of file slideshow.cxx.

◆ Create()

rtl::Reference< SlideShow > SlideShow::Create ( SdDrawDocument pDoc)
static

used by the model to create a slideshow for it

Definition at line 152 of file slideshow.cxx.

References SlideShow().

Referenced by CreatePresentation().

◆ CreateController()

void SlideShow::CreateController ( ViewShell pViewSh,
::sd::View pView,
vcl::Window pParentWindow 
)
private

Definition at line 220 of file slideshow.cxx.

References mbIsInStartup, mpDoc, mxController, SAL_INFO_IF, and xController.

Referenced by activate(), and StartInPlacePresentation().

◆ deactivate()

void SlideShow::deactivate ( )

Definition at line 1009 of file slideshow.cxx.

References mxController.

◆ DECL_LINK()

sd::SlideShow::DECL_LINK ( StartInPlacePresentationConfigurationHdl  ,
void *  ,
void   
)
private

◆ dependsOn()

bool SlideShow::dependsOn ( ViewShellBase const *  pViewShellBase)

Definition at line 1198 of file slideshow.cxx.

References mpCurrentViewShellBase, mpFullScreenViewShellBase, and mxController.

◆ disposing()

void SlideShow::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

◆ end()

void SAL_CALL SlideShow::end ( )
overridevirtual

◆ getAnimationMode()

int SlideShow::getAnimationMode ( ) const

Definition at line 943 of file slideshow.cxx.

References sd::ANIMATIONMODE_SHOW, and mxController.

◆ getController()

Reference< XSlideShowController > SAL_CALL SlideShow::getController ( )
overridevirtual

Definition at line 896 of file slideshow.cxx.

References mxController, and ThrowIfDisposed().

◆ getCurrentPageNumber()

sal_Int32 SlideShow::getCurrentPageNumber ( ) const

Definition at line 960 of file slideshow.cxx.

References mxController.

◆ GetDisplay()

sal_Int32 SlideShow::GetDisplay ( )
static

convert configuration setting display concept to real screens

Definition at line 1178 of file slideshow.cxx.

References SdOptionsMisc::GetDisplay(), Application::GetDisplayExternalScreen(), Impress, SAL_INFO, and SD_MOD.

Referenced by StartFullscreenPresentation().

◆ getImplementationName()

OUString SAL_CALL SlideShow::getImplementationName ( )
overridevirtual

Definition at line 237 of file slideshow.cxx.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL SlideShow::getPropertySetInfo ( )
overridevirtual

Definition at line 253 of file slideshow.cxx.

References SvxItemPropertySet::getPropertySetInfo(), and maPropSet.

◆ getPropertyValue()

Any SAL_CALL SlideShow::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getShowWindow()

OutputDevice * SlideShow::getShowWindow ( )

Definition at line 938 of file slideshow.cxx.

References mxController.

◆ GetSlideShow() [1/3]

rtl::Reference< SlideShow > SlideShow::GetSlideShow ( SdDrawDocument const &  rDocument)
static

Definition at line 167 of file slideshow.cxx.

References SdDrawDocument::getPresentation().

◆ GetSlideShow() [2/3]

rtl::Reference< SlideShow > SlideShow::GetSlideShow ( SdDrawDocument const *  pDocument)
static

◆ GetSlideShow() [3/3]

rtl::Reference< SlideShow > SlideShow::GetSlideShow ( ViewShellBase const &  rBase)
static

Definition at line 173 of file slideshow.cxx.

References sd::ViewShellBase::GetDocument(), and GetSlideShow().

◆ GetSlideShowController()

css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSlideShowController ( ViewShellBase const &  rBase)
static

Definition at line 178 of file slideshow.cxx.

References GetSlideShow().

Referenced by sd::ViewShell::HandleScrollCommand().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL SlideShow::getSupportedServiceNames ( )
overridevirtual

Definition at line 247 of file slideshow.cxx.

◆ GetWorkWindow()

WorkWindow * SlideShow::GetWorkWindow ( )
private

◆ IsExitAfterPresenting()

bool SlideShow::IsExitAfterPresenting ( ) const

Definition at line 643 of file slideshow.cxx.

References SdDrawDocument::IsExitAfterPresenting(), mpDoc, and ThrowIfDisposed().

◆ isFullScreen()

bool SlideShow::isFullScreen ( ) const

Definition at line 971 of file slideshow.cxx.

References mxController.

◆ isRunning()

sal_Bool SAL_CALL SlideShow::isRunning ( )
overridevirtual

Definition at line 890 of file slideshow.cxx.

References mxController.

◆ IsRunning() [1/2]

bool SlideShow::IsRunning ( const ViewShell rViewShell)
static

returns true if there is a running presentation inside the given ViewShell returns false even if there is a running presentation but in another ViewShell

Definition at line 214 of file slideshow.cxx.

References GetSlideShow(), and sd::ViewShell::GetViewShellBase().

◆ IsRunning() [2/2]

bool SlideShow::IsRunning ( ViewShellBase const &  rBase)
static

◆ jumpToBookmark()

void SlideShow::jumpToBookmark ( const OUString &  sBookmark)

Definition at line 965 of file slideshow.cxx.

References mxController.

◆ jumpToPageIndex()

void SlideShow::jumpToPageIndex ( sal_Int32  nIndex)

Definition at line 948 of file slideshow.cxx.

References mxController.

◆ jumpToPageNumber()

void SlideShow::jumpToPageNumber ( sal_Int32  nPage)

Definition at line 954 of file slideshow.cxx.

References mxController.

◆ keyInput()

bool SlideShow::keyInput ( const KeyEvent rKEvt)

Definition at line 1014 of file slideshow.cxx.

References mxController.

◆ longpress()

bool SlideShow::longpress ( const CommandGestureLongPressData rLongPressData)

Definition at line 1041 of file slideshow.cxx.

References mxController.

◆ operator=()

SlideShow & sd::SlideShow::operator= ( const SlideShow )
privatedelete

◆ paint()

void SlideShow::paint ( )

Definition at line 1019 of file slideshow.cxx.

References mxController.

◆ pause()

void SlideShow::pause ( bool  bPause)

sets or clears the pause state of the running slideshow.

!!!! This should only be called by the SdShowWindow !!!!

Definition at line 1025 of file slideshow.cxx.

References mxController.

◆ rehearseTimings()

void SAL_CALL SlideShow::rehearseTimings ( )
overridevirtual

Definition at line 821 of file slideshow.cxx.

References aArguments, comphelper::makePropertyValue(), and startWithArguments().

◆ removePropertyChangeListener()

void SAL_CALL SlideShow::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 610 of file slideshow.cxx.

◆ removeVetoableChangeListener()

void SAL_CALL SlideShow::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 618 of file slideshow.cxx.

◆ resize()

void SlideShow::resize ( const Size rSize)

Definition at line 976 of file slideshow.cxx.

References mxController.

◆ SetExitAfterPresenting()

void SlideShow::SetExitAfterPresenting ( bool  bExit)

Definition at line 650 of file slideshow.cxx.

References mpDoc, SdDrawDocument::SetExitAfterPresenting(), and ThrowIfDisposed().

◆ setPropertyValue()

void SAL_CALL SlideShow::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ start()

void SAL_CALL SlideShow::start ( )
overridevirtual

Definition at line 624 of file slideshow.cxx.

References aArguments, and startWithArguments().

◆ StartFullscreenPresentation()

void SlideShow::StartFullscreenPresentation ( )
private

◆ StartInPlacePresentation()

void SlideShow::StartInPlacePresentation ( )
private

◆ StartInPlacePresentationConfigurationCallback()

void SlideShow::StartInPlacePresentationConfigurationCallback ( )
private

◆ startPreview()

void SlideShow::startPreview ( const css::uno::Reference< css::drawing::XDrawPage > &  xDrawPage,
const css::uno::Reference< css::animations::XAnimationNode > &  xAnimationNode 
)

Definition at line 926 of file slideshow.cxx.

References aArguments, comphelper::makePropertyValue(), and startWithArguments().

◆ StartPreview()

bool SlideShow::StartPreview ( ViewShellBase const &  rBase,
const css::uno::Reference< css::drawing::XDrawPage > &  xDrawPage,
const css::uno::Reference< css::animations::XAnimationNode > &  xAnimationNode 
)
static

Definition at line 189 of file slideshow.cxx.

References GetSlideShow().

Referenced by sd::CustomAnimationPane::preview().

◆ startWithArguments()

void SAL_CALL SlideShow::startWithArguments ( const css::uno::Sequence< css::beans::PropertyValue > &  Arguments)
overridevirtual

◆ Stop()

void SlideShow::Stop ( ViewShellBase const &  rBase)
static

◆ supportsService()

sal_Bool SAL_CALL SlideShow::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 242 of file slideshow.cxx.

References ServiceName, and cppu::supportsService().

◆ swipe()

bool SlideShow::swipe ( const CommandGestureSwipeData rSwipeData)

Definition at line 1036 of file slideshow.cxx.

References mxController.

◆ ThrowIfDisposed()

void SlideShow::ThrowIfDisposed ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 145 of file slideshow.cxx.

References mpDoc.

Referenced by getController(), getPropertyValue(), IsExitAfterPresenting(), SetExitAfterPresenting(), setPropertyValue(), and startWithArguments().

Member Data Documentation

◆ maPropSet

SvxItemPropertySet sd::SlideShow::maPropSet
private

Definition at line 191 of file slideshow.hxx.

Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().

◆ mbIsInStartup

bool sd::SlideShow::mbIsInStartup
private

This flag is used together with mxController.is() to prevent multiple instances of the slide show for one document.

The flag covers the time before mxController is set.

Definition at line 198 of file slideshow.hxx.

Referenced by CreateController(), end(), and startWithArguments().

◆ mnInPlaceConfigEvent

ImplSVEvent* sd::SlideShow::mnInPlaceConfigEvent
private

Definition at line 206 of file slideshow.hxx.

Referenced by disposing(), and StartInPlacePresentationConfigurationCallback().

◆ mpCurrentViewShellBase

ViewShellBase* sd::SlideShow::mpCurrentViewShellBase
private

◆ mpDoc

SdDrawDocument* sd::SlideShow::mpDoc
private

◆ mpFullScreenFrameView

FrameView* sd::SlideShow::mpFullScreenFrameView
private

Definition at line 205 of file slideshow.hxx.

Referenced by activate(), end(), and StartFullscreenPresentation().

◆ mpFullScreenViewShellBase

ViewShellBase* sd::SlideShow::mpFullScreenViewShellBase
private

◆ mxController

rtl::Reference< SlideshowImpl > sd::SlideShow::mxController
private

◆ mxCurrentSettings

std::shared_ptr< PresentationSettingsEx > sd::SlideShow::mxCurrentSettings
private

Definition at line 201 of file slideshow.hxx.

Referenced by activate(), StartInPlacePresentation(), and startWithArguments().


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