Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Attributes
nsDeviceContextSpecGTK Class Reference

#include <nsDeviceContextSpecG.h>

Inheritance diagram for nsDeviceContextSpecGTK:
Inheritance graph
[legend]
Collaboration diagram for nsDeviceContextSpecGTK:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsDeviceContextSpecGTK ()
NS_DECL_ISUPPORTS NS_IMETHOD Init (nsIPrintSettings *aPS, PRBool aIsPrintPreview)
NS_IMETHOD ClosePrintManager ()
NS_IMETHOD GetToPrinter (PRBool &aToPrinter)
NS_IMETHOD GetIsPrintPreview (PRBool &aIsPPreview)
NS_IMETHOD GetPrinterName (const char **aPrinter)
NS_IMETHOD GetCopies (int &aCopies)
NS_IMETHOD GetFirstPageFirst (PRBool &aFpf)
NS_IMETHOD GetGrayscale (PRBool &aGrayscale)
NS_IMETHOD GetTopMargin (float &value)
NS_IMETHOD GetBottomMargin (float &value)
NS_IMETHOD GetLeftMargin (float &value)
NS_IMETHOD GetRightMargin (float &value)
NS_IMETHOD GetCommand (const char **aCommand)
NS_IMETHOD GetPath (const char **aPath)
NS_IMETHOD GetLandscape (PRBool &aLandscape)
NS_IMETHOD GetUserCancelled (PRBool &aCancel)
NS_IMETHOD GetPrintMethod (PrintMethod &aMethod)
NS_IMETHOD GetPageSizeInTwips (PRInt32 *aWidth, PRInt32 *aHeight)
NS_IMETHOD GetPaperName (const char **aPaperName)
NS_IMETHOD GetPlexName (const char **aPlexName)
NS_IMETHOD GetResolutionName (const char **aResolutionName)
NS_IMETHOD GetColorspace (const char **aColorspace)
NS_IMETHOD GetDownloadFonts (PRBool &aDownloadFonts)
virtual ~nsDeviceContextSpecGTK ()

Static Public Member Functions

static nsresult GetPrintMethod (const char *aPrinter, PrintMethod &aMethod)

Protected Attributes

nsCOMPtr< nsIPrintSettingsmPrintSettings
PRPackedBool mToPrinter: 1
PRPackedBool mIsPPreview: 1
PRPackedBool mFpf: 1
PRPackedBool mGrayscale: 1
PRPackedBool mDownloadFonts: 1
PRPackedBool mCancel: 1
int mOrientation
char mCommand [PATH_MAX]
char mPath [PATH_MAX]
char mPrinter [256]
char mPaperName [256]
char mPlexName [256]
char mResolutionName [256]
char mColorspace [256]
int mCopies
float mLeft
float mRight
float mTop
float mBottom

Detailed Description

Definition at line 65 of file nsDeviceContextSpecG.h.


Constructor & Destructor Documentation

Definition at line 378 of file nsDeviceContextSpecG.cpp.

{
  DO_PR_DEBUG_LOG(("nsDeviceContextSpecGTK::nsDeviceContextSpecGTK()\n"));
}

Definition at line 383 of file nsDeviceContextSpecG.cpp.

{
  DO_PR_DEBUG_LOG(("nsDeviceContextSpecGTK::~nsDeviceContextSpecGTK()\n"));
}

Member Function Documentation

Definition at line 677 of file nsDeviceContextSpecG.cpp.

{
  return NS_OK;
}

Definition at line 580 of file nsDeviceContextSpecG.cpp.

{
  aValue = mBottom;
  return NS_OK;
}

Definition at line 634 of file nsDeviceContextSpecG.cpp.

{
  *aColorspace = mColorspace;
  return NS_OK;
}

Definition at line 598 of file nsDeviceContextSpecG.cpp.

{
  *aCommand = mCommand;
  return NS_OK;
}

Definition at line 550 of file nsDeviceContextSpecG.cpp.

{
   aCopies = mCopies;
   return NS_OK;
}

Definition at line 640 of file nsDeviceContextSpecG.cpp.

{
  aDownloadFonts = mDownloadFonts;
  return NS_OK;
}

Definition at line 556 of file nsDeviceContextSpecG.cpp.

{
  aFpf = mFpf;
  return NS_OK;
}

Definition at line 562 of file nsDeviceContextSpecG.cpp.

{
  aGrayscale = mGrayscale;
  return NS_OK;
}

Definition at line 538 of file nsDeviceContextSpecG.cpp.

{
  aIsPPreview = mIsPPreview;
  return NS_OK;
}

