[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * PHPExcel 4 * 5 * Copyright (c) 2006 - 2015 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 - 2015 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 - 2015 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 { 94 return $this->left; 95 } 96 97 /** 98 * Set Left 99 * 100 * @param double $pValue 101 * @return PHPExcel_Worksheet_PageMargins 102 */ 103 public function setLeft($pValue) 104 { 105 $this->left = $pValue; 106 return $this; 107 } 108 109 /** 110 * Get Right 111 * 112 * @return double 113 */ 114 public function getRight() 115 { 116 return $this->right; 117 } 118 119 /** 120 * Set Right 121 * 122 * @param double $pValue 123 * @return PHPExcel_Worksheet_PageMargins 124 */ 125 public function setRight($pValue) 126 { 127 $this->right = $pValue; 128 return $this; 129 } 130 131 /** 132 * Get Top 133 * 134 * @return double 135 */ 136 public function getTop() 137 { 138 return $this->top; 139 } 140 141 /** 142 * Set Top 143 * 144 * @param double $pValue 145 * @return PHPExcel_Worksheet_PageMargins 146 */ 147 public function setTop($pValue) 148 { 149 $this->top = $pValue; 150 return $this; 151 } 152 153 /** 154 * Get Bottom 155 * 156 * @return double 157 */ 158 public function getBottom() 159 { 160 return $this->bottom; 161 } 162 163 /** 164 * Set Bottom 165 * 166 * @param double $pValue 167 * @return PHPExcel_Worksheet_PageMargins 168 */ 169 public function setBottom($pValue) 170 { 171 $this->bottom = $pValue; 172 return $this; 173 } 174 175 /** 176 * Get Header 177 * 178 * @return double 179 */ 180 public function getHeader() 181 { 182 return $this->header; 183 } 184 185 /** 186 * Set Header 187 * 188 * @param double $pValue 189 * @return PHPExcel_Worksheet_PageMargins 190 */ 191 public function setHeader($pValue) 192 { 193 $this->header = $pValue; 194 return $this; 195 } 196 197 /** 198 * Get Footer 199 * 200 * @return double 201 */ 202 public function getFooter() 203 { 204 return $this->footer; 205 } 206 207 /** 208 * Set Footer 209 * 210 * @param double $pValue 211 * @return PHPExcel_Worksheet_PageMargins 212 */ 213 public function setFooter($pValue) 214 { 215 $this->footer = $pValue; 216 return $this; 217 } 218 219 /** 220 * Implement PHP __clone to create a deep clone, not just a shallow copy. 221 */ 222 public function __clone() 223 { 224 $vars = get_object_vars($this); 225 foreach ($vars as $key => $value) { 226 if (is_object($value)) { 227 $this->$key = clone $value; 228 } else { 229 $this->$key = $value; 230 } 231 } 232 } 233 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |