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 .
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>
31 /************************************************************************/
33 class SdPageFormatUndoAction
: public SdUndoAction
42 Orientation meOldOrientation
;
43 sal_uInt16 mnOldPaperBin
;
52 Orientation meNewOrientation
;
53 sal_uInt16 mnNewPaperBin
;
58 SdPageFormatUndoAction( SdDrawDocument
* pDoc
,
65 Orientation eOldOrient
,
66 sal_uInt16 nOPaperBin
,
75 Orientation eNewOrient
,
76 sal_uInt16 nNPaperBin
,
86 meOldOrientation(eOldOrient
),
87 mnOldPaperBin (nOPaperBin
),
88 mbOldFullSize (bOFullSize
),
96 meNewOrientation(eNewOrient
),
97 mnNewPaperBin (nNPaperBin
),
98 mbNewFullSize (bNFullSize
)
101 virtual ~SdPageFormatUndoAction();
103 virtual void Undo() SAL_OVERRIDE
;
104 virtual void Redo() SAL_OVERRIDE
;
107 /************************************************************************/
109 class SdPageLRUndoAction
: public SdUndoAction
114 sal_Int32 mnOldRight
;
116 sal_Int32 mnNewRight
;
120 SdPageLRUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
121 sal_Int32 nOldLft
, sal_Int32 nOldRgt
,
122 sal_Int32 nNewLft
, sal_Int32 nNewRgt
) :
126 mnOldRight (nOldRgt
),
130 virtual ~SdPageLRUndoAction();
132 virtual void Undo() SAL_OVERRIDE
;
133 virtual void Redo() SAL_OVERRIDE
;
136 /************************************************************************/
138 class SdPageULUndoAction
: public SdUndoAction
142 sal_Int32 mnOldUpper
;
143 sal_Int32 mnOldLower
;
144 sal_Int32 mnNewUpper
;
145 sal_Int32 mnNewLower
;
149 SdPageULUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
150 sal_Int32 nOldUpr
, sal_Int32 nOldLwr
,
151 sal_Int32 nNewUpr
, sal_Int32 nNewLwr
) :
154 mnOldUpper (nOldUpr
),
155 mnOldLower (nOldLwr
),
156 mnNewUpper (nNewUpr
),
159 virtual ~SdPageULUndoAction();
161 virtual void Undo() SAL_OVERRIDE
;
162 virtual void Redo() SAL_OVERRIDE
;
165 #endif // INCLUDED_SD_SOURCE_UI_INC_UNDOPAGE_HXX
167 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */