--- Download/firefox-1.5.0.1-source/mozilla/layout/printing/nsPrintEngine.h 2005-06-24 04:10:58.000000000 +0200 +++ workspace/mozilla/layout/printing/nsPrintEngine.h 2006-04-07 00:38:27.000000000 +0200 @@ -53,6 +53,7 @@ #include "nsIPrintSettings.h" #include "nsIWebProgressListener.h" #include "nsISelectionListener.h" +#include "nsIEnvironment.h" // Other Includes #include "nsPrintPreviewListener.h" @@ -317,6 +318,25 @@ #endif protected: + /** + * This method retrieve the value of the environment variable s + * @param env - The mozilla environment object + * @param s - a string containing the name of the variable to get + * If the variable is set, the value is assigned to the string s + */ + void GetEnvVar(nsIEnvironment* env,nsString & s); + /** + * Convert a string to a double + * @param s - the String to convert + * @param defaultValue - the default value if value is 0.0 + * @return the converted value or defaultValue. + */ + double ConvertToDouble(nsString & s,double defaultValue); + /** + * Set the printing environment with value set by YaHPConverter. + * @param mPrt - The mozilla print data object + */ + void SetPrintSettingsForYaHP(nsPrintData* mPrt); void FirePrintCompletionEvent(); nsresult ShowDocListInternal(nsPrintObject* aPO, PRBool aShow); nsresult GetSeqFrameAndCountPagesInternal(nsPrintObject* aPO,