Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
nsPrinterFeatures Class Reference
Collaboration diagram for nsPrinterFeatures:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPrinterFeatures (const char *printername)
 ~nsPrinterFeatures ()
void SetCanChangePaperSize (PRBool aCanSetPaperSize)
void SetSupportsPaperSizeChange (PRBool aSupportsPaperSizeChange)
void SetNumPaperSizeRecords (PRInt32 aCount)
void SetPaperRecord (PRInt32 aIndex, const char *aName, PRInt32 aWidthMM, PRInt32 aHeightMM, PRBool aIsInch)
void SetCanChangeOrientation (PRBool aCanSetOrientation)
void SetSupportsOrientationChange (PRBool aSupportsOrientationChange)
void SetNumOrientationRecords (PRInt32 aCount)
void SetOrientationRecord (PRInt32 aIndex, const char *aName)
void SetCanChangePlex (PRBool aCanSetPlex)
void SetSupportsPlexChange (PRBool aSupportsPlexChange)
void SetNumPlexRecords (PRInt32 aCount)
void SetPlexRecord (PRInt32 aIndex, const char *aName)
void SetCanChangeResolutionName (PRBool aCanSetResolutionName)
void SetSupportsResolutionNameChange (PRBool aSupportsResolutionChange)
void SetNumResolutionNameRecords (PRInt32 aCount)
void SetResolutionNameRecord (PRInt32 aIndex, const char *aName)
void SetCanChangeColorspace (PRBool aCanSetColorspace)
void SetSupportsColorspaceChange (PRBool aSupportsColorspace)
void SetNumColorspaceRecords (PRInt32 aCount)
void SetColorspaceRecord (PRInt32 aIndex, const char *aName)
void SetCanChangePrintInColor (PRBool aCanSetPrintInColor)
void SetSupportsPrintInColorChange (PRBool aSupportPrintInColorChange)
void SetCanChangeDownloadFonts (PRBool aCanSetDownloadFonts)
void SetSupportsDownloadFontsChange (PRBool aSupportDownloadFontsChange)
void SetCanChangeJobTitle (PRBool aCanSetJobTitle)
void SetSupportsJobTitleChange (PRBool aSupportJobTitleChange)
void SetCanChangeSpoolerCommand (PRBool aCanSetSpoolerCommand)
void SetSupportsSpoolerCommandChange (PRBool aSupportSpoolerCommandChange)
void SetCanChangeNumCopies (PRBool aCanSetNumCopies)
void SetMultipleConcurrentDeviceContextsSupported (PRBool aCanUseMultipleInstances)
 nsPrinterFeatures (const char *printername)
 ~nsPrinterFeatures ()
void SetCanChangePaperSize (PRBool aCanSetPaperSize)
void SetNumPaperSizeRecords (PRInt32 aCount)
void SetPaperRecord (PRInt32 aIndex, const char *aName, PRInt32 aWidthMM, PRInt32 aHeightMM, PRBool aIsInch)
void SetCanChangeOrientation (PRBool aCanSetOrientation)
void SetNumOrientationRecords (PRInt32 aCount)
void SetOrientationRecord (PRInt32 aIndex, const char *aName)
void SetCanChangeSpoolerCommand (PRBool aCanSetSpoolerCommand)
void SetCanChangeNumCopies (PRBool aCanSetNumCopies)
void SetMultipleConcurrentDeviceContextsSupported (PRBool aCanUseMultipleInstances)
 nsPrinterFeatures (const char *printername)
 ~nsPrinterFeatures ()
void SetCanChangePaperSize (PRBool aCanSetPaperSize)
void SetSupportsPaperSizeChange (PRBool aSupportsPaperSizeChange)
void SetNumPaperSizeRecords (PRInt32 aCount)
void SetPaperRecord (PRInt32 aIndex, const char *aName, PRInt32 aWidthMM, PRInt32 aHeightMM, PRBool aIsInch)
void SetCanChangeOrientation (PRBool aCanSetOrientation)
void SetSupportsOrientationChange (PRBool aSupportsOrientationChange)
void SetNumOrientationRecords (PRInt32 aCount)
void SetOrientationRecord (PRInt32 aIndex, const char *aName)
void SetCanChangePlex (PRBool aCanSetPlex)
void SetSupportsPlexChange (PRBool aSupportsPlexChange)
void SetNumPlexRecords (PRInt32 aCount)
void SetPlexRecord (PRInt32 aIndex, const char *aName)
void SetCanChangeResolutionName (PRBool aCanSetResolutionName)
void SetSupportsResolutionNameChange (PRBool aSupportsResolutionChange)
void SetNumResolutionNameRecords (PRInt32 aCount)
void SetResolutionNameRecord (PRInt32 aIndex, const char *aName)
void SetCanChangeColorspace (PRBool aCanSetColorspace)
void SetSupportsColorspaceChange (PRBool aSupportsColorspace)
void SetNumColorspaceRecords (PRInt32 aCount)
void SetColorspaceRecord (PRInt32 aIndex, const char *aName)
void SetCanChangePrintInColor (PRBool aCanSetPrintInColor)
void SetSupportsPrintInColorChange (PRBool aSupportPrintInColorChange)
void SetCanChangeDownloadFonts (PRBool aCanSetDownloadFonts)
void SetSupportsDownloadFontsChange (PRBool aSupportDownloadFontsChange)
void SetCanChangeJobTitle (PRBool aCanSetJobTitle)
void SetSupportsJobTitleChange (PRBool aSupportJobTitleChange)
void SetCanChangeSpoolerCommand (PRBool aCanSetSpoolerCommand)
void SetSupportsSpoolerCommandChange (PRBool aSupportSpoolerCommandChange)
void SetCanChangeNumCopies (PRBool aCanSetNumCopies)
void SetMultipleConcurrentDeviceContextsSupported (PRBool aCanUseMultipleInstances)

