52 Commits

Author SHA1 Message Date
rods%netscape.com
551ced67ed 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@189207 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:22 +00:00
rods%netscape.com
4406c88631 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@189206 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:21 +00:00
pete.zha%sun.com
0fa2a245f8 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


git-svn-id: svn://10.0.0.236/trunk@189205 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:20 +00:00
dougt%netscape.com
d211d7e09d 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@189202 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:17 +00:00
dougt%netscape.com
ff00e039ba Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@189195 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:10 +00:00
alecf%netscape.com
aa5508ec72 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@189194 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:09 +00:00
antonio.xu%sun.com
bcd8fceba6 replace the hardcode of "@mozilla.org/embedcomp/dialogparam;1" with NS_DIALOGPARAMBLOCK_CONTRACTID
Bug 158608 r=Henry sr=alecf


git-svn-id: svn://10.0.0.236/trunk@189193 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:08 +00:00
henry.jia%sun.com
7de86c3680 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


git-svn-id: svn://10.0.0.236/trunk@189192 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:07 +00:00
alecf%netscape.com
9432ba6005 bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@189191 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:06 +00:00
rods%netscape.com
1a36399118 Implement the assign method with an "=" operator
Bug 151628 r=ccarlen sr=jst
BUg CVS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@189190 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:05 +00:00
rods%netscape.com
b3c739c1de 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


git-svn-id: svn://10.0.0.236/trunk@189185 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:14:00 +00:00
rods%netscape.com
8a580c8d39 Changing CID to ContractID and const char* to const char xxx[]
As part of Bug 144128


git-svn-id: svn://10.0.0.236/trunk@189183 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:58 +00:00
rods%netscape.com
01e5c954dc Static build bustage fix
git-svn-id: svn://10.0.0.236/trunk@189182 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:57 +00:00
rods%netscape.com
5ce5f4e9cb 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


git-svn-id: svn://10.0.0.236/trunk@189181 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:56 +00:00
rods%netscape.com
2a2cd19bb5 Turn on pluggable dialogs (second part of checkin, first part Bug 135441)
Bug 115136 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@189178 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:53 +00:00
rods%netscape.com
8102caf9ca backing out unwanted changes
git-svn-id: svn://10.0.0.236/trunk@189176 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:51 +00:00
rods%netscape.com
0b35bdf598 Add the new pluggable dialog work, in build, not used
BUg 135441 r=dcone,pink sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@189175 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:50 +00:00
rods%netscape.com
cab87a6434 Minor fix for patch should have been * instead of !*
Bug 131852 r=dcone sr=attinasi a=scc


git-svn-id: svn://10.0.0.236/trunk@189164 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:39 +00:00
rods%netscape.com
09db090e78 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


git-svn-id: svn://10.0.0.236/trunk@189163 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:38 +00:00
rods%netscape.com
cc3bdb716d 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


git-svn-id: svn://10.0.0.236/trunk@189162 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:37 +00:00
rods%netscape.com
28d6b30b8e 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@189161 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:36 +00:00
rods%netscape.com
14d24a3626 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@189160 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:35 +00:00
rods%netscape.com
e6834e8bb4 Makes sure the prefs aren't set if the pref values don't exist
Bug 124139 r=rods sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@189151 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:26 +00:00
dcone%netscape.com
45679b5206 b=118889 r=rods sr=sfraser Fixed app. so printSettings dialogs will work
git-svn-id: svn://10.0.0.236/trunk@189150 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:25 +00:00
rods%netscape.com
e302eb458c Fix minor issue with scanf
Bug 123335 sr=hyatt r=dcone


git-svn-id: svn://10.0.0.236/trunk@189149 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:24 +00:00
rods%netscape.com
789e356bcf Added GlobalPrintSettings
Bug 120622 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@189148 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:23 +00:00
rods%netscape.com
6d10194aaa 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@189146 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:21 +00:00
rods%netscape.com
2753c41a0c Improves error codes for printing and fixes selection printing by making sure the margins are initialized when no prefs are there
Bugs 86378 & 118637 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@189144 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:19 +00:00
rods%netscape.com
88f1f887d8 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@189137 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:12 +00:00
jaggernaut%netscape.com
c0d64a8b99 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@189136 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:11 +00:00
rods%netscape.com
3af1f45cde Add PrintBGColors, PRINBGImages and Scaling
Bug 108345 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@189135 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:10 +00:00
kaie%netscape.com
9452419674 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@189134 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:09 +00:00
rods%netscape.com
c8326ef60a 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@189130 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:05 +00:00
rods%netscape.com
b20f6a6336 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@189129 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:04 +00:00
rods%netscape.com
4f1c9836ba 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@189128 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:03 +00:00
dbaron%fas.harvard.edu
cb0a1bf2d1 Fix member initializer re-ordered warnings by re-ordering member initializers. r=jag rs=waterson b=105974
git-svn-id: svn://10.0.0.236/trunk@189127 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:02 +00:00
sfraser%netscape.com
ade8f2db45 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@189126 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:01 +00:00
jaggernaut%netscape.com
4944ebbd64 Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@189125 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:13:00 +00:00
rods%netscape.com
432766c248 Part of previous checkin for Bug 99415, forgot to set this back to &PT
git-svn-id: svn://10.0.0.236/trunk@189124 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:59 +00:00
rods%netscape.com
73e7d74b7e 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@189123 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:58 +00:00
gerv%gerv.net
cad52304c9 License changes, take 2. Bug 98089. mozilla/gfx/.
git-svn-id: svn://10.0.0.236/trunk@189121 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:56 +00:00
rjesup%wgate.com
8dccc0a51d Backout of commits for bug 97299. This causes assertions, which means we
missed some spots where name was getting set.


git-svn-id: svn://10.0.0.236/trunk@189118 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:53 +00:00
rjesup%wgate.com
42cf32df8f Bug 97299: Store font names in lowercase. r=pavlov, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@189117 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:52 +00:00
kaie%netscape.com
c5d93e86df 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@189116 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:51 +00:00
dcone%netscape.com
4bb8de5fd3 Initialized mPrintSilent to false. b=84300 r=peterl sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@189099 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:34 +00:00
dcone%netscape.com
2e065a7a32 b=75893. r=mcclusk sr=attinasi a=chofmann
git-svn-id: svn://10.0.0.236/trunk@189098 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:33 +00:00
dcone%netscape.com
9c115d202b Added silent parameter. r=mclusky sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@189097 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:32 +00:00
rods%netscape.com
075a698bf6 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@189094 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:29 +00:00
rods%netscape.com
8649ce46af Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi


git-svn-id: svn://10.0.0.236/trunk@189092 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:27 +00:00
rods%netscape.com
8bb1b8c0bf Added UI for printing selectd frame
Bug 66783 r=kmcclusk,ben,dcone sr=buster


git-svn-id: svn://10.0.0.236/trunk@189085 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:12:20 +00:00