Mercurial > hg > xemacs-beta
diff src/device-msw.c @ 506:39ccc7dd8077
[xemacs-hg @ 2001-05-05 08:39:59 by ben]
Add Page Setup for Windows, take out Pretty Print.
Implement Page Setup. Handle errors properly.
Change top/bottom margin defaults to 0.5 inches.
author | ben |
---|---|
date | Sat, 05 May 2001 08:40:06 +0000 |
parents | 1ccc32a20af4 |
children | 5bdbc721d46a |
line wrap: on
line diff
--- a/src/device-msw.c Sat May 05 08:26:04 2001 +0000 +++ b/src/device-msw.c Sat May 05 08:40:06 2001 +0000 @@ -792,10 +792,22 @@ return print_dialog_worker (!UNBOUNDP (device) ? device : settings, 1); } +int +mswindows_get_default_margin (Lisp_Object prop) +{ + if (EQ (prop, Qleft_margin)) return 1440; + if (EQ (prop, Qright_margin)) return 1440; + if (EQ (prop, Qtop_margin)) return 720; + if (EQ (prop, Qbottom_margin)) return 720; + abort (); + return 0; +} + static int plist_get_margin (Lisp_Object plist, Lisp_Object prop) { - Lisp_Object val = Fplist_get (plist, prop, make_int (1440)); + Lisp_Object val = + Fplist_get (plist, prop, make_int (mswindows_get_default_margin (prop))); if (!INTP (val)) invalid_argument ("Margin value must be an integer", val);