1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
4 -------------------------------------------------------------------------------
5 This file is part of mlib.
7 mlib is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your option)
12 mlib is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License; if not,
17 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 Boston, MA 02111-1307 USA
19 -------------------------------------------------------------------------------
20 Creado: lun ago 22 21:42:32 UTC 2005
21 Autor: Martin Marrese <marrese@gmail.com>
22 -------------------------------------------------------------------------------
24 -----------------------------------------------------------------------------*/
27 * Libreria que permite agregar crear un estilo para una tabla de un pdf.
29 class MLIB_PDF_Tabla_Estilo {
53 var $font = 'Helvetica';
58 * @var int $fontHeight
64 * Color de fondo de la celda.
66 * @var array $fillColor
69 var $fillColor = array (
76 * Modo de escritura de la celda.
78 * @var string $fillMode
81 var $fillMode = 'fill+stroke';
86 * @var string $fillModeFillColor
89 var $fillModeFillColor = array (
96 * Color de los bordes laterales y superior de la celda.
97 * Siempre gana el color de la celda de la izquierda para aquellos bordes
98 * compartidos. Siempre gana la celda inferior para los bordes compartidos.
100 * @var string $fillModeStrokeColor
103 var $fillModeStrokeColor = array (
112 * @param string $name Nombre del estilo
117 function MLIB_PDF_Tabla_Estilo($name) {
122 * Funcion que devuelve el array de estilo armado para asignar a la tabla.
127 function __toArray() {
129 'alto_linea' => $this->rowHeight,
130 'font' => $this->font,
131 'height' => $this->fontHeight,
132 'fillcolor' => $this->fillColor,
135 'mode' => $this->fillMode,
136 'fillcolor' => $this->fillModeFillColor,
137 'strokecolor' => $this->fillModeStrokeColor