bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / inc / undopage.hxx
blob8872059de6b5b673941e2d20401766f643dee049
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_UNDOPAGE_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_UNDOPAGE_HXX
23 #include <tools/gen.hxx>
24 #include <vcl/prntypes.hxx>
26 #include <sdundo.hxx>
28 class SdDrawDocument;
29 class SdPage;
31 /************************************************************************/
33 class SdPageFormatUndoAction : public SdUndoAction
35 SdPage* mpPage;
37 Size const maOldSize;
38 sal_Int32 const mnOldLeft;
39 sal_Int32 const mnOldRight;
40 sal_Int32 const mnOldUpper;
41 sal_Int32 const mnOldLower;
42 Orientation const meOldOrientation;
43 sal_uInt16 const mnOldPaperBin;
44 bool const mbOldFullSize;
46 Size const maNewSize;
47 sal_Int32 const mnNewLeft;
48 sal_Int32 const mnNewRight;
49 sal_Int32 const mnNewUpper;
50 sal_Int32 const mnNewLower;
51 bool const mbNewScale;
52 Orientation const meNewOrientation;
53 sal_uInt16 const mnNewPaperBin;
54 bool const mbNewFullSize;
56 public:
57 SdPageFormatUndoAction( SdDrawDocument* pDoc,
58 SdPage* pThePage,
59 const Size& rOldSz,
60 sal_Int32 nOldLft,
61 sal_Int32 nOldRgt,
62 sal_Int32 nOldUpr,
63 sal_Int32 nOldLwr,
64 Orientation eOldOrient,
65 sal_uInt16 nOPaperBin,
66 bool bOFullSize,
68 const Size& rNewSz,
69 sal_Int32 nNewLft,
70 sal_Int32 nNewRgt,
71 sal_Int32 nNewUpr,
72 sal_Int32 nNewLwr,
73 bool bNewScl,
74 Orientation eNewOrient,
75 sal_uInt16 nNPaperBin,
76 bool bNFullSize
77 ) :
78 SdUndoAction(pDoc),
79 mpPage (pThePage),
80 maOldSize (rOldSz),
81 mnOldLeft (nOldLft),
82 mnOldRight (nOldRgt),
83 mnOldUpper (nOldUpr),
84 mnOldLower (nOldLwr),
85 meOldOrientation(eOldOrient),
86 mnOldPaperBin (nOPaperBin),
87 mbOldFullSize (bOFullSize),
89 maNewSize (rNewSz),
90 mnNewLeft (nNewLft),
91 mnNewRight (nNewRgt),
92 mnNewUpper (nNewUpr),
93 mnNewLower (nNewLwr),
94 mbNewScale (bNewScl),
95 meNewOrientation(eNewOrient),
96 mnNewPaperBin (nNPaperBin),
97 mbNewFullSize (bNFullSize)
100 virtual ~SdPageFormatUndoAction() override;
102 virtual void Undo() override;
103 virtual void Redo() override;
106 /************************************************************************/
108 class SdPageLRUndoAction : public SdUndoAction
110 SdPage* mpPage;
112 sal_Int32 const mnOldLeft;
113 sal_Int32 const mnOldRight;
114 sal_Int32 const mnNewLeft;
115 sal_Int32 const mnNewRight;
117 public:
118 SdPageLRUndoAction( SdDrawDocument* pDoc, SdPage* pThePage,
119 sal_Int32 nOldLft, sal_Int32 nOldRgt,
120 sal_Int32 nNewLft, sal_Int32 nNewRgt ) :
121 SdUndoAction(pDoc),
122 mpPage (pThePage),
123 mnOldLeft (nOldLft),
124 mnOldRight (nOldRgt),
125 mnNewLeft (nNewLft),
126 mnNewRight (nNewRgt)
128 virtual ~SdPageLRUndoAction() override;
130 virtual void Undo() override;
131 virtual void Redo() override;
134 /************************************************************************/
136 class SdPageULUndoAction : public SdUndoAction
138 SdPage* mpPage;
140 sal_Int32 const mnOldUpper;
141 sal_Int32 const mnOldLower;
142 sal_Int32 const mnNewUpper;
143 sal_Int32 const mnNewLower;
145 public:
146 SdPageULUndoAction( SdDrawDocument* pDoc, SdPage* pThePage,
147 sal_Int32 nOldUpr, sal_Int32 nOldLwr,
148 sal_Int32 nNewUpr, sal_Int32 nNewLwr ) :
149 SdUndoAction(pDoc),
150 mpPage (pThePage),
151 mnOldUpper (nOldUpr),
152 mnOldLower (nOldLwr),
153 mnNewUpper (nNewUpr),
154 mnNewLower (nNewLwr)
156 virtual ~SdPageULUndoAction() override;
158 virtual void Undo() override;
159 virtual void Redo() override;
162 #endif // INCLUDED_SD_SOURCE_UI_INC_UNDOPAGE_HXX
164 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */