| 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 | |
| 25 | class SwPagePreviewPrtData |
| 26 | { |
| 27 | |
| 28 | sal_Int32 m_nLeftSpace, m_nRightSpace, m_nTopSpace, m_nBottomSpace, |
| 29 | m_nHorzSpace, m_nVertSpace; |
| 30 | sal_Int16 m_nRow, m_nCol; |
| 31 | bool m_bLandscape : 1; |
| 32 | public: |
| 33 | SwPagePreviewPrtData() |
| 34 | : m_nLeftSpace(0), m_nRightSpace(0), m_nTopSpace(0), m_nBottomSpace(0), |
| 35 | m_nHorzSpace(0), m_nVertSpace(0), m_nRow(1), m_nCol(1), |
| 36 | m_bLandscape(false) |
| 37 | {} |
| 38 | |
| 39 | sal_Int32 GetLeftSpace() const { return m_nLeftSpace; } |
| 40 | void SetLeftSpace( sal_Int32 n ) { m_nLeftSpace = n; } |
| 41 | |
| 42 | sal_Int32 GetRightSpace() const { return m_nRightSpace; } |
| 43 | void SetRightSpace( sal_Int32 n ) { m_nRightSpace = n; } |
| 44 | |
| 45 | sal_Int32 GetTopSpace() const { return m_nTopSpace; } |
| 46 | void SetTopSpace( sal_Int32 n ) { m_nTopSpace = n; } |
| 47 | |
| 48 | sal_Int32 GetBottomSpace() const { return m_nBottomSpace; } |
| 49 | void SetBottomSpace(sal_Int32 n ) { m_nBottomSpace = n; } |
| 50 | |
| 51 | sal_Int32 GetHorzSpace() const { return m_nHorzSpace; } |
| 52 | void SetHorzSpace( sal_Int32 n ) { m_nHorzSpace = n; } |
| 53 | |
| 54 | sal_Int32 GetVertSpace() const { return m_nVertSpace; } |
| 55 | void SetVertSpace( sal_Int32 n ) { m_nVertSpace = n; } |
| 56 | |
| 57 | sal_Int16 GetRow() const { return m_nRow; } |
| 58 | void SetRow(sal_Int16 n ) { m_nRow = n; } |
| 59 | |
| 60 | sal_Int16 GetCol() const { return m_nCol; } |
| 61 | void SetCol( sal_Int16 n ) { m_nCol = n; } |
| 62 | |
| 63 | bool GetLandscape() const { return m_bLandscape; } |
| 64 | void SetLandscape( bool b ) { m_bLandscape = b; } |
| 65 | }; |
| 66 | |
| 67 | #endif |
| 68 | |
| 69 | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |