25 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
ad79d0e7da Bug 191938. 'Dont print backgrounds' by setting background to white. also clean up unused params and make background-attachment:fixed work in printing/printpreview. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138258 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 02:49:22 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
bzbarsky%mit.edu
8ac3dce0c0 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


git-svn-id: svn://10.0.0.236/trunk@136110 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-10 00:53:28 +00:00
smontagu%netscape.com
3b982b6a24 Make XUL documents print. Bug 137526, Author=Roland.Mainz@informatik.med.uni-giessen.de, r=smontagu, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@136036 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 00:22:16 +00:00
dbaron%dbaron.org
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +00:00
peterv%netscape.com
3a3c75b9f7 Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +00:00
caillon%returnzero.com
f85ae2c8ba 182702: Convert printing code to use nsIPrefBranch and nsIPrefService
r=rods sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@134753 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 02:03:17 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
rods%netscape.com
337ea6f743 Instead of at the end of of the PO it needs to be in the middel of reflow
where we bail out earlier, basically same fix different location
Bug 149710 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@134329 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 13:06:58 +00:00
rods%netscape.com
52fac3b22e The search for the selected frames was not looking in all the child lisst for each frame
Bug 181228 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@134328 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 13:02:05 +00:00
timeless%mozdev.org
99731b5e88 Bug 58221 don't use strlen to check if a string is of length 0
patch by aaronl@vitelus.com r=timeless sr=bz


git-svn-id: svn://10.0.0.236/trunk@133999 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 05:16:49 +00:00
rods%netscape.com
db61201a30 change STF threshold to 60%
Bug 175316 r=dcone sr=alecf a=dbaron


git-svn-id: svn://10.0.0.236/trunk@132457 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 09:31:52 +00:00
rods%netscape.com
f94983c561 This patch is a bit different, instead of having the DocShell figure out whether it or one of its children are printing or PP, it gets told whether it is, and it caches that value.
This was done so navigation is as fast as possible, meaning it doesn't have to figure it out each time.
The patch:
1) Adds a method to the nsIContentViewerContainer to tell it whether we are printing or in PP.
2) Fix up the DV and PrintEngine, the DV SetIsXXXX didn't need to set any
values in the PrintEngine, but now instead makes calls and sets the values in DocShells
3) Cleaned up and add a macro to nsIDocumentViewerPrint
Bug 171161 r=dcone sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@131423 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 13:17:56 +00:00
seawood%netscape.com
5b245a4162 Fixing static build bustage caused by checkin for bug 158110.
git-svn-id: svn://10.0.0.236/trunk@131114 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-04 00:27:14 +00:00
rods%netscape.com
1628efa2f4 Removing unwanted part of patch
git-svn-id: svn://10.0.0.236/trunk@131072 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 11:28:48 +00:00
rods%netscape.com
31504c0dab Impl print preview for mail and addrbook
Bug 158110 r=bienvenu sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@131068 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 10:48:59 +00:00
rods%netscape.com
f7e07db9b7 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


git-svn-id: svn://10.0.0.236/trunk@130520 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 11:25:04 +00:00
rods%netscape.com
1b7abf58ea Change STF to use an unconstrainad reflow instead of searching for the widest frame
Bug 168961 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@130082 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 21:45:07 +00:00
rods%netscape.com
47c1f5ed09 IFrames need their own calculation for placement, different from Frameset frames
Bug 167775 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@129340 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 13:20:38 +00:00
rods%netscape.com
4aff6cd832 Make sure the Print Data is cleaned up when exiting PP
Bug 164384 r=pete sr=kin a=asa


git-svn-id: svn://10.0.0.236/trunk@129137 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-10 01:57:09 +00:00
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
rods%netscape.com
d986a615c9 Bug 164250 Instrument the PrintEngine for print testing
r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@128761 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:21:15 +00:00
rods%netscape.com
72c0a041f5 Bug 165122 rearrange initializer r=rods sr=bz
git-svn-id: svn://10.0.0.236/trunk@128702 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 14:40:53 +00:00
rods%netscape.com
a3c9b676cf checks visibility on IFrames so it knows whether it needs to print/dislpay them
Bug 158195 sr=jst r=dcone


git-svn-id: svn://10.0.0.236/trunk@128088 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 14:37:59 +00:00
rods%netscape.com
c19d8288b7 Move printing code out of the DocumentViewer
add in #defines to turn on and off printing and print preview
Bug 139905 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@127763 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-21 12:01:05 +00:00