Commit Graph

153646 Commits

Author SHA1 Message Date
dbaron%dbaron.org
85299ba6f3 Read and write as UTF-8 so non-ascii characters in prefs are read correctly. b=199898 r=jshin sr=bzbarsky a=chofmann 2006-02-07 01:14:41 +00:00
chanial%noos.fr
706d58204e Bug 194678: Move pageSetup into the toolkit. r=bsmedberg, sr=bryner and a big thanks to Dave Miller for moving the files! 2006-02-07 01:14:40 +00:00
timeless%mozdev.org
af1c561c50 Bug 213461 Want a way to specify single-sided or double-sided printing
patch by Roland.Mainz@informatik.med.uni-giessen.de r=jblanco sr=bryner
2006-02-07 01:14:39 +00:00
jaggernaut%netscape.com
05f4bd4bef Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron 2006-02-07 01:14:38 +00:00
dwitte%stanford.edu
48e0b48cb3 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.
2006-02-07 01:14:37 +00:00
bsmedberg%covad.net
60b9ae2e7c Bug 198515 - patch by Roland.Mainz r=peterl/leon.sha sr=bz 2006-02-07 01:14:36 +00:00
kaie%netscape.com
c158b112ef b=203937 an extra "print." is added to printing preference name
r=kaie sr=jag a=sspitzer
patch from and checking in for Roland.Mainz
2006-02-07 01:14:35 +00:00
cbiesinger%web.de
069bebd4b0 191346 patch by Roland.Mainz@informatik.med.uni-giessen.de r=jkeiser sr=roc+moz RFE: "No printers found" when Xprint not installed should be "Xprint not installed" / there should be only one print error dialog for "no printers found" instead of two 2006-02-07 01:14:34 +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
bzbarsky%mit.edu
ce8b332e55 Re-enable print preview gui stuff (which was mostly off) on GTK and Xlib
ports.  Bug 187125, patch by Roland.Mainz@informatik.med.uni-giessen.de (Roland
Mainz), r=smontagu, sr=rbs
2006-02-07 01:14:29 +00:00
jkeiser%netscape.com
129dc6f644 Replace sscanf with PR_sscanf (bug 197760), patch by Roland.Mainz@informatik.med.uni-giessen.de, r=jkeiser@netscape.com, sr=bzbarsky@mit.edu 2006-02-07 01:14:28 +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
bzbarsky%mit.edu
773480c0b4 Fix warning. Bug 217089, patch by mbockelkamp@web.de (Matthias Bockelkamp),
r=timeless, sr=kin.
2006-02-07 01:14:26 +00:00
smontagu%netscape.com
2f9c6f801d Bug 185588: Changed printing preferences are saved corrupted in prefs.js. Author=Roland.Mainz@informatik.med.uni-giessen.de, r=smontagu, sr=roc+moz 2006-02-07 01:14:25 +00:00
caillon%returnzero.com
e9ebf486b2 182702: Convert printing code to use nsIPrefBranch and nsIPrefService
r=rods sr=roc+moz
2006-02-07 01:14:24 +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
860418f135 This partially backs out the previous patch. We no longer need to set/get anything in the nsIPrintOptions.
What this does is:
1) Reflows the first time constrained and remembers mOverflowArea.XMost() of
the HTML frame and then later uses that for the calculation of the ratio.
2) Renames some variables
3) This also changes the the maximum STF ratio from 0.5 to 0.3 to match the
dropdown in PP
Bug 168961 r=dcone sr=kin
2006-02-07 01:14:22 +00:00
rods%netscape.com
1e77cd39e1 Change STF to use an unconstrainad reflow instead of searching for the widest frame
Bug 168961 r=dcone sr=kin
2006-02-07 01:14:21 +00:00
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