Lines Matching refs:units

232      * @param  ODTUnits     $units       $ODTUnits object for unit conversion
235 …nction getImageSizeString($src, $width = NULL, $height = NULL, $preferImage=true, ODTUnits $units){ argument
250 $unit_width = $units->stripDigits ($width);
251 $unit_height = $units->stripDigits ($height);
294 * @param ODTUnits $units $ODTUnits object for unit conversion
297 protected static function adjustPercentageValueParts ($value, $maxWidthInPt, $units) { argument
304 $percentageValue = $units->getDigits($part);
328 * @param ODTUnits $units Units object to use for conversion
331 public static function adjustValuesForODT (&$properties, ODTUnits $units, $maxWidth=NULL) { argument
350 $properties [$property] = self::adjustValueForODT ($property, $value, $units);
356 $maxWidthInPt = $units->toPoints($maxWidth, 'y');
357 $maxWidthInPt = $units->getDigits($maxWidthInPt);
361 …es [$property] = self::adjustPercentageValueParts ($properties [$property], $maxWidthInPt, $units);
371 $base_font_size_in_pt = $units->getPixelPerEm ().'px';
372 $base_font_size_in_pt = $units->toPoints($base_font_size_in_pt, 'y');
373 $base_font_size_in_pt = $units->getDigits($base_font_size_in_pt);
375 $font_size_unit = $units->stripDigits($properties ['font-size']);
376 $font_size_digits = $units->getDigits($properties ['font-size']);
381 $properties ['font-size'] = $units->toPoints($properties ['font-size'], 'y');
382 $base_font_size_in_pt = $units->getDigits($properties ['font-size']);
384 $base_font_size_in_pt = $units->getDigits($properties ['font-size']);
390 $line_height_unit = $units->stripDigits($properties ['line-height']);
391 $line_height_digits = $units->getDigits($properties ['line-height']);
411 * @param ODTUnits $units Units object to use for conversion
414 public static function adjustValueForODT ($property, $value, ODTUnits $units) { argument
444 $part = $units->toPoints($part, 'y');
449 $part = $units->toPoints($part, 'y');
474 * @param ODTUnits $units Units object to use for conversion
477 …etCSSStylePropertiesForODT(&$properties, $style, $baseURL = NULL, ODTUnits $units, $maxWidth=NULL){ argument
484 self::adjustValuesForODT ($properties, $units, $maxWidth);
511 $params->import->getPropertiesForElement($dest, $toMatch, $params->units);
514 self::adjustValuesForODT($dest, $params->units, $maxWidth);
548 $params->import->getPropertiesForElement($dest, $toMatch, $params->units, $inherit);
551 self::adjustValuesForODT($dest, $params->units, $maxWidth);