xref: /AOO41X/main/sw/inc/pvprtdat.hxx (revision 8809db7a87f97847b57a57f4cd2b0104b2b83182)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _PVPRTDAT_HXX
25 #define _PVPRTDAT_HXX
26 
27 
28 #include <tools/solar.h>
29 
30 class SwPagePreViewPrtData
31 {
32     sal_uLong nLeftSpace, nRightSpace, nTopSpace, nBottomSpace,
33             nHorzSpace, nVertSpace;
34     sal_uInt8 nRow, nCol;
35     sal_Bool bLandscape : 1;
36     sal_Bool bStretch : 1;
37 public:
38     SwPagePreViewPrtData()
39         : nLeftSpace(0), nRightSpace(0), nTopSpace(0), nBottomSpace(0),
40             nHorzSpace(0), nVertSpace(0), nRow(1), nCol(1),
41             bLandscape(0),bStretch(0)
42     {}
43 
44     sal_uLong GetLeftSpace() const          { return nLeftSpace; }
45     void SetLeftSpace( sal_uLong n )        { nLeftSpace = n; }
46 
47     sal_uLong GetRightSpace() const         { return nRightSpace; }
48     void SetRightSpace( sal_uLong n )       { nRightSpace = n; }
49 
50     sal_uLong GetTopSpace() const           { return nTopSpace; }
51     void SetTopSpace( sal_uLong n )         { nTopSpace = n; }
52 
53     sal_uLong GetBottomSpace() const        { return nBottomSpace; }
54     void SetBottomSpace( sal_uLong n )      { nBottomSpace = n; }
55 
56     sal_uLong GetHorzSpace() const          { return nHorzSpace; }
57     void SetHorzSpace( sal_uLong n )        { nHorzSpace = n; }
58 
59     sal_uLong GetVertSpace() const          { return nVertSpace; }
60     void SetVertSpace( sal_uLong n )        { nVertSpace = n; }
61 
62     sal_uInt8 GetRow() const                { return nRow; }
63     void SetRow(sal_uInt8 n )               { nRow = n; }
64 
65     sal_uInt8 GetCol() const                { return nCol; }
66     void SetCol( sal_uInt8 n )              { nCol = n; }
67 
68     sal_Bool GetLandscape() const           { return bLandscape; }
69     void SetLandscape( sal_Bool b )         { bLandscape = b; }
70 };
71 
72 
73 #endif
74 
75 
76