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 * Indica si debe repetirse en las diferentes pagians.
72 * Color de fondo de la celda.
74 * @var array $fillColor
77 var $fillColor = array (
84 * Modo de escritura de la celda.
86 * @var string $fillMode
89 var $fillMode = 'fill+stroke';
94 * @var string $fillModeFillColor
97 var $fillModeFillColor = array (
104 * Color de los bordes laterales y superior de la celda.
105 * Siempre gana el color de la celda de la izquierda para aquellos bordes
106 * compartidos. Siempre gana la celda inferior para los bordes compartidos.
108 * @var string $fillModeStrokeColor
111 var $fillModeStrokeColor = array (
120 * @param string $name Nombre del estilo
125 function MLIB_PDF_Tabla_Estilo($name) {
130 * Funcion que devuelve el array de estilo armado para asignar a la tabla.
135 function __toArray() {
137 'alto_linea' => $this->rowHeight,
138 'font' => $this->font,
139 'height' => $this->fontHeight,
140 'repeat' => $this->repeat,
141 'fillcolor' => $this->fillColor,
144 'mode' => $this->fillMode,
145 'fillcolor' => $this->fillModeFillColor,
146 'strokecolor' => $this->fillModeStrokeColor