Граф коммитов

153775 Коммитов

Автор SHA1 Сообщение Дата
pete.zha%sun.com f33c25c604 Print settings on Linux are saved at shutdown but not read at next start
bug=166217 r=rods@netscape.com sr=bryner@netscape.com a=asa Roland.Mainz@informatik.med.uni-giessen.de
2006-02-07 01:14:20 +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
rods%netscape.com 4c3716aec3 Bug 166097 set the appropriate flags so they are read from prefs
sr=kin r=dcone
2006-02-07 01:14:16 +00:00
alecf%netscape.com cd45f9cb2f fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa
2006-02-07 01:14:15 +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
ccarlen%netscape.com 781a7e0d63 Bug 154883 - Use session printing APIs on Mac OSX. r=pinkerton/sr=sfraser/a=asa 2006-02-07 01:14:12 +00:00
rods%netscape.com 18b367b406 Needs to be virtual (from sr's comments)
Implement the assign method with an "=" operator
Bug 151628 r=ccarlen sr=jst
2006-02-07 01:14:11 +00:00
dougt%netscape.com 66022f3f87 Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426 2006-02-07 01:14:10 +00:00
alecf%netscape.com e180a96ce2 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin
2006-02-07 01:14:09 +00:00
antonio.xu%sun.com 16782d1391 replace the hardcode of "@mozilla.org/embedcomp/dialogparam;1" with NS_DIALOGPARAMBLOCK_CONTRACTID
Bug 158608 r=Henry sr=alecf
2006-02-07 01:14:08 +00:00
henry.jia%sun.com de1acfba2f 4th patch for bug 158080
Description: replace the hardcode of "@mozilla.org/embedcomp/window-watcher;1" with NS_WINDOWWATCHER_CONTRACTID
Patch by Henry.Jia@sun.com
r=anto, sr=alecf
2006-02-07 01:14:07 +00:00
alecf%netscape.com 9bea1c074c bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2006-02-07 01:14:06 +00:00
rods%netscape.com e5d68d6df9 Implement the assign method with an "=" operator
Bug 151628 r=ccarlen sr=jst
BUg CVS: ----------------------------------------------------------------------
2006-02-07 01:14:05 +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 d689758e0c The problem here is the "edge" prefs are now preficed with the printer name,
and the nsPrintOptions know how to convert the printer name, so we need to add
a helper method to nsIPrintOptions.idl so the nsSimplePageSeq can get the properly named value.
Bug 140669 r=dcone sr=attinasi
2006-02-07 01:14:00 +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 31ecbdac5a Changing CID to ContractID and const char* to const char xxx[]
As part of Bug 144128
2006-02-07 01:13:58 +00:00
rods%netscape.com 6b33fc1194 Static build bustage fix 2006-02-07 01:13:57 +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 a347a8e030 Add the new pluggable dialog work, in build, not used
BUg 135441 r=dcone,pink sr=attinasi
2006-02-07 01:13:52 +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
racham%netscape.com c89d4b728f Fixing bug 140183. Adding an attribute to the PrintSettings which allows silent printing i.e., without a progress window. Patch by Rod Spears. r=samir,bhuvan sr=sspitzer 2006-02-07 01:13:49 +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
cbiesinger%web.de 4f7d5b0f18 bug 132563 ("Print job options dialog should use paper name instead of paper size to set/get the selected paper size"), r=rods, sr=attinasi, a=asa
patch by Roland.Mainz@informatik.med.uni-giessen.de
2006-02-07 01:13:46 +00:00
jdunn%netscape.com f4f7d04da5 fixing --disable-xprint bustage (i.e. AIX)
strcasecmp is defined in strings.h which is NOT included if
XPRINT is enabled.  So to simply matters, switching calls
to PL_strcasecmp.

Submitted by pkw@austin.ibm.com
# 125078
sr=shaver@mozilla.org
a=asa@mozilla.org
2006-02-07 01:13:45 +00:00
timeless%mac.com 730236c715 Bug 125078 Implement InitPrintSettingsFromPrinter for GTK+/Xlib
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=attinasi
2006-02-07 01:13:44 +00:00
timeless%mac.com 314f07116a Bug 80625 Please implement --disable-postscript
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=attinasi
2006-02-07 01:13:43 +00:00
dcone%netscape.com 90ebc2425a b=90751 r=peterl sr=attinasi a=asa Adding printer extensions to OSX 2006-02-07 01:13:42 +00:00
dcone%netscape.com 38e9014d03 118890 r=rods sr=attinasi a=asa. Fixed printing in print preview 2006-02-07 01:13:41 +00:00
rods%netscape.com a8d42259ff Make the default for ShrinkToFit be PR_TRUE
Bug 128008 r=kmcclusk sr=kin a=asa
2006-02-07 01:13:40 +00:00
rods%netscape.com 002181ed3c Minor fix for patch should have been * instead of !*
Bug 131852 r=dcone sr=attinasi a=scc
2006-02-07 01:13:39 +00:00
rods%netscape.com e4f3c9dcc2 Besides turning on the pref, I needed to move the initialization code for
getting the values from the default printer from the DocumentViewer down into
the PrintOptions service. We want it done only the very first time when the PrintSettings is created.
Bug 131852 r=dcone sr=attinasi a=scc
2006-02-07 01:13:38 +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
rods%netscape.com 7d1bc59bed fix bustage 2006-02-07 01:13:34 +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