Private Member Functions

void SetBoolValue (const char *tagname, PRBool value)
void SetIntValue (const char *tagname, PRInt32 value)
void SetCharValue (const char *tagname, const char *value)
void SetBoolValue (const char *tagname, PRBool value)
void SetIntValue (const char *tagname, PRInt32 value)
void SetCharValue (const char *tagname, const char *value)
void SetBoolValue (const char *tagname, PRBool value)
void SetIntValue (const char *tagname, PRInt32 value)
void SetCharValue (const char *tagname, const char *value)

Private Attributes

nsXPIDLCString mPrinterName
nsCOMPtr< nsIPrefmPrefs

Detailed Description

Definition at line 109 of file nsDeviceContextSpecG.cpp.


Constructor & Destructor Documentation

Definition at line 207 of file nsDeviceContextSpecG.cpp.

{
  DO_PR_DEBUG_LOG(("nsPrinterFeatures::nsPrinterFeatures('%s')\n", printername));
  mPrinterName.Assign(printername);
  mPrefs = do_GetService(NS_PREF_CONTRACTID);
 
  SetBoolValue("has_special_printerfeatures", PR_TRUE);
}

Here is the call graph for this function:

Definition at line 112 of file nsDeviceContextSpecG.cpp.

{};

Definition at line 112 of file nsDeviceContextSpecQt.cpp.

{};

Definition at line 112 of file nsDeviceContextSpecXlib.cpp.

{};

Member Function Documentation

void nsPrinterFeatures::SetBoolValue ( const char *  tagname,
PRBool  value 
) [private]
void nsPrinterFeatures::SetBoolValue ( const char *  tagname,
PRBool  value 
) [private]

Definition at line 192 of file nsDeviceContextSpecG.cpp.

{
  mPrefs->SetBoolPref(nsPrintfCString(256, PRINTERFEATURES_PREF ".%s.%s", mPrinterName.get(), tagname).get(), value);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsPrinterFeatures::SetBoolValue ( const char *  tagname,
PRBool  value 
) [private]

Definition at line 300 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_colorspace", aCanSetColorspace);
}

Here is the call graph for this function:

Definition at line 320 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_downloadfonts", aCanSetDownloadFonts);
}

Here is the call graph for this function:

Definition at line 350 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_jobtitle", aCanSetJobTitle);
}

Here is the call graph for this function:

Definition at line 360 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_num_copies", aCanSetNumCopies);
}

Here is the call graph for this function:

Definition at line 240 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_orientation", aCanSetOrientation);
}

Here is the call graph for this function:

Definition at line 216 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_paper_size", aCanSetPaperSize);
}

Here is the call graph for this function:

Definition at line 260 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_plex", aCanSetPlex);
}

Here is the call graph for this function:

Definition at line 330 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_printincolor", aCanSetPrintInColor);
}

Here is the call graph for this function:

Definition at line 280 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_resolution", aCanSetResolutionName);
}

Here is the call graph for this function:

Definition at line 340 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_change_spoolercommand", aCanSetSpoolerCommand);
}

Here is the call graph for this function:

void nsPrinterFeatures::SetCharValue ( const char *  tagname,
const char *  value 
) [private]
void nsPrinterFeatures::SetCharValue ( const char *  tagname,
const char *  value 
) [private]

Definition at line 202 of file nsDeviceContextSpecG.cpp.

