71 Commits

Author SHA1 Message Date
rods%netscape.com
40889d01ed Backing out changes - just as well, I forgot to but the bug # and r/sr/a anyway
git-svn-id: svn://10.0.0.236/trunk@116643 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 14:49:09 +00:00
rods%netscape.com
58cfbb8ad2 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.


git-svn-id: svn://10.0.0.236/trunk@116641 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 13:55:54 +00:00
rods%netscape.com
221670b5c2 1) In DocumentViewer: I did rearrange some of the data members for PrintData
and PrintObject and their initialization order
2) In DocumentViewer: Implemented the shrink to fit feature by calc'ing the
ratios in the first reflow and then reflowing a second time to shrink them
3) In nsPageFrame: This is somewhat unrelated to this bug, but I found where
continuing frame content was being parented to the PageFrame instead of the
PageContentFrame.
4) Although at this time I am not using DumpFrames for debugging I may want to
switch back to it while debugging at anytime.
Bug 100967 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@114923 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 11:49:27 +00:00
rods%netscape.com
1a9f705818 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


git-svn-id: svn://10.0.0.236/trunk@114389 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 13:58:41 +00:00
bryner%netscape.com
2d2136cbf6 Fixing bustage on Sun WS6 update 2, it apparently doesn't like the forward declaration of gfxIImageFrame just before it's defined. r=seawood, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@114078 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 22:59:53 +00:00
dcone%netscape.com
738a9f3963 b=118889 r=rods sr=sfraser Fixed app. so printSettings dialogs will work
git-svn-id: svn://10.0.0.236/trunk@113882 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 05:32:59 +00:00
rods%netscape.com
f944fc2ad3 Added GlobalPrintSettings
Bug 120622 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113424 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:48:21 +00:00
rods%netscape.com
b23f492af0 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


git-svn-id: svn://10.0.0.236/trunk@113312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 14:30:22 +00:00
rods%netscape.com
ee8a5e4640 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


git-svn-id: svn://10.0.0.236/trunk@111213 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-01 12:58:53 +00:00
rods%netscape.com
0bcf76ec42 Add PrintBGColors, PRINBGImages and Scaling
Bug 108345 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108894 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 12:48:41 +00:00
kaie%netscape.com
c2e93a3049 b=84947 New print dialog for Unix and OS/2
r=cls/rods/mkaply/pchen sr=roc+moz
Checking in for Roland.Mainz@informatik.med.uni-giessen.de


git-svn-id: svn://10.0.0.236/trunk@108800 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 10:00:44 +00:00
rods%netscape.com
1314032016 Fixed up nsIPrintSettings interface and add a Get/Set method to nsIPrintOptions (only
the setter is implemented at this time) Bug 107399 r=kmcclusk sr=alexf/attinasi


git-svn-id: svn://10.0.0.236/trunk@107258 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:45:46 +00:00
rods%netscape.com
6f99861c46 Backing out checkin, I can't believe you have to edit a mcp to checkin
an IDL file


git-svn-id: svn://10.0.0.236/trunk@107257 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:17:37 +00:00
rods%netscape.com
e57c1e15e3 Fixed up nsIPrintSettings interface and add a Get/Set method to nsIPrintOptions
(only the setter is implemented at this time)
Bug 107399 r=kmcclusk sr=alexf/attinasi


git-svn-id: svn://10.0.0.236/trunk@107254 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 13:00:40 +00:00
pavlov%netscape.com
ac8fe24c94 first of many patches to come for bug 104999 r=timeless sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@105687 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-18 09:43:22 +00:00
sfraser%netscape.com
b2e84d7311 Fix for bug 36796 - implement page setup on Mac and Mac OS X. r=sdagley, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@105307 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 23:48:34 +00:00
pavlov%netscape.com
c592681c6b adding uuid r=me,biesi sr=waterson bug 77354
git-svn-id: svn://10.0.0.236/trunk@104219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 14:05:14 +00:00
rods%netscape.com
fffbeb35b8 Enables the configuration of headers and footers, via 6 string in the nsIPrintOptions
3 for the header and 3 for the footer.
The new codes are &T,&U,&D,&P,&PT (see bug for explanation)
Bug 99415 r=kmcclusk, sr=attinasi a=pdt


