1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <tools/gen.hxx>
23 #include <vcl/prntypes.hxx>
30 /************************************************************************/
32 class SdPageFormatUndoAction final
: public SdUndoAction
41 Orientation meOldOrientation
;
42 sal_uInt16 mnOldPaperBin
;
51 Orientation meNewOrientation
;
52 sal_uInt16 mnNewPaperBin
;
56 SdPageFormatUndoAction( SdDrawDocument
* pDoc
,
63 Orientation eOldOrient
,
64 sal_uInt16 nOPaperBin
,
73 Orientation eNewOrient
,
74 sal_uInt16 nNPaperBin
,
84 meOldOrientation(eOldOrient
),
85 mnOldPaperBin (nOPaperBin
),
86 mbOldFullSize (bOFullSize
),
94 meNewOrientation(eNewOrient
),
95 mnNewPaperBin (nNPaperBin
),
96 mbNewFullSize (bNFullSize
)
99 virtual ~SdPageFormatUndoAction() override
;
101 virtual void Undo() override
;
102 virtual void Redo() override
;
105 /************************************************************************/
107 class SdPageLRUndoAction final
: public SdUndoAction
112 sal_Int32 mnOldRight
;
114 sal_Int32 mnNewRight
;
117 SdPageLRUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
118 sal_Int32 nOldLft
, sal_Int32 nOldRgt
,
119 sal_Int32 nNewLft
, sal_Int32 nNewRgt
) :
123 mnOldRight (nOldRgt
),
127 virtual ~SdPageLRUndoAction() override
;
129 virtual void Undo() override
;
130 virtual void Redo() override
;
133 /************************************************************************/
135 class SdPageULUndoAction final
: public SdUndoAction
139 sal_Int32 mnOldUpper
;
140 sal_Int32 mnOldLower
;
141 sal_Int32 mnNewUpper
;
142 sal_Int32 mnNewLower
;
145 SdPageULUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
146 sal_Int32 nOldUpr
, sal_Int32 nOldLwr
,
147 sal_Int32 nNewUpr
, sal_Int32 nNewLwr
) :
150 mnOldUpper (nOldUpr
),
151 mnOldLower (nOldLwr
),
152 mnNewUpper (nNewUpr
),
155 virtual ~SdPageULUndoAction() override
;
157 virtual void Undo() override
;
158 virtual void Redo() override
;
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */