<?php
/*
 *  This file is part of open3A.

 *  open3A 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 3 of the License, or
 *  (at your option) any later version.

 *  open3A 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
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  2007 - 2020, open3A GmbH - Support@open3A.de
 */

class StPDFBriefkopf extends PDFBrief {

	function Header(){
		parent::Header();
		/*if($this->PageNo() == 1){
			$this->SetY(50);
			$text = utf8_decode(($this->sd->firmaKurz != "" ? $this->sd->firmaKurz : $this->sd->vorname." ".$this->sd->nachname).", ".$this->sd->strasse." ".$this->sd->nr.", ".$this->sd->plz." ".$this->sd->ort);
			$this->Cell(100 , 12 , $text,"",1);
			$this->Line(20,57.5,$this->GetStringWidth($text) + 22,57.5);
		}*/
		
		$this->setX(20);
		$this->setY(12);
		
		$this->SetFont(PDFBrief::DEFAULT_FONT,'B',28);
	    $this->SetX(35);
		$this->LCell(2 , 10 , $this->sd->firmaLang);
		$this->SetFont(PDFBrief::DEFAULT_FONT,'',26);
		
		$this->SetXY(20,32);
	}

}
?>