git-svn-id: svn://10.0.0.236/trunk@103839 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 14:01:26 +00:00
gerv%gerv.net
1336d4c729 License changes, take 2. Bug 98089. mozilla/gfx/.
git-svn-id: svn://10.0.0.236/trunk@103770 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 00:16:04 +00:00
jaggernaut%netscape.com
937638062c Bug 73353: move gfx from module layout to module gfx and fix up REQUIRES lines. r=cls
git-svn-id: svn://10.0.0.236/trunk@102907 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 05:37:29 +00:00
alecf%netscape.com
7e8f1eff5d add REQUIRES support to layou, content, gfx, gfx2, widget and modules/libpr0n b=98371 r=cls
git-svn-id: svn://10.0.0.236/trunk@102662 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 20:46:52 +00:00
kaie%netscape.com
a18e083aff b=24847 r=dcone sr=attinasi
Implement printing of Landscape in Unix.
Contact me at kai.engert@gmx.de


git-svn-id: svn://10.0.0.236/trunk@102297 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 14:30:16 +00:00
yokoyama%netscape.com
705e71a645 Bug fix 91250:
Adding a return Boolean from nsIFontEnumerator::UpdateFontList()
to identify if the font lang group has changed from
receiving the WM_FONTCHANGE msg.
/r=rbs;/sr=brendan


git-svn-id: svn://10.0.0.236/trunk@100984 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 02:32:10 +00:00
yokoyama%netscape.com
3828f8c50a bug: 69117
update the global fontlist.
update nsPresContext's device context font
when we receive WM_FONTCHANGE msg.
/r=rbs, /sr=blizzard, /a=asa


git-svn-id: svn://10.0.0.236/trunk@96758 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-08 23:36:14 +00:00
ftang%netscape.com
e512546b8f fix 78273 . check in for bstell@netscape.com
r=ftang sr=blizzard
add embedding api for font list


git-svn-id: svn://10.0.0.236/trunk@95445 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 22:43:15 +00:00
bstell%netscape.com
6a90abb6a3 bug 78273, r=ftang/jbetak, sr=blizzard
For the embedding API add "get font list". Used to fill the font pref panel


git-svn-id: svn://10.0.0.236/trunk@95427 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 21:50:47 +00:00
bstell%netscape.com
12f6802567 bug 78273, r=ftang/jbetak, sr=blizzard
for the embedding API add "get font list"


git-svn-id: svn://10.0.0.236/trunk@95419 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 21:36:44 +00:00
pinkerton%netscape.com
cba4466736 give access to internal region as noscript. make methods lowercase. bug# 80196. r=pchen/sr=smfr
git-svn-id: svn://10.0.0.236/trunk@94789 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 20:54:57 +00:00
jelwell%netscape.com
10762c9962 Fix for bug 73978 "transparent animating gif problems", r=pavlov sr=hyatt.
Module owners are on vacation so Asa asked me to check this into the trunk to bake, for possible branch landing.


git-svn-id: svn://10.0.0.236/trunk@93127 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 07:11:52 +00:00
bbaetz%cs.mcgill.ca
8f333fd8a8 bug 76059, fixes A4 printing regression. Patch by atontti@cc.hut.fi.
r=kmcclusk@netscape.com sr=attinasi a=asa


