LibreOffice Module sd (master) 1
fupage.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 <memory>
23#include "fupoor.hxx"
24#include <vcl/weld.hxx>
25
26class SfxItemSet;
28class SdPage;
29
30namespace sd {
31class DrawViewShell;
32
33class FuPage final
34 : public FuPoor
35{
36 public:
37
38 static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
39 virtual void DoExecute( SfxRequest& rReq ) override;
40
41 virtual void Activate() override;
42 virtual void Deactivate() override;
43
44 const SfxItemSet* ExecuteDialog(weld::Window* pParent, const SfxRequest& rReq);
45
46protected:
47 virtual ~FuPage() override;
48
49private:
50 FuPage (
51 ViewShell* pViewSh,
52 ::sd::Window* pWin,
53 ::sd::View* pView,
54 SdDrawDocument* pDoc,
55 SfxRequest& rReq );
56
57 void ApplyItemSet( const SfxItemSet* pArgs );
58
61 std::unique_ptr<SdBackgroundObjUndoAction>
69};
70
71} // end of namespace sd
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
Size maSize
Definition: fupage.hxx:63
const SfxItemSet * ExecuteDialog(weld::Window *pParent, const SfxRequest &rReq)
Definition: fupage.cxx:199
void ApplyItemSet(const SfxItemSet *pArgs)
Definition: fupage.cxx:496
virtual void DoExecute(SfxRequest &rReq) override
Definition: fupage.cxx:121
bool mbMasterPage
Definition: fupage.hxx:65
bool mbDisplayBackgroundTabPage
Definition: fupage.hxx:66
DrawViewShell * mpDrawViewShell
Definition: fupage.hxx:68
SfxRequest & mrReq
Definition: fupage.hxx:59
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fupage.cxx:114
FuPage(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
Definition: fupage.cxx:101
virtual ~FuPage() override
Definition: fupage.cxx:152
SdPage * mpPage
Definition: fupage.hxx:67
virtual void Deactivate() override
deactivates the function
Definition: fupage.cxx:160
bool mbPageBckgrdDeleted
Definition: fupage.hxx:64
const SfxItemSet * mpArgs
Definition: fupage.hxx:60
std::unique_ptr< SdBackgroundObjUndoAction > mpBackgroundObjUndoAction
Definition: fupage.hxx:62
virtual void Activate() override
activates the function
Definition: fupage.cxx:156
Base class for all functions.
Definition: fupoor.hxx:48
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45