1<?php 2 3require_once(HTML2PS_DIR.'value.generic.php'); 4 5class LineHeight_Absolute extends CSSValue { 6 var $length; 7 8 function apply($value) { 9 return $this->length; 10 } 11 12 function is_default() { 13 return false; 14 } 15 16 function LineHeight_Absolute($value) { 17 $this->length = $value; 18 } 19 20 function units2pt($base) { 21 $this->length = units2pt($this->length, $base); 22 } 23 24 function ©() { 25 $value =& new LineHeight_Absolute($this->length); 26 return $value; 27 } 28} 29 30class LineHeight_Relative extends CSSValue { 31 var $fraction; 32 33 function apply($value) { 34 return $this->fraction * $value; 35 } 36 37 function is_default() { 38 return $this->fraction == 1.1; 39 } 40 41 function LineHeight_Relative($value) { 42 $this->fraction = $value; 43 } 44 45 function units2pt($base) { } 46 47 function ©() { 48 $value =& new LineHeight_Relative($this->fraction); 49 return $value; 50 } 51} 52 53?>