зеркало из https://github.com/mozilla/pjs.git
b=88608 A3 support r=dcone sr=attinasi
This commit is contained in:
Родитель
886122f05f
Коммит
2da070e19c
|
@ -234,6 +234,10 @@ NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetPageDimensions ( float &aWidth, floa
|
|||
// 210mm X 297mm == 8.27in X 11.69in
|
||||
aWidth = 8.27;
|
||||
aHeight = 11.69;
|
||||
} else if ( mPrData.size == NS_A3_SIZE ) {
|
||||
// 297mm X 420mm == 11.69in X 16.53in
|
||||
aWidth = 11.69;
|
||||
aHeight = 16.53;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -310,7 +310,10 @@ NS_IMETHODIMP nsDeviceContextSpecGTK :: GetPageDimensions ( float &aWidth, float
|
|||
// 210mm X 297mm == 8.27in X 11.69in
|
||||
aWidth = 8.27;
|
||||
aHeight = 11.69;
|
||||
}
|
||||
} else if ( mPrData.size == NS_A3_SIZE ) {
|
||||
// 297mm X 420mm == 11.69in X 16.53in
|
||||
aWidth = 11.69;
|
||||
aHeight = 16.53; }
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ nsPostScriptObj::Init( nsIDeviceContextSpecPS *aSpec, PRUnichar * aTitle )
|
|||
|
||||
mPrintSetup->color = PR_TRUE; // Image output
|
||||
mPrintSetup->deep_color = PR_TRUE; // 24 bit color output
|
||||
mPrintSetup->paper_size = NS_LEGAL_SIZE; // Paper Size(letter,legal,exec,a4)
|
||||
mPrintSetup->paper_size = NS_LEGAL_SIZE; // Paper Size(letter,legal,exec,a4,a3)
|
||||
mPrintSetup->reverse = 0; // Output order, 0 is acsending
|
||||
if ( aSpec != nsnull ) {
|
||||
aSpec->GetGrayscale( isGray );
|
||||
|
|
|
@ -156,7 +156,7 @@ struct PrintSetup_ {
|
|||
float rules; /* Scale factor for rulers */
|
||||
int n_up; /* cool page combining */
|
||||
int bigger; /* Used to init sizes if sizesin NULL */
|
||||
int paper_size; /* Paper Size(letter,legal,exec,a4) */
|
||||
int paper_size; /* Paper Size(letter,legal,exec,a4,a3) */
|
||||
|
||||
char* prefix; /* For text xlate, prepended to each line */
|
||||
char* eol; /* For text translation, line terminator */
|
||||
|
|
|
@ -296,8 +296,13 @@ NS_IMETHODIMP nsDeviceContextSpecXlib::GetPageDimensions(float &aWidth, float &a
|
|||
// 210mm X 297mm == 8.27in X 11.69in
|
||||
aWidth = 8.27;
|
||||
aHeight = 11.69;
|
||||
} else if (mPrData.size == NS_A3_SIZE) {
|
||||
// 297mm X 420mm == 11.69in X 16.53in
|
||||
aWidth = 11.69;
|
||||
aHeight = 16.53;
|
||||
}
|
||||
return NS_OK;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextSpecXlib::GetTopMargin(float &value)
|
||||
|
|
Загрузка…
Ссылка в новой задаче