+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ mlib
+-------------------------------------------------------------------------------
+This file is part of mlib.
+
+mlib is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
+
+mlib is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Creado: lun ago 22 21:42:32 UTC 2005
+Autor: Martin Marrese <marrese@gmail.com>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
+
+/**
+ * Libreria que permite agregar crear un estilo para una tabla de un pdf.
+ */
+class MLIB_PDF_Tabla_Estilo {
+
+ /**
+ * Nombre del Estilo.
+ *
+ * @var string $name
+ * @access public;
+ */
+ var $name;
+
+ /**
+ * Alto de la fila.
+ *
+ * @var int $rowHeight
+ * @access public;
+ */
+ var $rowHeight = 10;
+
+ /**
+ * Fuente.
+ *
+ * @var string $font
+ * @access public;
+ */
+ var $font = 'Helvetica';
+
+ /**
+ * Alto de la fuente.
+ *
+ * @var int $fontHeight
+ * @access public;
+ */
+ var $fontHeight = 8;
+
+ /**
+ * Color de fondo de la celda.
+ *
+ * @var array $fillColor
+ * @access public;
+ */
+ var $fillColor = array (
+ 'red' => '0',
+ 'blue' => '0',
+ 'green' => '0'
+ );
+
+ /**
+ * Modo de escritura de la celda.
+ *
+ * @var string $fillMode
+ * @access public;
+ */
+ var $fillMode = 'fill+stroke';
+
+ /**
+ * Color de la fuente
+ *
+ * @var string $fillModeFillColor
+ * @access public;
+ */
+ var $fillModeFillColor = array (
+ 'red' => '1',
+ 'blue' => '1',
+ 'green' => '1'
+ );
+
+ /**
+ * Color de los bordes laterales y superior de la celda.
+ * Siempre gana el color de la celda de la izquierda para aquellos bordes
+ * compartidos. Siempre gana la celda inferior para los bordes compartidos.
+ *
+ * @var string $fillModeStrokeColor
+ * @access public;
+ */
+ var $fillModeStrokeColor = array (
+ 'red' => '0',
+ 'blue' => '0',
+ 'green' => '0'
+ );
+
+ /**
+ * Class Constructor
+ *
+ * @param string $name Nombre del estilo
+ *
+ * @return void
+ * @access public
+ */
+ function MLIB_PDF_Tabla_Estilo($name) {
+ $this->name = $name;
+ }
+
+ /**
+ * Funcion que devuelve el array de estilo armado para asignar a la tabla.
+ *
+ * @return array
+ * @access public
+ */
+ function __toArray() {
+ return array (
+ 'alto_linea' => $this->rowHeight,
+ 'font' => $this->font,
+ 'height' => $this->fontHeight,
+ 'fillcolor' => $this->fillColor,
+ 'fill' =>
+ array (
+ 'mode' => $this->fillMode,
+ 'fillcolor' => $this->fillModeFillColor,
+ 'strokecolor' => $this->fillModeStrokeColor
+ ),
+ );
+ }
+}
+?>
\ No newline at end of file