add:  /* INIT LINE-HEIGHT */ var lineHeight = getSpecifiedStyle("line-height"); if (!lineHeight || lineHeight == "") gDialog.lineHeightInput.value = ""; else gDialog.lineHeightInput.value = lineHeight;  
context: function InitTextTabPanel(){  gDialog.selectedTab = TEXT_TAB;  if (!gDialog.selectedObject || !gDialog.selectedObject.style)    return;  /* INIT FONT-FAMILY */  var fontFamily       = getSpecifiedStyle("font-family");  AddStyleToElement(gDialog.brownFoxLabel, "font-family", fontFamily);  var fontFamilyChoice = "noFontFamilyRadio";  var predefFontFamilyChoice = "";  var enableCustomInput = false;  var enablePredefMenu  = false;  if (fontFamily == "arial,helvetica,sans-serif") {    fontFamilyChoice = "predefFontFamilyRadio";    predefFontFamilyChoice = "sansSerifFontFamilyMenuitem";    enablePredefMenu = true;  }  else if (fontFamily == "times new roman,times,serif") {    fontFamilyChoice = "predefFontFamilyRadio";    predefFontFamilyChoice = "serifFontFamilyMenuitem";    enablePredefMenu = true;  }  else if (fontFamily == "courier new,courier,monospace") {    fontFamilyChoice = "predefFontFamilyRadio";    predefFontFamilyChoice = "monospaceFontFamilyMenuitem";    enablePredefMenu = true;  }  else if (fontFamily != "") {    fontFamilyChoice = "customFontFamilyRadio";    gDialog.customFontFamilyInput.value = fontFamily;    enableCustomInput = true;  }  /* selects the radio button */  var fontFamilyItem = document.getElementById(fontFamilyChoice);  gDialog.fontFamilyRadiogroup.selectedItem = fontFamilyItem;  /* enablers/disablers */  if (enablePredefMenu) {    gDialog.predefFontFamilyMenulist.removeAttribute("disabled");  }  else {    gDialog.predefFontFamilyMenulist.setAttribute("disabled", "true");  }  if (enableCustomInput) {    gDialog.customFontFamilyInput.removeAttribute("disabled");  }  else {    gDialog.customFontFamilyInput.setAttribute("disabled", "true");  }  if (predefFontFamilyChoice != "") {    var predefFontFamilyMenuitem = document.getElementById(predefFontFamilyChoice);    gDialog.predefFontFamilyMenulist.selectedItem = predefFontFamilyMenuitem;  }  /* INIT COLOR */  textColor = ConvertRGBColorIntoHEXColor(getSpecifiedStyle("color"));  backgroundColor = ConvertRGBColorIntoHEXColor(getSpecifiedStyle("background-color"));  gDialog.textColorInput.setAttribute("value", textColor);  AddStyleToElement(gDialog.brownFoxLabel, "color", textColor);  if (backgroundColor == "")    backgroundColor = "white";  AddStyleToElement(gDialog.brownFoxLabel, "background-color", backgroundColor);  setColorWell("textCW", textColor);   /* INIT FONT-STYLE */  SelectsOneChoice("font-style", "fontStyleMenulist", "FontStyleMenu", gDialog.brownFoxLabel)  /* INIT FONT-WEIGHT */  SelectsOneChoice("font-weight", "fontWeightMenulist", "FontWeightMenu", gDialog.brownFoxLabel)  /* INIT TEXT-TRANSFORM */  SelectsOneChoice("text-transform", "textTransformMenulist", "TextTransformMenu", gDialog.brownFoxLabel)  /* INIT TEXT-ALIGN */  SelectsOneChoice("text-align", "textAlignMenulist", "TextAlignMenu", gDialog.brownFoxLabel)  /* INIT TEXT-DECORATION */  var textDecoration = getSpecifiedStyle("text-decoration");  AddStyleToElement(gDialog.brownFoxLabel, "text-decoration", textDecoration);  SelectsCheckboxIfValueContains(textDecoration, "underline", "underlineTextDecorationCheckbox");  SelectsCheckboxIfValueContains(textDecoration, "overline", "overlineTextDecorationCheckbox");  SelectsCheckboxIfValueContains(textDecoration, "line-through", "linethroughTextDecorationCheckbox");  SelectsCheckboxIfValueContains(textDecoration, "blink", "blinkTextDecorationCheckbox");  SelectsCheckboxIfValueContains(textDecoration, "none", "noneTextDecorationCheckbox");  /* INIT FONT SIZE */  var fontSize = getSpecifiedStyle("font-size");  if (!fontSize || fontSize == "")    gDialog.fontSizeInput.value = "";  else    gDialog.fontSizeInput.value = fontSize;  AddStyleToElement(gDialog.brownFoxLabel, "font-size", fontSize);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5ad7f3e49e917bfa61d8a12cf84d7045c9e8e630/commonCssProps.js/clean/extensions/editor/cascades/resources/content/commonCssProps.js