20#include <com/sun/star/lang/XMultiServiceFactory.hpp>
21#include <com/sun/star/beans/XPropertySet.hpp>
27#include <svx/svxids.hrc>
38#define ShellClass_PresentationViewShell
52 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_TOOLS, SfxVisibilityFlags::Standard | SfxVisibilityFlags::FullScreen | SfxVisibilityFlags::Server,
53 ToolbarId::Draw_Toolbox_Sd);
54 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_APPLICATION, SfxVisibilityFlags::Standard | SfxVisibilityFlags::Client | SfxVisibilityFlags::Viewer | SfxVisibilityFlags::ReadonlyDoc,
55 ToolbarId::Draw_Viewer_Toolbox);
56 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_OPTIONS, SfxVisibilityFlags::Standard | SfxVisibilityFlags::Server,
57 ToolbarId::Draw_Options_Toolbox);
58 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_COMMONTASK, SfxVisibilityFlags::Standard | SfxVisibilityFlags::Server,
59 ToolbarId::Draw_CommonTask_Toolbox);
65 , mnAbortSlideShowEvent(nullptr)
67 if(
GetDocSh() &&
GetDocSh()->GetCreateMode() == SfxObjectCreateMode::EMBEDDED )
87 if (pFrameView !=
nullptr)
111 mnAbortSlideShowEvent =
nullptr;
126 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem });
129 if( xSlideShow.is() )
157 if( xSlideShow.is() )
166 if( xSlideshow.is() )
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
static void RemoveUserEvent(ImplSVEvent *nUserEvent)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
virtual void SetVisArea(const tools::Rectangle &rVisArea)
SfxDispatcher * GetDispatcher()
virtual ::tools::Rectangle GetVisArea(sal_uInt16 nAspect) const override
void Connect(sd::ViewShell *pViewSh)
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
virtual void Activate(bool bIsMDIActivate) override
set focus to working window
virtual void WriteFrameViewData() override
Apply data of the current view on the FrameView.
virtual void Init(bool bIsMainViewShell) override
The Init method has to be called from the outside directly after a new object of this class has been ...
virtual void ReadFrameViewData(FrameView *pView) override
Apply data of the FrameView on the current view.
This view shell is responsible for showing the presentation of an Impress document.
PresentationViewShell(ViewShellBase &rViewShellBase, vcl::Window *pParentWindow, FrameView *pFrameView)
virtual void Paint(const ::tools::Rectangle &rRect, ::sd::Window *pWin) override
The event is forwarded to the Viewshell and the current function by the window pWin.
virtual void Resize() override
Notify the view shell that its parent window has been resized.
ImplSVEvent * mnAbortSlideShowEvent
::tools::Rectangle maOldVisArea
virtual VclPtr< SvxRuler > CreateHRuler(::sd::Window *pWin) override
Generate horizontal ruler.
virtual VclPtr< SvxRuler > CreateVRuler(::sd::Window *pWin) override
Generate vertical ruler.
void FinishInitialization(FrameView *pFrameView)
This method is used by a simple class that passes some arguments from the creator of the new view she...
virtual void Activate(bool bIsMDIActivate) override
set focus to working window
virtual ~PresentationViewShell() override
static rtl::Reference< SlideShow > GetSlideShow(SdDrawDocument const *pDocument)
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
SD_DLLPUBLIC DrawDocShell * GetDocSh() const
const rtl::Reference< FuPoor > & GetCurrentFunction() const
ShellType meShellType
The type of the shell. Returned by GetShellType().
void SetRuler(bool bRuler)
Switch ruler on/off.
FrameView * GetFrameView()
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
void SetFrameView(FrameView *pFrameView)
Setting a frame view triggers ReadFrameViewData() for the new frame.
virtual void Resize()
Notify the view shell that its parent window has been resized.
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
SD_DLLPUBLIC SfxViewFrame * GetViewFrame() const
bool HasCurrentFunction() const
An SdWindow contains the actual working area of ViewShell.
void GrabFocus()
Activate window.
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(MainSequence, onTimerHdl, Timer *, void)
#define SFX_OBJECTBAR_APPLICATION
#define SFX_OBJECTBAR_COMMONTASK
#define SFX_OBJECTBAR_OPTIONS
#define SFX_OBJECTBAR_TOOLS
#define SFX_IMPL_INTERFACE(Class, SuperClass)