Commit Graph

46 Commits

Author SHA1 Message Date
gerv%gerv.net
74aa59de53 Bug 236613: change to MPL/LGPL/GPL tri-license. 2006-02-07 01:14:50 +00:00
darin%meer.net
50d4a6c520 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin 2006-02-07 01:14:33 +00:00
neil%parkwaycc.co.uk
fe46872259 Bug 231368 Remove unused nsIPref includes p=arne.anka@stupido.com r/sr=dbaron 2006-02-07 01:14:32 +00:00
cls%seawood.org
ec182a1066 Case matters.
Fixing mingw cross-compiling bustage.
2006-02-07 01:14:31 +00:00
bzbarsky%mit.edu
aad43124eb Fix some spelling errors in comments. Bug 106386, patch by Nicholas Bebout
<nb@ipnode.info>, r=doron, sr=dmose
2006-02-07 01:14:30 +00:00
dbaron%dbaron.org
ebbf046bb5 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2006-02-07 01:14:27 +00:00
rods%netscape.com
20cf6f658e 1) Adds two bools to the PrintSettings and then when the PS gets
initialized from Prefs or from the Printer they get set. They get unset when
the printer name changes.

This is all necessary because the Page Setup Dialog calls
initPrintSettingsFromPrinter each time it is shown. So if you have set values
they will get "written" over the next time the dialog is shown.

