Back to index

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

#include <nsDeviceContextSpecQt.h>

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

List of all members.

Public Member Functions

 nsDeviceContextSpecQt ()
NS_DECL_ISUPPORTS NS_IMETHOD Init (nsIPrintSettings *aPS)
NS_IMETHOD ClosePrintManager ()
NS_IMETHOD GetToPrinter (PRBool &aToPrinter)
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)
virtual ~nsDeviceContextSpecQt ()

Static Public Member Functions

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

Protected Attributes

nsCOMPtr< nsIPrintSettingsmPrintSettings
PRBool mToPrinter
PRBool mFpf
PRBool mGrayscale
int mOrientation
char mCommand [PATH_MAX]
char mPath [PATH_MAX]
char mPrinter [256]
char mPaperName [256]
int mCopies
PRBool mCancel
float mLeft
float mRight
float mTop
float mBottom

Detailed Description

Definition at line 67 of file nsDeviceContextSpecQt.h.


Constructor & Destructor Documentation

Definition at line 229 of file nsDeviceContextSpecQt.cpp.

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

Definition at line 234 of file nsDeviceContextSpecQt.cpp.

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

Member Function Documentation

Definition at line 491 of file nsDeviceContextSpecQt.cpp.

{
  return NS_OK;
}

Definition at line 416 of file nsDeviceContextSpecQt.cpp.

{
  aValue = mBottom;
  return NS_OK;
}

Definition at line 434 of file nsDeviceContextSpecQt.cpp.

{
  *aCommand = mCommand;
  return NS_OK;
}

Definition at line 386 of file nsDeviceContextSpecQt.cpp.

{
   aCopies = mCopies;
   return NS_OK;
}

Definition at line 392 of file nsDeviceContextSpecQt.cpp.

{
  aFpf = mFpf;
  return NS_OK;
}

Definition at line 398 of file nsDeviceContextSpecQt.cpp.

{
  aGrayscale = mGrayscale;
  return NS_OK;
}

Definition at line 404 of file nsDeviceContextSpecQt.cpp.

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

Definition at line 428 of file nsDeviceContextSpecQt.cpp.

{
  aValue = mLeft;
  return NS_OK;
}

Definition at line 458 of file nsDeviceContextSpecQt.cpp.

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

Definition at line 452 of file nsDeviceContextSpecQt.cpp.

{
  *aPaperName = mPaperName;
  return NS_OK;
}

Definition at line 440 of file nsDeviceContextSpecQt.cpp.

{
  *aPath = mPath;
  return NS_OK;
}

Definition at line 380 of file nsDeviceContextSpecQt.cpp.

{
   *aPrinter = mPrinter;
   return NS_OK;
}

Definition at line 463 of file nsDeviceContextSpecQt.cpp.

{
  return GetPrintMethod(mPrinter, aMethod);
}

Here is the caller graph for this function:

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

Definition at line 469 of file nsDeviceContextSpecQt.cpp.

{
#if defined(USE_POSTSCRIPT) && defined(USE_XPRINT)
  /* printer names for the PostScript module alwas start with
   * the NS_POSTSCRIPT_DRIVER_NAME string */
  if (strncmp(aPrinter, NS_POSTSCRIPT_DRIVER_NAME,
              NS_POSTSCRIPT_DRIVER_NAME_LEN) != 0)
    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 422 of file nsDeviceContextSpecQt.cpp.

{
  aValue = mRight;
  return NS_OK;
}

Definition at line 410 of file nsDeviceContextSpecQt.cpp.

{
  aValue = mTop;
  return NS_OK;
}

Definition at line 374 of file nsDeviceContextSpecQt.cpp.

{
  aToPrinter = mToPrinter;
  return NS_OK;
}

Definition at line 446 of file nsDeviceContextSpecQt.cpp.

{
  aCancel = mCancel;
  return NS_OK;
}

Member Data Documentation

float nsDeviceContextSpecQt::mBottom [protected]

Definition at line 121 of file nsDeviceContextSpecQt.h.

Definition at line 117 of file nsDeviceContextSpecQt.h.

Definition at line 112 of file nsDeviceContextSpecQt.h.

Definition at line 116 of file nsDeviceContextSpecQt.h.

Definition at line 109 of file nsDeviceContextSpecQt.h.

Definition at line 110 of file nsDeviceContextSpecQt.h.

float nsDeviceContextSpecQt::mLeft [protected]

Definition at line 118 of file nsDeviceContextSpecQt.h.

Definition at line 111 of file nsDeviceContextSpecQt.h.

char nsDeviceContextSpecQt::mPaperName[256] [protected]

Definition at line 115 of file nsDeviceContextSpecQt.h.

Definition at line 113 of file nsDeviceContextSpecQt.h.

char nsDeviceContextSpecQt::mPrinter[256] [protected]

Definition at line 114 of file nsDeviceContextSpecQt.h.

Definition at line 107 of file nsDeviceContextSpecQt.h.

float nsDeviceContextSpecQt::mRight [protected]

Definition at line 119 of file nsDeviceContextSpecQt.h.

float nsDeviceContextSpecQt::mTop [protected]

Definition at line 120 of file nsDeviceContextSpecQt.h.

Definition at line 108 of file nsDeviceContextSpecQt.h.


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