LibreOffice Module sd (master) 1
PresentationViewShell.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include "DrawViewShell.hxx"
23
24namespace sd
25{
30{
31public:
33
34private:
36 static void InitInterface_Impl();
37
38public:
39 PresentationViewShell(ViewShellBase& rViewShellBase, vcl::Window* pParentWindow,
40 FrameView* pFrameView);
41 virtual ~PresentationViewShell() override;
42
50 void FinishInitialization(FrameView* pFrameView);
51
52 virtual void Resize() override;
53
54protected:
55 virtual VclPtr<SvxRuler> CreateHRuler(::sd::Window* pWin) override;
56 virtual VclPtr<SvxRuler> CreateVRuler(::sd::Window* pWin) override;
57
58private:
61
62 virtual void Activate(bool bIsMDIActivate) override;
63 virtual void Paint(const ::tools::Rectangle& rRect, ::sd::Window* pWin) override;
64
65 DECL_LINK(AbortSlideShowHdl, void*, void);
66};
67
68} // end of namespace sd
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
View for MDIFrame.
Definition: FrameView.hxx:36
This view shell is responsible for showing the presentation of an Impress document.
PresentationViewShell(ViewShellBase &rViewShellBase, vcl::Window *pParentWindow, FrameView *pFrameView)
Definition: presvish.cxx:63
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.
Definition: presvish.cxx:154
virtual void Resize() override
Notify the view shell that its parent window has been resized.
Definition: presvish.cxx:161
virtual VclPtr< SvxRuler > CreateHRuler(::sd::Window *pWin) override
Generate horizontal ruler.
Definition: presvish.cxx:99
virtual VclPtr< SvxRuler > CreateVRuler(::sd::Window *pWin) override
Generate vertical ruler.
Definition: presvish.cxx:104
void FinishInitialization(FrameView *pFrameView)
This method is used by a simple class that passes some arguments from the creator of the new view she...
Definition: presvish.cxx:81
virtual void Activate(bool bIsMDIActivate) override
set focus to working window
Definition: presvish.cxx:117
DECL_LINK(AbortSlideShowHdl, void *, void)
virtual ~PresentationViewShell() override
Definition: presvish.cxx:72
static void InitInterface_Impl()
SfxInterface initializer.
Definition: presvish.cxx:50
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45
#define SD_IF_SDPRESVIEWSHELL
Definition: glob.hxx:33
#define SFX_DECL_INTERFACE(nId)