Commit Graph

839 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
dcone%netscape.com
e205ca1f57 b=118889 r=rods sr=sfraser Fixed app. so printSettings dialogs will work 2006-02-07 01:13:25 +00:00
rods%netscape.com
bad5eb2666 Added GlobalPrintSettings
Bug 120622 r=dcone sr=waterson
2006-02-07 01:13:23 +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
09fdf7145c 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
2006-02-07 01:13:20 +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
rods%netscape.com
49beaa8831 Add PrintBGColors, PRINBGImages and Scaling
Bug 108345 r=dcone sr=attinasi
2006-02-07 01:13:10 +00:00
kaie%netscape.com
fbbdf61185 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
2006-02-07 01:13:09 +00:00
rods%netscape.com
5d2e655a58 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
2006-02-07 01:13:05 +00:00
rods%netscape.com
ca6695f416 Backing out checkin, I can't believe you have to edit a mcp to checkin
an IDL file
2006-02-07 01:13:04 +00:00
rods%netscape.com
bf3e23ae8d 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
2006-02-07 01:13:03 +00:00
sfraser%netscape.com
f9ff94caa4 Fix for bug 36796 - implement page setup on Mac and Mac OS X. r=sdagley, sr=alecf. 2006-02-07 01:13:01 +00:00
rods%netscape.com
25a045656e 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
2006-02-07 01:12:58 +00:00
gerv%gerv.net
7b2f58512e License changes, take 2. Bug 98089. mozilla/gfx/. 2006-02-07 01:12:56 +00:00
ccarlen%netscape.com
e5d1dfd7f8 Adding new files for bug 154883 - using session printing APIs on OSX. r=pinkerton/sr=sfraser/a=asa 2006-02-07 01:12:54 +00:00
kaie%netscape.com
7663aff84a b=24847 r=dcone sr=attinasi
Implement printing of Landscape in Unix.
Contact me at kai.engert@gmx.de
2006-02-07 01:12:51 +00:00
bbaetz%cs.mcgill.ca
52688b6fde bug 76059, fixes A4 printing regression. Patch by atontti@cc.hut.fi.
r=kmcclusk@netscape.com sr=attinasi a=asa
2006-02-07 01:12:50 +00:00
rods%netscape.com
7b23973411 Implements Print FrameAsIs and other frame printing options
Bug 7201 r=dcone sr=attinasi
2006-02-07 01:12:37 +00:00
dcone%netscape.com
d15c0b1930 Added silent parameter. r=mclusky sr=attinasi 2006-02-07 01:12:32 +00:00
dcone%netscape.com
9626919edb back out change.. 2006-02-07 01:12:31 +00:00
dcone%netscape.com
c5384ef7cd added a silent member. sr=attinasi r=kmmclusk. 2006-02-07 01:12:30 +00:00
rods%netscape.com
a6df382289 This now enables print listeners, print progress and the cancelling of printing
Bug 70946 & Bug 70949 r=dcone,chak sr=attinasi
2006-02-07 01:12:29 +00:00
valeski%netscape.com
bc05aa8938 r=rpotts. comment changes only. 48726. adding status to idl files of api rev. ifaces. 2006-02-07 01:12:28 +00:00
rods%netscape.com
509a230fa9 Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi
2006-02-07 01:12:27 +00:00
rods%netscape.com
fdc33fe025 Added UI for printing selectd frame
Bug 66783 r=kmcclusk,ben,dcone sr=buster
2006-02-07 01:12:20 +00:00
dcone%netscape.com
883278687b r=karnaze sr=buster. Updated the API for a nsIDeviceContextSpecFactory to pass in a nsIWidget. 2006-02-07 01:12:19 +00:00
rods%netscape.com
5ee5170284 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
2006-02-07 01:12:18 +00:00
dcone%netscape.com
1a9f575411 New interface definition for printer options. a=KMcCluskey 2006-02-07 01:12:08 +00:00
dcone%netscape.com
de0ed328d1 Created new nsIPrintSettings object for embedding 2006-02-07 01:11:45 +00:00
joshmoz%gmail.com
899d62dcb7 General cleanup for menus on Mac OS X. b=325700 r=mento sr=pinkerton 2006-02-06 22:19:52 +00:00