git-svn-id: svn://10.0.0.236/trunk@92695 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 22:11:55 +00:00
rods%netscape.com
a74e78a562 Implements Print FrameAsIs and other frame printing options
Bug 7201 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@92091 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-12 13:04:29 +00:00
dcone%netscape.com
5064aea52b Added silent parameter. r=mclusky sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91305 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 14:55:26 +00:00
dcone%netscape.com
6acdc377a9 back out change..
git-svn-id: svn://10.0.0.236/trunk@91146 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 15:29:33 +00:00
dcone%netscape.com
1573da7109 added a silent member. sr=attinasi r=kmmclusk.
git-svn-id: svn://10.0.0.236/trunk@91144 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 14:38:42 +00:00
rods%netscape.com
bc01926696 This now enables print listeners, print progress and the cancelling of printing
Bug 70946 & Bug 70949 r=dcone,chak sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@90515 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:56:03 +00:00
valeski%netscape.com
e028f93870 r=rpotts. comment changes only. 48726. adding status to idl files of api rev. ifaces.
git-svn-id: svn://10.0.0.236/trunk@90298 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-24 00:22:18 +00:00
pavlov%netscape.com
a0a4105677 make getRect pass out an nsrect&
git-svn-id: svn://10.0.0.236/trunk@89562 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:14:23 +00:00
pavlov%netscape.com
190dbdb460 minor api changes/indentation and spacing fixes, etc
git-svn-id: svn://10.0.0.236/trunk@89554 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 00:35:27 +00:00
saari%netscape.com
6cb03599c2 Updates for libimg2
git-svn-id: svn://10.0.0.236/trunk@89534 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 23:25:59 +00:00
pavlov%netscape.com
941b2ba1d9 removing lots of stuff (like all the platform specific code) moving gfxIImageContainer* into new image library
git-svn-id: svn://10.0.0.236/trunk@89179 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 01:10:05 +00:00
pavlov%netscape.com
a57660fda5 merging from IMGLIB2_20010126_BRANCH
git-svn-id: svn://10.0.0.236/trunk@87486 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-20 22:41:47 +00:00
pavlov%netscape.com
55488b992b removing gfx2 stuff on head in prep for merge from branch
git-svn-id: svn://10.0.0.236/trunk@87482 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-20 22:27:56 +00:00
rods%netscape.com
ca25456113 Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi


git-svn-id: svn://10.0.0.236/trunk@86352 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:03:17 +00:00
ftang%netscape.com
d61a375dd8 add HaveFontFor method to nsIFontEnumerator sr=erik
git-svn-id: svn://10.0.0.236/trunk@86336 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 12:48:45 +00:00
rods%netscape.com
5b130d03e0 Added UI for printing selectd frame
Bug 66783 r=kmcclusk,ben,dcone sr=buster


git-svn-id: svn://10.0.0.236/trunk@86059 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 08:42:53 +00:00
dcone%netscape.com
5555721a96 Created new nsIPrintSettings object for embedding
git-svn-id: svn://10.0.0.236/trunk@86004 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 23:04:07 +00:00
rods%netscape.com
b23e7af50b This checkin enables mozilla to support the printing of selection, the printing of page ranges, and
the printing of headers and footers.
Printing of selection is implemented by the frames figuring out if they are in the selection and painting
if they or not they they don't paint. This also only allows the printing of the first page of
selections, alothough it is well documented where this is implemeted so it can be removed.
Bugs 63426, 31218, 61075 r=dcone,kmcclusk,erik,buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@85624 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 14:09:34 +00:00
pavlov%netscape.com
259207bc05 fix some build problems
git-svn-id: svn://10.0.0.236/trunk@84842 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 03:54:43 +00:00
pavlov%netscape.com
235a6fc931 move the typedef of nscolor to gfx_color in to gfxcompat.h. change the typedef of gfx_color to PRUint32 from unsigned long just to make it explicit
git-svn-id: svn://10.0.0.236/trunk@84548 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 03:11:58 +00:00
pavlov%netscape.com
9d3a8417c6 merging the base and image parts of gfx2 to HEAD, renaming nsMargin, nsPoint, nsRect to whatever2 to avoid header name conflicts with gfx
still need to resolve issue with gfx2's nsIImage wanting to use nsIDrawable, since there arn't any ifdefs in idl...


git-svn-id: svn://10.0.0.236/trunk@84506 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 01:40:18 +00:00