rem: function (aDataObject, isExtended) 
add: function (aDataObject, strDefaultPrinterName, isExtended) 
context:     appendPrinterNames:       function (aDataObject, isExtended)         {           var popupNode = document.createElement("menupopup");           var strDefaultPrinterName = "";          var printerName;          // build popup menu from printer names          while (aDataObject.hasMoreElements()) {            printerName = aDataObject.getNext();            printerName = printerName.QueryInterface(Components.interfaces.nsISupportsWString);            var printerNameStr = printerName.toString();            if (strDefaultPrinterName == "")               strDefaultPrinterName = printerNameStr;            var itemNode = document.createElement("menuitem");            itemNode.setAttribute("value", printerNameStr);            itemNode.setAttribute("label", printerNameStr);            popupNode.appendChild(itemNode);            if (isExtended) {              itemNode.setAttribute("oncommand", "printerSelected();");               var infoObj = aDataObject.getNext();              infoObj = infoObj.QueryInterface(Components.interfaces.nsISupportsWString);              var infoStr = infoObj.toString();              gExtendedArray[printerNameStr] = infoStr;            }          }          if (strDefaultPrinterName != "") {            this.listElement.removeAttribute("disabled");          } else {            var stringBundle = srGetStrBundle("chrome://communicator/locale/printing.properties");            this.listElement.setAttribute("value", strDefaultPrinterName);            this.listElement.setAttribute("label", stringBundle.GetStringFromName("noprinter"));            // disable dialog            this.listElement.setAttribute("disabled", "true");            dialog.destGroup.setAttribute("disabled","true");            dialog.printerRadio.setAttribute("disabled","true");            dialog.printerLabel.setAttribute("disabled","true");            dialog.propertiesButton.setAttribute("disabled","true");            dialog.fileRadio.setAttribute("disabled","true");            doEnablePrintToFile(false);            dialog.printButton.setAttribute("disabled","true");          }          this.listElement.appendChild(popupNode);           return strDefaultPrinterName;        } 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2cac03a429a9120427a6e82b011fe80d6c5f2f1e/printdialog.js/clean/xpfe/global/resources/content/printdialog.js