xref: /trunk/main/sw/inc/pvprtdat.hxx (revision 1d2dbeb0)
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:
SwPagePreViewPrtData()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 
GetLeftSpace() const44 	sal_uLong GetLeftSpace() const 			{ return nLeftSpace; }
SetLeftSpace(sal_uLong n)45 	void SetLeftSpace( sal_uLong n ) 		{ nLeftSpace = n; }
46 
GetRightSpace() const47 	sal_uLong GetRightSpace() const 		{ return nRightSpace; }
SetRightSpace(sal_uLong n)48 	void SetRightSpace( sal_uLong n ) 		{ nRightSpace = n; }
49 
GetTopSpace() const50 	sal_uLong GetTopSpace() const 			{ return nTopSpace; }
SetTopSpace(sal_uLong n)51 	void SetTopSpace( sal_uLong n ) 		{ nTopSpace = n; }
52 
GetBottomSpace() const53 	sal_uLong GetBottomSpace() const 		{ return nBottomSpace; }
SetBottomSpace(sal_uLong n)54 	void SetBottomSpace( sal_uLong n ) 		{ nBottomSpace = n; }
55 
GetHorzSpace() const56 	sal_uLong GetHorzSpace() const 			{ return nHorzSpace; }
SetHorzSpace(sal_uLong n)57 	void SetHorzSpace( sal_uLong n ) 		{ nHorzSpace = n; }
58 
GetVertSpace() const59 	sal_uLong GetVertSpace() const 			{ return nVertSpace; }
SetVertSpace(sal_uLong n)60 	void SetVertSpace( sal_uLong n ) 		{ nVertSpace = n; }
61 
GetRow() const62 	sal_uInt8 GetRow() const 				{ return nRow; }
SetRow(sal_uInt8 n)63 	void SetRow(sal_uInt8 n ) 				{ nRow = n; }
64 
GetCol() const65 	sal_uInt8 GetCol() const 				{ return nCol; }
SetCol(sal_uInt8 n)66 	void SetCol( sal_uInt8 n ) 				{ nCol = n; }
67 
GetLandscape() const68 	sal_Bool GetLandscape() const 			{ return bLandscape; }
SetLandscape(sal_Bool b)69 	void SetLandscape( sal_Bool b ) 		{ bLandscape = b; }
70 };
71 
72 
73 #endif
74 
75 
76