PHPExcel_Worksheet
[ class tree: PHPExcel_Worksheet ] [ index: PHPExcel_Worksheet ] [ all elements ]

Source for file PageMargins.php

Documentation is available at PageMargins.php

  1. <?php
  2. /**
  3.  * PHPExcel
  4.  *
  5.  * Copyright (c) 2006 - 2011 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 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
  24.  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  25.  * @version    1.7.6, 2011-02-27
  26.  */
  27.  
  28.  
  29. /**
  30.  * PHPExcel_Worksheet_PageMargins
  31.  *
  32.  * @category   PHPExcel
  33.  * @package    PHPExcel_Worksheet
  34.  * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
  35.  */
  36. {
  37.     /**
  38.      * Left
  39.      *
  40.      * @var double 
  41.      */
  42.     private $_left        0.7;
  43.  
  44.     /**
  45.      * Right
  46.      *
  47.      * @var double 
  48.      */
  49.     private $_right        0.7;
  50.  
  51.     /**
  52.      * Top
  53.      *
  54.      * @var double 
  55.      */
  56.     private $_top        0.75;
  57.  
  58.     /**
  59.      * Bottom
  60.      *
  61.      * @var double 
  62.      */
  63.     private $_bottom    0.75;
  64.  
  65.     /**
  66.      * Header
  67.      *
  68.      * @var double 
  69.      */
  70.     private $_header     0.3;
  71.  
  72.     /**
  73.      * Footer
  74.      *
  75.      * @var double 
  76.      */
  77.     private $_footer     0.3;
  78.  
  79.     /**
  80.      * Create a new PHPExcel_Worksheet_PageMargins
  81.      */
  82.     public function __construct()
  83.     {
  84.     }
  85.  
  86.     /**
  87.      * Get Left
  88.      *
  89.      * @return double 
  90.      */
  91.     public function getLeft({
  92.         return $this->_left;
  93.     }
  94.  
  95.     /**
  96.      * Set Left
  97.      *
  98.      * @param double $pValue 
  99.      * @return PHPExcel_Worksheet_PageMargins 
  100.      */
  101.     public function setLeft($pValue{
  102.         $this->_left $pValue;
  103.         return $this;
  104.     }
  105.  
  106.     /**
  107.      * Get Right
  108.      *
  109.      * @return double 
  110.      */
  111.     public function getRight({
  112.         return $this->_right;
  113.     }
  114.  
  115.     /**
  116.      * Set Right
  117.      *
  118.      * @param double $pValue 
  119.      * @return PHPExcel_Worksheet_PageMargins 
  120.      */
  121.     public function setRight($pValue{
  122.         $this->_right $pValue;
  123.         return $this;
  124.     }
  125.  
  126.     /**
  127.      * Get Top
  128.      *
  129.      * @return double 
  130.      */
  131.     public function getTop({
  132.         return $this->_top;
  133.     }
  134.  
  135.     /**
  136.      * Set Top
  137.      *
  138.      * @param double $pValue 
  139.      * @return PHPExcel_Worksheet_PageMargins 
  140.      */
  141.     public function setTop($pValue{
  142.         $this->_top $pValue;
  143.         return $this;
  144.     }
  145.  
  146.     /**
  147.      * Get Bottom
  148.      *
  149.      * @return double 
  150.      */
  151.     public function getBottom({
  152.         return $this->_bottom;
  153.     }
  154.  
  155.     /**
  156.      * Set Bottom
  157.      *
  158.      * @param double $pValue 
  159.      * @return PHPExcel_Worksheet_PageMargins 
  160.      */
  161.     public function setBottom($pValue{
  162.         $this->_bottom $pValue;
  163.         return $this;
  164.     }
  165.  
  166.     /**
  167.      * Get Header
  168.      *
  169.      * @return double 
  170.      */
  171.     public function getHeader({
  172.         return $this->_header;
  173.     }
  174.  
  175.     /**
  176.      * Set Header
  177.      *
  178.      * @param double $pValue 
  179.      * @return PHPExcel_Worksheet_PageMargins 
  180.      */
  181.     public function setHeader($pValue{
  182.         $this->_header $pValue;
  183.         return $this;
  184.     }
  185.  
  186.     /**
  187.      * Get Footer
  188.      *
  189.      * @return double 
  190.      */
  191.     public function getFooter({
  192.         return $this->_footer;
  193.     }
  194.  
  195.     /**
  196.      * Set Footer
  197.      *
  198.      * @param double $pValue 
  199.      * @return PHPExcel_Worksheet_PageMargins 
  200.      */
  201.     public function setFooter($pValue{
  202.         $this->_footer $pValue;
  203.         return $this;
  204.     }
  205.  
  206.     /**
  207.      * Implement PHP __clone to create a deep clone, not just a shallow copy.
  208.      */
  209.     public function __clone({
  210.         $vars get_object_vars($this);
  211.         foreach ($vars as $key => $value{
  212.             if (is_object($value)) {
  213.                 $this->$key clone $value;
  214.             else {
  215.                 $this->$key $value;
  216.             }
  217.         }
  218.     }
  219. }

Documentation generated on Sun, 27 Feb 2011 16:32:59 -0800 by phpDocumentor 1.4.3