LibreOffice Module sw (master)  1
pvprtdat.hxx
Go to the documentation of this file.
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 INCLUDED_SW_INC_PVPRTDAT_HXX
21 #define INCLUDED_SW_INC_PVPRTDAT_HXX
22 
23 #include <sal/types.h>
24 
26 {
27 
31  bool bLandscape : 1;
32 public:
34  : nLeftSpace(0), nRightSpace(0), nTopSpace(0), nBottomSpace(0),
35  nHorzSpace(0), nVertSpace(0), nRow(1), nCol(1),
36  bLandscape(false)
37  {}
38 
39  sal_Int32 GetLeftSpace() const { return nLeftSpace; }
40  void SetLeftSpace( sal_Int32 n ) { nLeftSpace = n; }
41 
42  sal_Int32 GetRightSpace() const { return nRightSpace; }
43  void SetRightSpace( sal_Int32 n ) { nRightSpace = n; }
44 
45  sal_Int32 GetTopSpace() const { return nTopSpace; }
46  void SetTopSpace( sal_Int32 n ) { nTopSpace = n; }
47 
48  sal_Int32 GetBottomSpace() const { return nBottomSpace; }
49  void SetBottomSpace(sal_Int32 n ) { nBottomSpace = n; }
50 
51  sal_Int32 GetHorzSpace() const { return nHorzSpace; }
52  void SetHorzSpace( sal_Int32 n ) { nHorzSpace = n; }
53 
54  sal_Int32 GetVertSpace() const { return nVertSpace; }
55  void SetVertSpace( sal_Int32 n ) { nVertSpace = n; }
56 
57  sal_uInt8 GetRow() const { return nRow; }
58  void SetRow(sal_uInt8 n ) { nRow = n; }
59 
60  sal_uInt8 GetCol() const { return nCol; }
61  void SetCol( sal_uInt8 n ) { nCol = n; }
62 
63  bool GetLandscape() const { return bLandscape; }
64  void SetLandscape( bool b ) { bLandscape = b; }
65 };
66 
67 #endif
68 
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 GetBottomSpace() const
Definition: pvprtdat.hxx:48
void SetCol(sal_uInt8 n)
Definition: pvprtdat.hxx:61
sal_Int32 GetRightSpace() const
Definition: pvprtdat.hxx:42
void SetLandscape(bool b)
Definition: pvprtdat.hxx:64
sal_Int32 nLeftSpace
Definition: pvprtdat.hxx:28
void SetRow(sal_uInt8 n)
Definition: pvprtdat.hxx:58
sal_uInt8 GetCol() const
Definition: pvprtdat.hxx:60
sal_Int32 nVertSpace
Definition: pvprtdat.hxx:28
sal_Int32 nHorzSpace
Definition: pvprtdat.hxx:28
void SetHorzSpace(sal_Int32 n)
Definition: pvprtdat.hxx:52
sal_Int32 nTopSpace
Definition: pvprtdat.hxx:28
void SetBottomSpace(sal_Int32 n)
Definition: pvprtdat.hxx:49
void SetRightSpace(sal_Int32 n)
Definition: pvprtdat.hxx:43
bool GetLandscape() const
Definition: pvprtdat.hxx:63
sal_Int32 GetTopSpace() const
Definition: pvprtdat.hxx:45
void SetLeftSpace(sal_Int32 n)
Definition: pvprtdat.hxx:40
sal_Int32 nRightSpace
Definition: pvprtdat.hxx:28
void SetVertSpace(sal_Int32 n)
Definition: pvprtdat.hxx:55
sal_Int32 GetLeftSpace() const
Definition: pvprtdat.hxx:39
unsigned char sal_uInt8
sal_uInt8 GetRow() const
Definition: pvprtdat.hxx:57
void SetTopSpace(sal_Int32 n)
Definition: pvprtdat.hxx:46
sal_Int32 nBottomSpace
Definition: pvprtdat.hxx:28
sal_Int32 GetHorzSpace() const
Definition: pvprtdat.hxx:51
sal_Int32 GetVertSpace() const
Definition: pvprtdat.hxx:54