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