From 1cd5365b6e280f28fa9397fc3eaa5f9621fd5801 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 28 Nov 2001 15:07:56 +0000 Subject: [PATCH] Enabling the specifying of the gap around the page and an offset from the edge of the page Bug 102596 r=dcone sr=attinasi git-svn-id: svn://10.0.0.236/trunk@109135 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpref/src/mac/macprefs.js | 9 +++++++++ mozilla/modules/libpref/src/os2/os2pref.js | 9 +++++++++ mozilla/modules/libpref/src/unix/openvms.js | 9 +++++++++ mozilla/modules/libpref/src/unix/photon.js | 9 +++++++++ mozilla/modules/libpref/src/unix/unix.js | 9 +++++++++ mozilla/modules/libpref/src/win/winpref.js | 9 +++++++++ 6 files changed, 54 insertions(+) diff --git a/mozilla/modules/libpref/src/mac/macprefs.js b/mozilla/modules/libpref/src/mac/macprefs.js index af917c87eee..0caa4328490 100644 --- a/mozilla/modules/libpref/src/mac/macprefs.js +++ b/mozilla/modules/libpref/src/mac/macprefs.js @@ -231,3 +231,12 @@ mime_type("mime.image_x_xpixmap", "image/x-xpixmap", "xpm", 2, "Unknown", "ttxt" // Add mime type for SimpleText read only files mime_type("mime.SimpleText_ReadOnly", "text/plain", "", 2, "SimpleText", "ttxt", "ttro"); + +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 0); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch) diff --git a/mozilla/modules/libpref/src/os2/os2pref.js b/mozilla/modules/libpref/src/os2/os2pref.js index 4177e6807d8..b7e2ae4e150 100644 --- a/mozilla/modules/libpref/src/os2/os2pref.js +++ b/mozilla/modules/libpref/src/os2/os2pref.js @@ -201,3 +201,12 @@ pref("layout.word_select.stop_at_punctuation", false); // image font if the given size is smaller/larger than can be handled // by the image font. pref("font.substitute_vector_fonts", true); + +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 0); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch) diff --git a/mozilla/modules/libpref/src/unix/openvms.js b/mozilla/modules/libpref/src/unix/openvms.js index 765beab1279..addbb015982 100755 --- a/mozilla/modules/libpref/src/unix/openvms.js +++ b/mozilla/modules/libpref/src/unix/openvms.js @@ -54,5 +54,14 @@ pref("applications.rlogin_with_user", "create /term /detach \"rlogin %h -l %u\"" pref("print.print_command", "print"); pref("print.print_color", false); +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 0); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch) + pref("browser.cache.disk.capacity", 4000); diff --git a/mozilla/modules/libpref/src/unix/photon.js b/mozilla/modules/libpref/src/unix/photon.js index 0d786d4a8fb..7f110e89f4b 100644 --- a/mozilla/modules/libpref/src/unix/photon.js +++ b/mozilla/modules/libpref/src/unix/photon.js @@ -61,3 +61,12 @@ pref("applications.telnet", "pterm telnet %h %p"); pref("applications.tn3270", "pterm tn3270 %h"); pref("applications.rlogin", "pterm rlogin %h"); pref("applications.rlogin_with_user", "pterm rlogin %h -l %u"); + +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 0); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch) diff --git a/mozilla/modules/libpref/src/unix/unix.js b/mozilla/modules/libpref/src/unix/unix.js index aa10a121543..f999fed6461 100644 --- a/mozilla/modules/libpref/src/unix/unix.js +++ b/mozilla/modules/libpref/src/unix/unix.js @@ -108,6 +108,15 @@ pref("print.print_color", true); pref("print.print_landscape", false); pref("print.print_paper_size", 0); +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 60); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 0); // twips + pref("font.allow_double_byte_special_chars", true); // font names diff --git a/mozilla/modules/libpref/src/win/winpref.js b/mozilla/modules/libpref/src/win/winpref.js index 50041da25b6..bd2d826d2e5 100644 --- a/mozilla/modules/libpref/src/win/winpref.js +++ b/mozilla/modules/libpref/src/win/winpref.js @@ -177,3 +177,12 @@ pref("mail.windows_xp_integration.unread_count_interval", 300); // override double-click word selection behavior. pref("layout.word_select.eat_space_to_next_word", true); pref("layout.word_select.stop_at_punctuation", false); + +// print_headerfooter_gap enables platforms to specify an extra "gap" in twips +// between the H/F and the edge of the paper, +// this is used by both Printing and Print Preview +pref("print.print_headerfooter_gap", 0); // twips + +// print_extra_margin enables platforms to specify an extra gap or margin +// around the content of the page for Print Preview only +pref("print.print_extra_margin", 90); // twips (90 twips is an eigth of an inch)