<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
-------------------------------------------------------------------------------
- Ministerio de EconomÃa
- meconlib
+ mlib
-------------------------------------------------------------------------------
-This file is part of meconlib.
+This file is part of mlib.
-meconlib is free software; you can redistribute it and/or modify it under
+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.
-meconlib is distributed in the hope that it will be useful, but WITHOUT
+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.
$Id$
-----------------------------------------------------------------------------*/
-require_once 'MECON/PDF.php';
-require_once 'MECON/PDF/Separador.php';
-require_once 'MECON/PDF/HeaderDefecto.php';
+require_once 'MLIB/PDF.php';
+require_once 'MLIB/PDF/Separador.php';
+require_once 'MLIB/PDF/HeaderDefecto.php';
/**
* Libreria que crea un marco estandar para los pdfs.
*/
-class MECON_PDF_Marco extends MECON_PDF {
+class MLIB_PDF_Marco extends MLIB_PDF {
/**
- * Objeto MECON_PDF_Separador que se utilizara por defecto.
+ * Objeto MLIB_PDF_Separador que se utilizara por defecto.
* @var Object $separador
* @access protected
*/
var $_separador_defecto;
/**
- * Array de objetos MECON_PDF_Contenido
+ * Array de objetos MLIB_PDF_Contenido
* @var array $contenido
* @access protected
*/
var $_excepciones = array ();
/**
- * MECON_PDF_Header. Objeto que hay que utilizar como enzabezado. Si hay
+ * MLIB_PDF_Header. Objeto que hay que utilizar como enzabezado. Si hay
* algo aqui se desecha el encabezado por defecto.
* @var Object $header
* @access public
* @return void
* @access public
*/
- function MECON_PDF_Marco($tam = "a4", $ori = "portrait", $nom = 'Doc.pdf') {
- $this->MECON_PDF($tam, $ori, $nom);
+ function MLIB_PDF_Marco($tam = "a4", $ori = "portrait", $nom = 'Doc.pdf') {
+ $this->MLIB_PDF($tam, $ori, $nom);
$this->tamanio = $tam;
$this->_resetConf();
- $this->_separador_defecto =& new MECON_PDF_Separador();
+ $this->_separador_defecto =& new MLIB_PDF_Separador();
}
/**
{
if(is_null($pagina));
$pagina = $this->numPage();
- $tmp = include 'MECON/PDF/Marco/medidas.php' ;
+ $tmp = include 'MLIB/PDF/Marco/medidas.php' ;
$tmp = $tmp[$this->tamanio][$this->getOrientation($pagina)];
$tmp['Xi'] = $this->_config['Xi'];
$tmp['Yi'] = $this->_config['Yi'];
* @access protected
*/
function _crearHeaderDefecto() {
- $this->header =& new MECON_PDF_HeaderDefecto($this->tamanio,
+ $this->header =& new MLIB_PDF_HeaderDefecto($this->tamanio,
$this->getOrientation($this->numPage()));
if (@$this->logo) {
$this->header->logo = $this->logo;
if ($this->_contenido) {
foreach ($this->_contenido as $cont) {
$cont->toPDF($this);
- //MECON_PDF_Marco se pasa por referencia para que se agregen las
+ //MLIB_PDF_Marco se pasa por referencia para que se agregen las
//paginas a medida que se van necesitando. Esto permite que varie el
//tipo de contenido que se agrega.
}