118890 r=rods sr=attinasi a=asa. Fixed printing in print preview. Last checking contained another fix I was working on.. so I pulled that out.

This commit is contained in:
dcone%netscape.com 2002-03-22 15:18:38 +00:00
parent 5ac940d43c
commit 840821338c

View File

@ -46,7 +46,6 @@
#include "nsIServiceManager.h"
#include "nsIPrintOptions.h"
#include "CoreServices.h"
/** -------------------------------------------------------
* Construct the nsDeviceContextSpecX
@ -128,13 +127,6 @@ NS_IMETHODIMP nsDeviceContextSpecX::Init(nsIPrintSettings* aPS, PRBool aQuiet)
{
::InitCursor();
//CFStringRef pathRef = CFStringCreateWithCString(NULL,"file://Macintosh HD/Developer/Examples/Printing/App/build/PrintDialogPDE.plugin",kCFStringEncodingUTF8);
CFStringRef pathRef = CFStringCreateWithCString(NULL,"Developer:Examples:Printing:App:build:PrintDialogPDE.plugin",kCFStringEncodingUTF8);
if(pathRef){
CFURLRef bundleURL=CFURLCreateWithFileSystemPath(NULL,pathRef,kCFURLPOSIXPathStyle,false);
CFPlugInRef plugin = ::CFPlugInCreate(NULL,bundleURL);
}
Boolean accepted = false;
status = ::PMPrintDialog(mPrintSettings, mPageFormat, &accepted);
if (! accepted)