Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2390 jpm 1
<?php
2
/**
3
 * PHPExcel
4
 *
5
 * Copyright (c) 2006 - 2013 PHPExcel
6
 *
7
 * This library is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * This library is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with this library; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20
 *
21
 * @category   PHPExcel
22
 * @package    PHPExcel_Worksheet
23
 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
25
 * @version    ##VERSION##, ##DATE##
26
 */
27
 
28
 
29
/**
30
 * PHPExcel_Worksheet_PageMargins
31
 *
32
 * @category   PHPExcel
33
 * @package    PHPExcel_Worksheet
34
 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35
 */
36
class PHPExcel_Worksheet_PageMargins
37
{
38
	/**
39
	 * Left
40
	 *
41
	 * @var double
42
	 */
43
	private $_left		= 0.7;
44
 
45
	/**
46
	 * Right
47
	 *
48
	 * @var double
49
	 */
50
	private $_right		= 0.7;
51
 
52
	/**
53
	 * Top
54
	 *
55
	 * @var double
56
	 */
57
	private $_top		= 0.75;
58
 
59
	/**
60
	 * Bottom
61
	 *
62
	 * @var double
63
	 */
64
	private $_bottom	= 0.75;
65
 
66
	/**
67
	 * Header
68
	 *
69
	 * @var double
70
	 */
71
	private $_header 	= 0.3;
72
 
73
	/**
74
	 * Footer
75
	 *
76
	 * @var double
77
	 */
78
	private $_footer 	= 0.3;
79
 
80
    /**
81
     * Create a new PHPExcel_Worksheet_PageMargins
82
     */
83
    public function __construct()
84
    {
85
    }
86
 
87
    /**
88
     * Get Left
89
     *
90
     * @return double
91
     */
92
    public function getLeft() {
93
    	return $this->_left;
94
    }
95
 
96
    /**
97
     * Set Left
98
     *
99
     * @param double $pValue
100
     * @return PHPExcel_Worksheet_PageMargins
101
     */
102
    public function setLeft($pValue) {
103
    	$this->_left = $pValue;
104
    	return $this;
105
    }
106
 
107
    /**
108
     * Get Right
109
     *
110
     * @return double
111
     */
112
    public function getRight() {
113
    	return $this->_right;
114
    }
115
 
116
    /**
117
     * Set Right
118
     *
119
     * @param double $pValue
120
     * @return PHPExcel_Worksheet_PageMargins
121
     */
122
    public function setRight($pValue) {
123
    	$this->_right = $pValue;
124
    	return $this;
125
    }
126
 
127
    /**
128
     * Get Top
129
     *
130
     * @return double
131
     */
132
    public function getTop() {
133
    	return $this->_top;
134
    }
135
 
136
    /**
137
     * Set Top
138
     *
139
     * @param double $pValue
140
     * @return PHPExcel_Worksheet_PageMargins
141
     */
142
    public function setTop($pValue) {
143
    	$this->_top = $pValue;
144
    	return $this;
145
    }
146
 
147
    /**
148
     * Get Bottom
149
     *
150
     * @return double
151
     */
152
    public function getBottom() {
153
    	return $this->_bottom;
154
    }
155
 
156
    /**
157
     * Set Bottom
158
     *
159
     * @param double $pValue
160
     * @return PHPExcel_Worksheet_PageMargins
161
     */
162
    public function setBottom($pValue) {
163
    	$this->_bottom = $pValue;
164
    	return $this;
165
    }
166
 
167
    /**
168
     * Get Header
169
     *
170
     * @return double
171
     */
172
    public function getHeader() {
173
    	return $this->_header;
174
    }
175
 
176
    /**
177
     * Set Header
178
     *
179
     * @param double $pValue
180
     * @return PHPExcel_Worksheet_PageMargins
181
     */
182
    public function setHeader($pValue) {
183
    	$this->_header = $pValue;
184
    	return $this;
185
    }
186
 
187
    /**
188
     * Get Footer
189
     *
190
     * @return double
191
     */
192
    public function getFooter() {
193
    	return $this->_footer;
194
    }
195
 
196
    /**
197
     * Set Footer
198
     *
199
     * @param double $pValue
200
     * @return PHPExcel_Worksheet_PageMargins
201
     */
202
    public function setFooter($pValue) {
203
    	$this->_footer = $pValue;
204
    	return $this;
205
    }
206
 
207
	/**
208
	 * Implement PHP __clone to create a deep clone, not just a shallow copy.
209
	 */
210
	public function __clone() {
211
		$vars = get_object_vars($this);
212
		foreach ($vars as $key => $value) {
213
			if (is_object($value)) {
214
				$this->$key = clone $value;
215
			} else {
216
				$this->$key = $value;
217
			}
218
		}
219
	}
220
}