{
  mPrefs->SetCharPref(nsPrintfCString(256, PRINTERFEATURES_PREF ".%s.%s", mPrinterName.get(), tagname).get(), value);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsPrinterFeatures::SetCharValue ( const char *  tagname,
const char *  value 
) [private]
void nsPrinterFeatures::SetColorspaceRecord ( PRInt32  aIndex,
const char *  aName 
)
void nsPrinterFeatures::SetColorspaceRecord ( PRInt32  aIndex,
const char *  aName 
)

Definition at line 315 of file nsDeviceContextSpecG.cpp.

{
  SetCharValue(nsPrintfCString(256, "colorspace.%d.name", aIndex).get(), aColorspace);
}

Here is the call graph for this function:

void nsPrinterFeatures::SetIntValue ( const char *  tagname,
PRInt32  value 
) [private]
void nsPrinterFeatures::SetIntValue ( const char *  tagname,
PRInt32  value 
) [private]

Definition at line 197 of file nsDeviceContextSpecG.cpp.

{
  mPrefs->SetIntPref(nsPrintfCString(256, PRINTERFEATURES_PREF ".%s.%s", mPrinterName.get(), tagname).get(), value);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsPrinterFeatures::SetIntValue ( const char *  tagname,
PRInt32  value 
) [private]

Definition at line 365 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("can_use_multiple_devicecontexts_concurrently", aCanUseMultipleInstances);
}

Here is the call graph for this function:

Definition at line 310 of file nsDeviceContextSpecG.cpp.

{
  SetIntValue("colorspace.count", aCount);          
}

Here is the call graph for this function:

Definition at line 250 of file nsDeviceContextSpecG.cpp.

{
  SetIntValue("orientation.count", aCount);          
}

Here is the call graph for this function:

Definition at line 227 of file nsDeviceContextSpecG.cpp.

{
  SetIntValue("paper.count", aCount);          
}

Here is the call graph for this function:

Definition at line 270 of file nsDeviceContextSpecG.cpp.

{
  SetIntValue("plex.count", aCount);          
}

Here is the call graph for this function:

Definition at line 290 of file nsDeviceContextSpecG.cpp.

{
  SetIntValue("resolution.count", aCount);          
}

Here is the call graph for this function:

Definition at line 255 of file nsDeviceContextSpecG.cpp.

{
  SetCharValue(nsPrintfCString(256, "orientation.%d.name", aIndex).get(), aOrientationName);
}

Here is the call graph for this function:

void nsPrinterFeatures::SetPaperRecord ( PRInt32  aIndex,
const char *  aName,
PRInt32  aWidthMM,
PRInt32  aHeightMM,
PRBool  aIsInch 
)
void nsPrinterFeatures::SetPaperRecord ( PRInt32  aIndex,
const char *  aName,
PRInt32  aWidthMM,
PRInt32  aHeightMM,
PRBool  aIsInch 
)
void nsPrinterFeatures::SetPaperRecord ( PRInt32  aIndex,
const char *  aName,
PRInt32  aWidthMM,
PRInt32  aHeightMM,
PRBool  aIsInch 
)

Definition at line 232 of file nsDeviceContextSpecG.cpp.

{
  SetCharValue(nsPrintfCString(256, "paper.%d.name",      aIndex).get(), aPaperName);
  SetIntValue( nsPrintfCString(256, "paper.%d.width_mm",  aIndex).get(), aWidthMM);
  SetIntValue( nsPrintfCString(256, "paper.%d.height_mm", aIndex).get(), aHeightMM);
  SetBoolValue(nsPrintfCString(256, "paper.%d.is_inch",   aIndex).get(), aIsInch);
}

Here is the call graph for this function:

void nsPrinterFeatures::SetPlexRecord ( PRInt32  aIndex,
const char *  aName 
)

Definition at line 275 of file nsDeviceContextSpecG.cpp.

{
  SetCharValue(nsPrintfCString(256, "plex.%d.name", aIndex).get(), aPlexName);
}

Here is the call graph for this function:

void nsPrinterFeatures::SetPlexRecord ( PRInt32  aIndex,
const char *  aName 
)

Definition at line 295 of file nsDeviceContextSpecG.cpp.

{
  SetCharValue(nsPrintfCString(256, "resolution.%d.name", aIndex).get(), aResolutionName);
}

Here is the call graph for this function:

Definition at line 305 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_colorspace_change", aSupportsColorspaceChange);
}

Here is the call graph for this function:

Definition at line 325 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_downloadfonts_change", aSupportDownloadFontsChange);
}

Here is the call graph for this function:

Definition at line 355 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_jobtitle_change", aSupportsJobTitle);
}

Here is the call graph for this function:

Definition at line 245 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_orientation_change", aSupportsOrientationChange);
}

Here is the call graph for this function:

Definition at line 221 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_paper_size_change", aSupportsPaperSizeChange);
}

Here is the call graph for this function:

Definition at line 265 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_plex_change", aSupportsPlexChange);
}

Here is the call graph for this function:

Definition at line 335 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_printincolor_change", aSupportPrintInColorChange);
}

Here is the call graph for this function:

Definition at line 285 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_resolution_change", aSupportsResolutionNameChange);
}

Here is the call graph for this function:

Definition at line 345 of file nsDeviceContextSpecG.cpp.

{
  SetBoolValue("supports_spoolercommand_change", aSupportSpoolerCommandChange);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 189 of file nsDeviceContextSpecG.cpp.

Definition at line 188 of file nsDeviceContextSpecG.cpp.


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