2) Removes a lot of platform specific initialization from nsPrintOptionsImpl
and it now uses just the the "generic" XP routines and is now consistent with
the other platforms for initializing the PS.
Bug 167894 r=dcone sr=kin a=roc
2006-02-07 01:14:23 +00:00
rods%netscape.com
7af88833ff This does two things:
1) When the it returns from the Print Dialog it checks to see if the
PD_PRINTTOFILE flags is set then then set the the info into the PrintSettings
2) IF we are printing to a file, but not a file driver, then check to see if
the file name is the special "FILE:" (as per the MS documentation)
Bug 170332 r=dcone sr=alecf
2006-02-07 01:14:19 +00:00
rods%netscape.com
1556293328 we were not setting the values we modified in the DevMode back into the printer driver
Bug 169739 r=dcone sr=alecf
2006-02-07 01:14:18 +00:00
dougt%netscape.com
f69645581e 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2006-02-07 01:14:17 +00:00
seawood%netscape.com
149d36a4ac Rename conflicting global symbols to fix debug static build runtime bustage.
Bug #162918 r=serge sr=alecf
2006-02-07 01:14:14 +00:00
rods%netscape.com
66fd269cf2 changed all the DEVMODE allocating and freeing to native Windows calls HeapAlloc and HeapFree
nsPrintSettingsWin.cpp was creating and copying only the non-platform specific data by using the
"sizeof" of the DEVMODE struct, instead of checking the struct size with dmSize
and the size of the private (device-specific) data with dmDriverExtra. Now it
creates the correct size of memory and copies all the non-private data and private data.
Bug 156318 r=dcone sr=kin,waterson,rpotts a=asa
2006-02-07 01:14:13 +00:00
rods%netscape.com
89d1ef9ac9 fixing debug ifdef for myself 2006-02-07 01:14:04 +00:00
rods%netscape.com
471e693683 Add PR_LOGGING for printing
Bug 121622 r=dcone sr=kin
2006-02-07 01:14:03 +00:00
rods%netscape.com
716d261b10 printing properties must be moved to global jar
Bug 138026 r=dcone sr=attinasi
2006-02-07 01:14:02 +00:00
dougt%netscape.com
d0e2552881 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2006-02-07 01:14:01 +00:00
rods%netscape.com
7921394599 Fixed the multi-byte strcmp
I also removed the failure check after the calls to EnumerateNativePrinters
because even if one fails, it doesn't mean the others will. So it should keep trying.
The rest of the code is extra error checking that is all ifdef'ed out
I renamed one of two methods that had the same name (to reduce confusion) and got rid of it's uneeded return code.
Bug 143241 r=dcone sr=attinasi
2006-02-07 01:13:59 +00:00
rods%netscape.com
49b89fa2d6 This patch does the following:
1) Introduces a new public interface nsIPrintSettingService which emables consumers to create PS objects whithout a nsIWebBrowserPrint interface
2) The implementation is nsPrintOptionsImpl which now impls the private interface nsIPrintOptions and the public iface nsIPrintSettingsService
3) Several methods/attrs have been moved from nsIWebBrowserPrint iface to nsIPrintSettingsService
4) The CIDs for nsIPrintOptions and nsIPrinSettingsService are now the same.
5) There is no longer a CID "@mozilla.org/gfx/printoptions;1"
6) nsIWebBrowserPrint still has the "globalPrintSettings" attr so if you already have an nsIWebBrowserPrint you don't have to create the PS Service to get it.
7) A bug has been filed to rename the imlp of nsPrintOptionsImpl to nsPrintSettingsService.
Bug 144128 r=dcone sr=attinasi
2006-02-07 01:13:56 +00:00
darin%netscape.com
7e7f29031b fixes potential win bustage 2006-02-07 01:13:55 +00:00
rods%netscape.com
da22444c40 Turn on pluggable dialogs (second part of checkin, first part Bug 135441)
missed these files/changes
Bug 115136 r=dcone sr=attinasi
2006-02-07 01:13:54 +00:00
rods%netscape.com
e850780853 Turn on pluggable dialogs (second part of checkin, first part Bug 135441)
Bug 115136 r=dcone sr=attinasi
2006-02-07 01:13:53 +00:00
rods%netscape.com
473f2bde0d backing out unwanted changes 2006-02-07 01:13:51 +00:00
rods%netscape.com
6322913ff7 Add the new pluggable dialog work, in build, not used
BUg 135441 r=dcone,pink sr=attinasi
2006-02-07 01:13:50 +00:00
rods%netscape.com
7099749e70 printing properties must be moved to global jar
Bug 138026 r=dcone sr=attinasi a=judson adt=putterman
2006-02-07 01:13:48 +00:00
rods%netscape.com
edce17736a This patch is actually part of Bug 115136, but I think its best to get this part
of it in now before the API freeze.
It adds several new attrs to the nsIWebBrowserPrint API and implments them in DocumentViewer.
It also adds a new platform specific interface for PrintSettings that will be
used when the "pluggable" dialog work gets checked in. Although these have been
tested via BUg 115136, these little nto no risk now because no one is using them yet.
Bug 132827 r=dcone sr=attinasi a=asa
2006-02-07 01:13:47 +00:00
rods%netscape.com
09a54b8bce 1) Removes most all the unneeded data from nsPrintOptions service. All data should be in the PrintSettings.
2) Removed unneeded methods from PrintOptions
3) PrintOption can now read and write (most) all the data in a PrintSettings object. The items not saved are those used during the printing process and it wouldn't make any sense to save them.
4) Adds a prefs for turning on and off the automatic saving of PrintSettings. If this is turned on it is almost the same as using the global PS.
5) On Linux it turns on the saving of PS prefs and turns on the global PS. Meaning it will always use a single Global PS object.
6) The PrintSettings can be initialized from a generic non-printer specific set of prefs. Then if a printer name is available in the PS then it tries
to initialize itself from the printer specific prefs. This enables to define "back stop" prefs for picking up first. Then the printer specific prefs can override those settings. For example, we may define in prefs that the default paper size 8.5x11, then if if the "save PS prefs" is turned on, for a given printer it might save 8.5x16 as the size.
7) A "flags" arg has been added so you can indicate which prefs you want read or written.
Bug 128142 r=dcone sr=attinasi a=shaver
2006-02-07 01:13:37 +00:00
rods%netscape.com
8a151e04be Backing out changes - just as well, I forgot to but the bug # and r/sr/a anyway 2006-02-07 01:13:36 +00:00
rods%netscape.com
7a4ed6fff2 1) Removes most all the unneeded data from nsPrintOptions service. All data
should be in the PrintSettings.
2) Removed unneeded methods from PrintOptions
3) PrintOption can now read and write (most) all the data in a PrintSettings
   object. The items not saved are those used during the printing process and
   it wouldn't make any sense to save them.
4) Adds a prefs for turning on and off the automatic saving of PrintSettings.
   If this is turned on it is almost the same as using the global PS.
5) On Linux it turns on the saving of PS prefs and turns on the global PS.
   Meaning it will always use a single Global PS object.
6) The PrintSettings can be initialized from a generic non-printer specific
   set of prefs. Then if a printer name is available in the PS then it tries
   to initialize itself from the printer specific prefs. This enables to define
   "back stop" prefs for picking up first. Then the printer specific prefs
   can override those settings.
   For example, we may define in prefs that the default paper size 8.5x11,
   then if if the "save PS prefs" is turned on, for a given printer it might
   save 8.5x16 as the size.
7) A "flags" arg has been added so you can indicate which prefs you want read
   or written.
2006-02-07 01:13:35 +00:00
alecf%netscape.com
20882d565f one part of fix for bug 107575 - clean up consumers of nsString::EqualsIgnoreCase and nsString::EqualsWithConversion, to be explicit about case-insensitive compares
r=timeless sr=jag
2006-02-07 01:13:33 +00:00
rods%netscape.com
ad9fce8ee7 1) On windows and OS/2 it implements IDL attr of "defaultPrinterName" (like Bug 118152)
2) Stubs this out on al other platforms
3) On Windows implmenets new method "InitPrintSettingsFromPrinter" which sets certain key values from the native devmode into the print settings
4) Stubs this out on all other platforms
5) It also cleans up the nsDeviceContextSpecWin interface a little bit:
   It now has a single GetDevMode method that must be paired with a UnlockDevMode  method.
