xref: /trunk/main/sw/inc/pvprtdat.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _PVPRTDAT_HXX
29 #define _PVPRTDAT_HXX
30 
31 
32 #include <tools/solar.h>
33 
34 class SwPagePreViewPrtData
35 {
36     sal_uLong nLeftSpace, nRightSpace, nTopSpace, nBottomSpace,
37             nHorzSpace, nVertSpace;
38     sal_uInt8 nRow, nCol;
39     sal_Bool bLandscape : 1;
40     sal_Bool bStretch : 1;
41 public:
42     SwPagePreViewPrtData()
43         : nLeftSpace(0), nRightSpace(0), nTopSpace(0), nBottomSpace(0),
44             nHorzSpace(0), nVertSpace(0), nRow(1), nCol(1),
45             bLandscape(0),bStretch(0)
46     {}
47 
48     sal_uLong GetLeftSpace() const          { return nLeftSpace; }
49     void SetLeftSpace( sal_uLong n )        { nLeftSpace = n; }
50 
51     sal_uLong GetRightSpace() const         { return nRightSpace; }
52     void SetRightSpace( sal_uLong n )       { nRightSpace = n; }
53 
54     sal_uLong GetTopSpace() const           { return nTopSpace; }
55     void SetTopSpace( sal_uLong n )         { nTopSpace = n; }
56 
57     sal_uLong GetBottomSpace() const        { return nBottomSpace; }
58     void SetBottomSpace( sal_uLong n )      { nBottomSpace = n; }
59 
60     sal_uLong GetHorzSpace() const          { return nHorzSpace; }
61     void SetHorzSpace( sal_uLong n )        { nHorzSpace = n; }
62 
63     sal_uLong GetVertSpace() const          { return nVertSpace; }
64     void SetVertSpace( sal_uLong n )        { nVertSpace = n; }
65 
66     sal_uInt8 GetRow() const                { return nRow; }
67     void SetRow(sal_uInt8 n )               { nRow = n; }
68 
69     sal_uInt8 GetCol() const                { return nCol; }
70     void SetCol( sal_uInt8 n )              { nCol = n; }
71 
72     sal_Bool GetLandscape() const           { return bLandscape; }
73     void SetLandscape( sal_Bool b )         { bLandscape = b; }
74 };
75 
76 
77 #endif
78 
79 
80