Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #ifndef _PVPRTDAT_HXX
21 : : #define _PVPRTDAT_HXX
22 : :
23 : :
24 : : #include <tools/solar.h>
25 : :
26 : : class SwPagePreViewPrtData
27 : : {
28 : : sal_uLong nLeftSpace, nRightSpace, nTopSpace, nBottomSpace,
29 : : nHorzSpace, nVertSpace;
30 : : sal_uInt8 nRow, nCol;
31 : : sal_Bool bLandscape : 1;
32 : : sal_Bool bStretch : 1;
33 : : public:
34 : 0 : SwPagePreViewPrtData()
35 : : : nLeftSpace(0), nRightSpace(0), nTopSpace(0), nBottomSpace(0),
36 : : nHorzSpace(0), nVertSpace(0), nRow(1), nCol(1),
37 : 0 : bLandscape(0),bStretch(0)
38 : 0 : {}
39 : :
40 : 0 : sal_uLong GetLeftSpace() const { return nLeftSpace; }
41 : 0 : void SetLeftSpace( sal_uLong n ) { nLeftSpace = n; }
42 : :
43 : 0 : sal_uLong GetRightSpace() const { return nRightSpace; }
44 : 0 : void SetRightSpace( sal_uLong n ) { nRightSpace = n; }
45 : :
46 : 0 : sal_uLong GetTopSpace() const { return nTopSpace; }
47 : 0 : void SetTopSpace( sal_uLong n ) { nTopSpace = n; }
48 : :
49 : 0 : sal_uLong GetBottomSpace() const { return nBottomSpace; }
50 : 0 : void SetBottomSpace( sal_uLong n ) { nBottomSpace = n; }
51 : :
52 : 0 : sal_uLong GetHorzSpace() const { return nHorzSpace; }
53 : 0 : void SetHorzSpace( sal_uLong n ) { nHorzSpace = n; }
54 : :
55 : 0 : sal_uLong GetVertSpace() const { return nVertSpace; }
56 : 0 : void SetVertSpace( sal_uLong n ) { nVertSpace = n; }
57 : :
58 : 0 : sal_uInt8 GetRow() const { return nRow; }
59 : 0 : void SetRow(sal_uInt8 n ) { nRow = n; }
60 : :
61 : 0 : sal_uInt8 GetCol() const { return nCol; }
62 : 0 : void SetCol( sal_uInt8 n ) { nCol = n; }
63 : :
64 : 0 : sal_Bool GetLandscape() const { return bLandscape; }
65 : 0 : void SetLandscape( sal_Bool b ) { bLandscape = b; }
66 : : };
67 : :
68 : :
69 : : #endif
70 : :
71 : :
72 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|