Commit Graph

219 Commits

Author SHA1 Message Date
chanial@noos.fr
6047ebad52 remove duplicated code in printPreviewBindings 2003-11-02 02:04:08 +00:00
chanial@noos.fr
390693ec6a add "public" method savePrintSettings that saves the print settings to the prefs. 2003-11-02 01:46:53 +00:00
chanial@noos.fr
b02cfb8c74 coding style nit 2003-11-02 01:38:52 +00:00
chanial@noos.fr
f00cfdcde4 remove prefs print.use_global_printsettings and print.save_print_settings (not used in the backend). They offer few if any interest. Their default behavior is kept: a print action and Page Setup change will be saved and windows share the same print settings. 2003-11-02 01:21:46 +00:00
chanial@noos.fr
cb98ff2cdf on going work on the printing component: rename PRINTSVC to PSSVC, getValuesFromPS to updateSettings, remove duplicate getWebBrowserPrint and start removing the duplicated code in printUtils.js and printPreviewBindings.xml that lays the print preview. 2003-11-02 00:15:04 +00:00
chanial@noos.fr
d40c30a78d bug 224160: hook up Print Preview to view source. 2003-10-30 06:02:54 +00:00
chanial@noos.fr
405e1618d7 - Rewrite the way we handle print preview so that it can be used in any XUL app. This is achieved by adding a new "public" method to PrintUtils:
PrintUtils.printPreview(enterPPCallback, exitPPCallback) where the optional callback functions are called just before entering and after exiting PP mode

- disable all short keys in PP mode except ctrl-W and fix bug 178485 and bug 215277. Now clicking the close window icon actually closes the window.

- global vars gPrintSettingsAreGlobal, gSavePrintSettings, gPrintSettings, gOldCloseHandler, gInPrintPreviewMode, gWebProgress are removed.

- A lot of cleanup.
2003-10-29 08:01:27 +00:00
chanial@noos.fr
1bd3148d73 use toolkit routines from printUtils.js to print and show the page setup dialog. 2003-10-27 04:36:20 +00:00
chanial@noos.fr
0240726409 - fix two js warnings in printPreviewBindings.xml (redeclaration of var ifreq and total)
- remove useless class toolbarbutton-icon
- rename class last-arrow to left-arrow and next-arrow to right-arrow
2003-10-27 04:30:55 +00:00
chanial@noos.fr
c6a255b3e1 bug 223763: home arrow icon not displayed in print preview. printing.css has to be preprocessed. 2003-10-27 04:21:20 +00:00
chanial@noos.fr
0c46fa01c0 fix js warning: redeclaration of var str. Some cleanup, untabify 2003-10-27 03:36:59 +00:00
chanial@noos.fr
1b65faf082 Significantly rewrite the old printing.js:
- define an object PrintUtils that has two "public" methods: PrintUtils.print() to print the content and PrintUtils.showPageSetup() to launch the setup dialog.
- global variables gPrintSettings, gPrintSettingsAreGlobal and gSavePrintSettings are removed. These variables were not true cached variables since they were recalculated every time and only used as intermediary.
2003-10-26 20:13:55 +00:00
chanial@noos.fr
402ba9b82c add printUtils.js to the toolkit (copied from printing.js) 2003-10-26 19:22:03 +00:00
chanial@noos.fr
d6694c3872 bug 223721 and 223728: fix view source and print preview bustage. patches by Steffen Wilberg <steffen.wilberg@web.de> 2003-10-26 16:10:59 +00:00
chanial@noos.fr
a60d7ecf3a move printPreviewBindings.xml to the toolkit, fork printPreview.dtd 2003-10-26 05:00:15 +00:00
chanial@noos.fr
26eae064d5 fork the Print Page Setup 2003-10-26 04:28:25 +00:00
chanial@noos.fr
8d4d11302b fixing printing bustage 2003-08-19 04:01:11 +00:00
chanial@noos.fr
f4a39ba934 adding .cvsignore files 2003-08-16 11:41:51 +00:00
chanial@noos.fr
abc413329e bug 213228: new toolkit independence bug, part 5.
fork printing front end.
#ifdef XP_UNIX printjoboption.js and printjoboption.xul
remove communicator dependency (dialogs.css)
2003-08-16 11:39:10 +00:00