18 require_once SQ_INCLUDE_PATH.
'/asset_attribute.inc';
60 if (!parent::setEditParams($node))
return false;
75 function paint($prefix, $have_lock=
false, $value)
77 $this->value = $value;
78 $value = (int) $value;
79 $unit = substr($this->value, strlen($value));
81 $all_units = Array(
'px' =>
'px',
'%' =>
'%',
'mm' =>
'mm',
'pt' =>
'pt',
'in' =>
'in',
'em' =>
'em',
'ex' =>
'ex' );
86 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
87 int_text_box($prefix, (
int) $this->value,
false, 5);
88 combo_box($prefix.
'_unit', $all_units,
false, $unit, 0, $extras=
'', $maxlength=0);
102 if (!isset($_REQUEST[$prefix]))
return false;
104 $value = $_REQUEST[$prefix];
105 $unit = $_REQUEST[$prefix.
'_unit'];
107 if ($this->value != $value) {
109 $this->processed =
true;
111 $this->processed =
false;
127 if (empty($this->_params[
'allow_blanks']) && strlen($value) == 0) {