45 Commits

Author SHA1 Message Date
dbaron%dbaron.org
f5b5bace95 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136002 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:32:55 +00:00
dbaron%dbaron.org
daa2fa4b45 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135995 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:51:43 +00:00
rods%netscape.com
251c785a71 enable pagesetup to use mertic mm when using page sizes with mm/cm
Bug 118954 r=dcone sr=alecf


git-svn-id: svn://10.0.0.236/trunk@133741 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 12:35:15 +00:00
rods%netscape.com
ebe3789dd8 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


git-svn-id: svn://10.0.0.236/trunk@132708 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 14:35:22 +00:00
rods%netscape.com
c31cff0e8e Put in a lot of safety checks and changed where SetPrintSettingsFromDevMode was
called and set into the psWin, now we only Lock the global devmode once.
Bug 169689 r=dcone sr=alecf a=roc


git-svn-id: svn://10.0.0.236/trunk@132702 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 13:31:58 +00:00
rods%netscape.com
8884621fab null checks added
Bug 173519 r=dcone sr=alecf a=rjesup


git-svn-id: svn://10.0.0.236/trunk@132074 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 09:17:37 +00:00
rods%netscape.com
4e382b6136 safety checks for null pointers
Bug 172783 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@131421 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 10:46:27 +00:00
rods%netscape.com
6501910d0f Convert printer name WideCharToMultiByte
Bug 167128 r=roy sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@130521 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 11:38:03 +00:00
rods%netscape.com
6464ff796e 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


git-svn-id: svn://10.0.0.236/trunk@130422 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-25 14:12:14 +00:00
rods%netscape.com
5b46e50a47 we were not setting the values we modified in the DevMode back into the printer driver
Bug 169739 r=dcone sr=alecf


git-svn-id: svn://10.0.0.236/trunk@130145 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 13:22:51 +00:00
dougt%netscape.com
e289284076 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@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +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
bca61f5ded remove bit to hide "print to file"
Bug 155552 r=dcone sr=alecf


git-svn-id: svn://10.0.0.236/trunk@128333 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 11:51:15 +00:00
antonio.xu%sun.com
6e54672f56 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@127252 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 12:39:03 +00:00
seawood%netscape.com
0b3ff474f3 Removing old nmake build makefiles. Bug #158528 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
henry.jia%sun.com
148ed167a2 5th 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@126456 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 06:20:45 +00:00
henry.jia%sun.com
c294edc1e5 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@126449 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 05:56:22 +00:00
rods%netscape.com
09fb40aa17 Forgot to initialize the arg to false, and th js code needs to finsih PP in the catch if an error is passed back.
Bug 157129 r=carlen sr=waterson a=asa


git-svn-id: svn://10.0.0.236/trunk@125207 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 11:44:42 +00:00
ccarlen%netscape.com
8fe2ca829c Fixing bustage on planetoid.
git-svn-id: svn://10.0.0.236/trunk@125139 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 01:07:57 +00:00
ccarlen%netscape.com
96a6b4aa46 Bug 154883 - Use session printing APIs on Mac OSX. r=pinkerton/sr=sfraser/a=asa
git-svn-id: svn://10.0.0.236/trunk@125133 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 00:18:46 +00:00
rods%netscape.com
44a86dac88 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


git-svn-id: svn://10.0.0.236/trunk@125089 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 11:48:38 +00:00
rods%netscape.com
d7ed76a469 Somehow we all missed initializing this to false
Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124842 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:48:39 +00:00
rods%netscape.com
c6fd9cf998 Missed this minor change
Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124841 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:44:47 +00:00
rods%netscape.com
9712894a19 Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124840 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:39:02 +00:00
alecf%netscape.com
6ebda75c34 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes)
git-svn-id: svn://10.0.0.236/trunk@122820 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:28:14 +00:00
rods%netscape.com
8a7c290ff7 Add nsIObserver to the ShowPageSetup method for platforms that impl an Apply btn
Bug 149317 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@122803 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 10:40:42 +00:00
rods%netscape.com
de923fc396 Removing debug line for setting dialog title.
Bug 145037 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@121767 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 19:25:51 +00:00
rpotts%netscape.com
b52563b316 bug #46856. r=valeski, sr=darin) nsIWebProgress/nsIWebProgressListener API changes.
git-svn-id: svn://10.0.0.236/trunk@121696 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 23:41:59 +00:00
rpotts%netscape.com
a05ef325f8 bug #46856 (r=valeski, sr=darin). API Changes to nsIWebProgress/nsIWebProgressListener)
git-svn-id: svn://10.0.0.236/trunk@121682 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 21:46:18 +00:00
rpotts%netscape.com
07329cd38e bug #46856 (r=valeski, sr=darin). API Changes to nsIWebProgress/nsIWebProgressListener)
git-svn-id: svn://10.0.0.236/trunk@121674 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 20:57:37 +00:00
rods%netscape.com
de84818d20 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@121469 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 14:32:42 +00:00
rods%netscape.com
c9aff94488 Static build bustage fix
git-svn-id: svn://10.0.0.236/trunk@121468 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 14:15:19 +00:00
rods%netscape.com
29c0c5d959 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@121463 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 12:05:00 +00:00
rods%netscape.com
e97a493be3 making a few adjustments to the APIs before the freeze
Bug 143248 r=conrad sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@121197 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-09 22:02:44 +00:00
rods%netscape.com
20054422a5 All the files have been moved to the unixshaed directory
Bug 115136 r=dcone sr=attainasi


git-svn-id: svn://10.0.0.236/trunk@121095 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-08 21:12:09 +00:00
darin%netscape.com
24feadaaed fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@121010 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:07:19 +00:00
rods%netscape.com
fe2355ea4d 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@120936 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 12:03:37 +00:00
bryner%netscape.com
e5298ad2d1 Fixing gtk2 bustage. r=cls.
git-svn-id: svn://10.0.0.236/trunk@120821 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-06 07:02:45 +00:00
seawood%netscape.com
85cc979afe Fix xlib bustage.
Thanks to Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> for the patch.
Bug #135441 r=cls


git-svn-id: svn://10.0.0.236/trunk@120683 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-03 08:11:10 +00:00
rods%netscape.com
5840b2d575 Fixing more bustage
git-svn-id: svn://10.0.0.236/trunk@120551 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 18:07:15 +00:00
rods%netscape.com
0d52b57c9d some functions need to be static, this should fix the static build bustage
git-svn-id: svn://10.0.0.236/trunk@120547 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 16:23:20 +00:00
rods%netscape.com
0383d4ef32 Minor fix
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@120539 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 12:32:13 +00:00
rods%netscape.com
1915d4a4e9 minor change
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@120538 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 12:30:09 +00:00
rods%netscape.com
8867442f48 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@120537 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 12:08:52 +00:00
rods%netscape.com
ac14a93374 Add the new pluggable dialog work, in build, not used yet
BUg 135441 r=dcone,pink sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@120535 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 11:50:36 +00:00