6) It moved GetDataFromPrinter into the public interface
7) Created a simple helper function for getting the default printer name.
Bug 123554 r=dcone sr=attinasi
2006-02-07 01:13:32 +00:00
rods%netscape.com
781005dd5f 1) It moves the BeginDocument to a earlier place in the call change
2) Fixes the negitive page range display problem
3) Improves performance by reducing the delay on pages not in the page range, i.e. before if you printed the 30th page out of 31 you had to wait 15 secs to get to the 30th page to print it.
4) Added AbortDocument, so now when Print jobs are cancelled we call AbortDocument and remove them from the print spooler
5) Fixed a couple of minor issue with Canceling and cancelling mail printings
6) selection was not printing correctly. The problem with selection was that the clip was not being set corrctly.
Bug 115227 & 123181 r=dcone,sspitzer sr=attainasi
2006-02-07 01:13:31 +00:00
dbragg%netscape.com
140807f6fa Moving platform-specific files to platform-specific jar files. Fixes bug 94242. r=tao, sr=alecf 2006-02-07 01:13:30 +00:00
rods%netscape.com
5e1fa3e7da This fixes remembering the last printer that was used and it also
enables you to to set the printer name and print silently (instead of silent
always having to use the default printer)
Bug 123335 sr=hyatt r=dcone
2006-02-07 01:13:29 +00:00
rods%netscape.com
34af6f67c9 This was suppose to go in as part of
Bug 122530 r=dcone sr=hyatt
2006-02-07 01:13:22 +00:00
rods%netscape.com
ec64c3cb25 This does the following:
1) Removes the EnumeratePrinterExtended from nsIPrintOptions and all impls of it
2) Sets the Windows platform to once again use the native print dialog
3) The nsDeviceContextSpecWin will detect at runtime whether to use the standard PRINTDLG or the new PRINTDLGEX (supported by XP and WIN2k), this new code is only compiled in when the ifdef MOZ_REQUIRE_CURRENT_SDK is defined.
4) It adds an extra Property Sheet to the new dialog for Frameset Printing options
5) Now creates a DEVMODE before the diaog is created, this is used for setting different options in the print dialog before it comes up.
122530 r=dcone sr=hyatt
2006-02-07 01:13:21 +00:00
rods%netscape.com
9bf25d0b45 Removed "free memory read" and change strcpy to strdup
and did some general cleanup and changed how the default printer name was being obtained.
118086 r=dcone sr=waterson
2006-02-07 01:13:17 +00:00
rods%netscape.com
0a31e4e0c6 The page setup info was not being set into the dev mode when printing ssilently.
Bug 119959 r=dcone sr=hyatt
2006-02-07 01:13:16 +00:00
rods%netscape.com
8a11c21009 New print dialog doesn't show the right default printer in windows if the printer is a networkprinter
Bug 118409 r=dcone sr=self
2006-02-07 01:13:15 +00:00
rods%netscape.com
3e100f61c9 Wasn't setting the default correctly.
Bug 118409 r=dcone sr=attinasi
2006-02-07 01:13:14 +00:00
rods%netscape.com
c9d022dec6 Better algorithm for getting and setting the dfault printer
Bug 117819 r-dcone sr=attinasi
2006-02-07 01:13:13 +00:00
rods%netscape.com
a9f129becd Switch public interfaces from nsIPrintOptions to nsIPrintSettings
Enabling XP Print Dialog for Windows
Enabling XP Print Progress Dialog
Enabling XP Page Setup Dialog
Fixing nsPrintPreviewContext to use nsIPrintPreviewContext
Bug 113917 r=dcone sr=attinasi
2006-02-07 01:13:12 +00:00
gerv%gerv.net
7b2f58512e License changes, take 2. Bug 98089. mozilla/gfx/. 2006-02-07 01:12:56 +00:00
alecf%netscape.com
5c2d4bcedd #45797 - fix consumers of NS_IMPL_ISUPPORTS
r=dveditz
2006-02-07 01:11:47 +00:00
dmose%mozilla.org
2270b25a3c updated license boilerplated to xPL 1.1, a=chofmann 1999-11-06 02:06:26 +00:00
michaelp%netscape.com
6458aae507 added missing NS_INIT_REFCNT(). 1998-11-28 04:21:40 +00:00
michaelp%netscape.com
b731d5dc2c changes to support printing architecture and actual printing under windows. 1998-11-14 02:05:13 +00:00