xlnt
xlnt
worksheet
page_margins.hpp
1
// Copyright (c) 2014-2022 Thomas Fussell
2
// Copyright (c) 2010-2015 openpyxl
3
// Copyright (c) 2024 xlnt-community
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to deal
7
// in the Software without restriction, including without limitation the rights
8
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included in
13
// all copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
// THE SOFTWARE
22
//
23
// @license: http://www.opensource.org/licenses/mit-license.php
24
// @author: see AUTHORS file
25
26
#pragma once
27
28
#include <xlnt/xlnt_config.hpp>
29
30
namespace
xlnt
{
31
35
class
XLNT_API
page_margins
36
{
37
public
:
41
page_margins
();
42
46
double
top()
const
;
47
51
void
top(
double
top);
52
56
double
left()
const
;
57
61
void
left(
double
left);
62
66
double
bottom()
const
;
67
71
void
bottom(
double
bottom);
72
76
double
right()
const
;
77
81
void
right(
double
right);
82
86
double
header()
const
;
87
91
void
header(
double
header);
92
96
double
footer()
const
;
97
101
void
footer(
double
footer);
102
103
bool
operator==
(
const
page_margins
&rhs)
const
;
104
105
private
:
109
double
top_ = 1;
110
114
double
left_ = 0.75;
115
119
double
bottom_ = 1;
120
124
double
right_ = 0.75;
125
129
double
header_ = 0.5;
130
134
double
footer_ = 0.5;
135
};
136
137
}
// namespace xlnt
xlnt::page_margins
Describes the margins around a worksheet for printing.
Definition:
page_margins.hpp:35
xlnt
Enumerates the possible types a cell can be determined by it's current value.
Definition:
cell.hpp:37
xlnt::operator==
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
Generated by
1.8.13