rem: var selectedItems = GetSelectedAbCards(); var numSelected = selectedItems.length;  if (!numSelected) return;  var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); var uri = GetAbViewURI(); if (!uri) return;  var statusFeedback; statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance(); statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);  var selectionArray = new Array(numSelected);  var totalCard = 0;  for(var i = 0; i < numSelected; i++) { var card = selectedItems[i]; var printCardUrl = CreatePrintCardUrl(card); if (printCardUrl) { selectionArray[totalCard++] = printCardUrl; } }  if (!gPrintSettings) { gPrintSettings = GetPrintSettings(); }  printEngineWindow = window.openDialog("chrome: "", "chrome,dialog=no,all", totalCard, selectionArray, statusFeedback, gPrintSettings);  return; 
add: AbPrintCardInternal(false, Components.interfaces.nsIMsgPrintEngine.MNAB_PRINT_AB_CARD); 
context: function AbPrintCard(){  var selectedItems = GetSelectedAbCards();  var numSelected = selectedItems.length;  if (!numSelected)    return;  var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook);  var uri = GetAbViewURI();  if (!uri)    return;	var statusFeedback;	statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance();	statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);	var selectionArray = new Array(numSelected);	var totalCard = 0;	for(var i = 0; i < numSelected; i++)	{		var card = selectedItems[i];    var printCardUrl = CreatePrintCardUrl(card);		if (printCardUrl)		{			selectionArray[totalCard++] = printCardUrl;		}	}  if (!gPrintSettings) {    gPrintSettings = GetPrintSettings();  }	printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",										"",										"chrome,dialog=no,all",										totalCard, selectionArray, statusFeedback, gPrintSettings);	return;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b7964688f6775f22e5bcf21093dcab7d1b6484ed/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js