nsCOMPtr<nsIWebBrowserPersist> persist(do_QueryInterface(moz->MyBrowser->WebBrowser)); if (persist) { #if _094_ persist->SaveDocument(nsnull, fname, nsnull); #endif return (0); }  return (-1);
moz->EmbedRef->SaveAs(fname); return (0);
int MozSavePageAs(PtWidget_t *widget, char *fname, int type){	PtMozillaWidget_t *moz = (PtMozillaWidget_t *) widget;	if (!fname || !widget)		return (-1);	nsCOMPtr<nsIWebBrowserPersist> persist(do_QueryInterface(moz->MyBrowser->WebBrowser));	if (persist)	{#if _094_		persist->SaveDocument(nsnull, fname, nsnull);#endif		return (0);	}	return (-1);}