Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / sw / inc / pvprtdat.hxx
bloba559257d6b4d55fd75455c50ce9b8e8a8976c38f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_INC_PVPRTDAT_HXX
21 #define INCLUDED_SW_INC_PVPRTDAT_HXX
23 #include <tools/solar.h>
25 class SwPagePreviewPrtData
27 sal_uLong nLeftSpace, nRightSpace, nTopSpace, nBottomSpace,
28 nHorzSpace, nVertSpace;
29 sal_uInt8 nRow, nCol;
30 bool bLandscape : 1;
31 public:
32 SwPagePreviewPrtData()
33 : nLeftSpace(0), nRightSpace(0), nTopSpace(0), nBottomSpace(0),
34 nHorzSpace(0), nVertSpace(0), nRow(1), nCol(1),
35 bLandscape(false)
38 sal_uLong GetLeftSpace() const { return nLeftSpace; }
39 void SetLeftSpace( sal_uLong n ) { nLeftSpace = n; }
41 sal_uLong GetRightSpace() const { return nRightSpace; }
42 void SetRightSpace( sal_uLong n ) { nRightSpace = n; }
44 sal_uLong GetTopSpace() const { return nTopSpace; }
45 void SetTopSpace( sal_uLong n ) { nTopSpace = n; }
47 sal_uLong GetBottomSpace() const { return nBottomSpace; }
48 void SetBottomSpace( sal_uLong n ) { nBottomSpace = n; }
50 sal_uLong GetHorzSpace() const { return nHorzSpace; }
51 void SetHorzSpace( sal_uLong n ) { nHorzSpace = n; }
53 sal_uLong GetVertSpace() const { return nVertSpace; }
54 void SetVertSpace( sal_uLong n ) { nVertSpace = n; }
56 sal_uInt8 GetRow() const { return nRow; }
57 void SetRow(sal_uInt8 n ) { nRow = n; }
59 sal_uInt8 GetCol() const { return nCol; }
60 void SetCol( sal_uInt8 n ) { nCol = n; }
62 bool GetLandscape() const { return bLandscape; }
63 void SetLandscape( bool b ) { bLandscape = b; }
66 #endif
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */