1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: undopage.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SD_UNDOPAGE_HXX
32 #define _SD_UNDOPAGE_HXX
34 #include <tools/gen.hxx>
35 #include <vcl/prntypes.hxx>
42 /************************************************************************/
44 class SdPageFormatUndoAction
: public SdUndoAction
54 Orientation meOldOrientation
;
64 Orientation meNewOrientation
;
70 SdPageFormatUndoAction( SdDrawDocument
* pDoc
,
78 Orientation eOldOrient
,
88 Orientation eNewOrient
,
100 meOldOrientation(eOldOrient
),
101 mnOldPaperBin (nOPaperBin
),
102 mbOldFullSize (bOFullSize
),
107 mnNewRight (nNewRgt
),
108 mnNewUpper (nNewUpr
),
109 mnNewLower (nNewLwr
),
110 mbNewScale (bNewScl
),
111 meNewOrientation(eNewOrient
),
112 mnNewPaperBin (nNPaperBin
),
113 mbNewFullSize (bNFullSize
)
116 virtual ~SdPageFormatUndoAction();
122 /************************************************************************/
124 class SdPageLRUndoAction
: public SdUndoAction
135 SdPageLRUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
136 INT32 nOldLft
, INT32 nOldRgt
,
137 INT32 nNewLft
, INT32 nNewRgt
) :
141 mnOldRight (nOldRgt
),
145 virtual ~SdPageLRUndoAction();
151 /************************************************************************/
153 class SdPageULUndoAction
: public SdUndoAction
164 SdPageULUndoAction( SdDrawDocument
* pDoc
, SdPage
* pThePage
,
165 INT32 nOldUpr
, INT32 nOldLwr
,
166 INT32 nNewUpr
, INT32 nNewLwr
) :
169 mnOldUpper (nOldUpr
),
170 mnOldLower (nOldLwr
),
171 mnNewUpper (nNewUpr
),
174 virtual ~SdPageULUndoAction();
182 #endif // _SD_UNDOPAGE_HXX