LibreOffice Module vcl (master)  1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
psp::PrinterInfoManager Class Reference

#include <printerinfomanager.hxx>

Inheritance diagram for psp::PrinterInfoManager:
[legend]
Collaboration diagram for psp::PrinterInfoManager:
[legend]

Classes

struct  Printer
 
struct  SystemPrintQueue
 
struct  WatchFile
 

Public Types

enum  Type {
  Type::Default = 0,
  Type::CUPS = 1,
  Type::CPD = 2
}
 

Public Member Functions

Type getType () const
 
void listPrinters (std::vector< OUString > &rVector) const
 
const PrinterInfogetPrinterInfo (const OUString &rPrinter) const
 
const OUString & getDefaultPrinter () const
 
virtual void setupJobContextData (JobData &rData)
 
virtual bool checkPrintersChanged (bool bWait)
 
virtual FILE * startSpool (const OUString &rPrinterName, bool bQuickCommand)
 
virtual bool endSpool (const OUString &rPrinterName, const OUString &rJobTitle, FILE *pFile, const JobData &rDocumentJobData, bool bBanner, const OUString &rFaxNumber)
 
bool getUseIncludeFeature () const
 
bool getUseJobPatch () const
 
bool checkFeatureToken (const OUString &rPrinterName, const char *pToken) const
 
virtual ~PrinterInfoManager ()
 

Static Public Member Functions

static PrinterInfoManagerget ()
 
static void release ()
 

Protected Member Functions

 PrinterInfoManager (Type eType=Type::Default)
 
virtual void initialize ()
 
void setDefaultPaper (PPDContext &rInfo) const
 

Protected Attributes

std::unordered_map< OUString, Printerm_aPrinters
 
PrinterInfo m_aGlobalDefaults
 
std::vector< WatchFilem_aWatchFiles
 
OUString m_aDefaultPrinter
 
OUString m_aSystemPrintCommand
 
std::vector< SystemPrintQueuem_aSystemPrintQueues
 
std::unique_ptr< SystemQueueInfo > m_pQueueInfo
 
Type const m_eType
 
bool m_bUseIncludeFeature
 
bool m_bUseJobPatch
 
OUString m_aSystemDefaultPaper
 

Detailed Description

Definition at line 65 of file printerinfomanager.hxx.

Member Enumeration Documentation

Enumerator
Default 
CUPS 
CPD 

Definition at line 68 of file printerinfomanager.hxx.

Constructor & Destructor Documentation

psp::PrinterInfoManager::PrinterInfoManager ( Type  eType = Type::Default)
protected
virtual psp::PrinterInfoManager::~PrinterInfoManager ( )
virtual

Member Function Documentation

bool psp::PrinterInfoManager::checkFeatureToken ( const OUString &  rPrinterName,
const char *  pToken 
) const
virtual bool psp::PrinterInfoManager::checkPrintersChanged ( bool  bWait)
virtual

Reimplemented in psp::CPDManager, and psp::CUPSManager.

virtual bool psp::PrinterInfoManager::endSpool ( const OUString &  rPrinterName,
const OUString &  rJobTitle,
FILE *  pFile,
const JobData rDocumentJobData,
bool  bBanner,
const OUString &  rFaxNumber 
)
virtual

Reimplemented in psp::CPDManager, and psp::CUPSManager.

static PrinterInfoManager& psp::PrinterInfoManager::get ( )
static
const OUString& psp::PrinterInfoManager::getDefaultPrinter ( ) const
inline

Definition at line 142 of file printerinfomanager.hxx.

const PrinterInfo& psp::PrinterInfoManager::getPrinterInfo ( const OUString &  rPrinter) const
Type psp::PrinterInfoManager::getType ( ) const
inline

Definition at line 133 of file printerinfomanager.hxx.

bool psp::PrinterInfoManager::getUseIncludeFeature ( ) const
inline

Definition at line 161 of file printerinfomanager.hxx.

bool psp::PrinterInfoManager::getUseJobPatch ( ) const
inline

Definition at line 162 of file printerinfomanager.hxx.

virtual void psp::PrinterInfoManager::initialize ( )
protectedvirtual

Reimplemented in psp::CPDManager, and psp::CUPSManager.

void psp::PrinterInfoManager::listPrinters ( std::vector< OUString > &  rVector) const
static void psp::PrinterInfoManager::release ( )
static

Referenced by SalData::~SalData().

void psp::PrinterInfoManager::setDefaultPaper ( PPDContext rInfo) const
protected
virtual void psp::PrinterInfoManager::setupJobContextData ( JobData rData)
virtual

Reimplemented in psp::CPDManager, and psp::CUPSManager.

virtual FILE* psp::PrinterInfoManager::startSpool ( const OUString &  rPrinterName,
bool  bQuickCommand 
)
virtual

Reimplemented in psp::CPDManager, and psp::CUPSManager.

Member Data Documentation

OUString psp::PrinterInfoManager::m_aDefaultPrinter
protected

Definition at line 103 of file printerinfomanager.hxx.

PrinterInfo psp::PrinterInfoManager::m_aGlobalDefaults
protected

Definition at line 101 of file printerinfomanager.hxx.

std::unordered_map< OUString, Printer > psp::PrinterInfoManager::m_aPrinters
protected

Definition at line 100 of file printerinfomanager.hxx.

OUString psp::PrinterInfoManager::m_aSystemDefaultPaper
protected

Definition at line 114 of file printerinfomanager.hxx.

OUString psp::PrinterInfoManager::m_aSystemPrintCommand
protected

Definition at line 104 of file printerinfomanager.hxx.

std::vector< SystemPrintQueue > psp::PrinterInfoManager::m_aSystemPrintQueues
protected

Definition at line 106 of file printerinfomanager.hxx.

std::vector< WatchFile > psp::PrinterInfoManager::m_aWatchFiles
protected

Definition at line 102 of file printerinfomanager.hxx.

bool psp::PrinterInfoManager::m_bUseIncludeFeature
protected

Definition at line 112 of file printerinfomanager.hxx.

bool psp::PrinterInfoManager::m_bUseJobPatch
protected

Definition at line 113 of file printerinfomanager.hxx.

Type const psp::PrinterInfoManager::m_eType
protected

Definition at line 111 of file printerinfomanager.hxx.

std::unique_ptr<SystemQueueInfo> psp::PrinterInfoManager::m_pQueueInfo
protected

Definition at line 109 of file printerinfomanager.hxx.


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