Definition at line 568 of file nsDeviceContextSpecG.cpp.

{
  aLandscape = (mOrientation == NS_LANDSCAPE);
  return NS_OK;
}

Definition at line 592 of file nsDeviceContextSpecG.cpp.

{
  aValue = mLeft;
  return NS_OK;
}

Definition at line 646 of file nsDeviceContextSpecG.cpp.

{
  return mPrintSettings->GetPageSizeInTwips(aWidth, aHeight);
}

Definition at line 616 of file nsDeviceContextSpecG.cpp.

{
  *aPaperName = mPaperName;
  return NS_OK;
}

Definition at line 604 of file nsDeviceContextSpecG.cpp.

{
  *aPath = mPath;
  return NS_OK;
}

Definition at line 622 of file nsDeviceContextSpecG.cpp.

{
  *aPlexName = mPlexName;
  return NS_OK;
}

Definition at line 544 of file nsDeviceContextSpecG.cpp.

{
   *aPrinter = mPrinter;
   return NS_OK;
}

Definition at line 651 of file nsDeviceContextSpecG.cpp.

{
  return GetPrintMethod(mPrinter, aMethod);
}

Here is the caller graph for this function:

nsresult nsDeviceContextSpecGTK::GetPrintMethod ( const char *  aPrinter,
PrintMethod aMethod 
) [static]

Definition at line 657 of file nsDeviceContextSpecG.cpp.

{
#if defined(USE_POSTSCRIPT) && defined(USE_XPRINT)
  if (nsPSPrinterList::kTypeUnknown ==
      nsPSPrinterList::GetPrinterType(nsDependentCString(aPrinter)))
    aMethod = pmXprint;
  else
    aMethod = pmPostScript;
  return NS_OK;
#elif defined(USE_XPRINT)
  aMethod = pmXprint;
  return NS_OK;
#elif defined(USE_POSTSCRIPT)
  aMethod = pmPostScript;
  return NS_OK;
#else
  return NS_ERROR_UNEXPECTED;
#endif
}

Definition at line 628 of file nsDeviceContextSpecG.cpp.

{
  *aResolutionName = mResolutionName;
  return NS_OK;
}

Definition at line 586 of file nsDeviceContextSpecG.cpp.

{
  aValue = mRight;
  return NS_OK;
}

Definition at line 574 of file nsDeviceContextSpecG.cpp.

{
  aValue = mTop;
  return NS_OK;
}

Definition at line 532 of file nsDeviceContextSpecG.cpp.

{
  aToPrinter = mToPrinter;
  return NS_OK;
}

Definition at line 610 of file nsDeviceContextSpecG.cpp.

{
  aCancel = mCancel;
  return NS_OK;
}

Member Data Documentation

Definition at line 125 of file nsDeviceContextSpecG.h.

Definition at line 112 of file nsDeviceContextSpecG.h.

char nsDeviceContextSpecGTK::mColorspace[256] [protected]

Definition at line 120 of file nsDeviceContextSpecG.h.

Definition at line 114 of file nsDeviceContextSpecG.h.

Definition at line 121 of file nsDeviceContextSpecG.h.

Definition at line 111 of file nsDeviceContextSpecG.h.

Definition at line 109 of file nsDeviceContextSpecG.h.

Definition at line 110 of file nsDeviceContextSpecG.h.

Definition at line 108 of file nsDeviceContextSpecG.h.

float nsDeviceContextSpecGTK::mLeft [protected]

Definition at line 122 of file nsDeviceContextSpecG.h.

Definition at line 113 of file nsDeviceContextSpecG.h.

char nsDeviceContextSpecGTK::mPaperName[256] [protected]

Definition at line 117 of file nsDeviceContextSpecG.h.

Definition at line 115 of file nsDeviceContextSpecG.h.

char nsDeviceContextSpecGTK::mPlexName[256] [protected]

Definition at line 118 of file nsDeviceContextSpecG.h.

char nsDeviceContextSpecGTK::mPrinter[256] [protected]

Definition at line 116 of file nsDeviceContextSpecG.h.

Definition at line 106 of file nsDeviceContextSpecG.h.

Definition at line 119 of file nsDeviceContextSpecG.h.

float nsDeviceContextSpecGTK::mRight [protected]

Definition at line 123 of file nsDeviceContextSpecG.h.

float nsDeviceContextSpecGTK::mTop [protected]

Definition at line 124 of file nsDeviceContextSpecG.h.

Definition at line 107 of file nsDeviceContextSpecG.h.


The documentation for this class was generated from the following files: