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 class  Type {
  Default = 0 ,
  CUPS = 1 ,
  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, std::string_view pToken) const
 
virtual ~PrinterInfoManager ()
 

Static Public Member Functions

static PrinterInfoManagerget ()
 

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 m_eType
 
bool m_bUseIncludeFeature
 
bool m_bUseJobPatch
 
OUString m_aSystemDefaultPaper
 

Detailed Description

Definition at line 66 of file printerinfomanager.hxx.

Member Enumeration Documentation

◆ Type

enum class psp::PrinterInfoManager::Type
strong
Enumerator
Default 
CUPS 
CPD 

Definition at line 69 of file printerinfomanager.hxx.

Constructor & Destructor Documentation

◆ PrinterInfoManager()

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

◆ ~PrinterInfoManager()

virtual psp::PrinterInfoManager::~PrinterInfoManager ( )
virtual

Member Function Documentation

◆ checkFeatureToken()

bool psp::PrinterInfoManager::checkFeatureToken ( const OUString &  rPrinterName,
std::string_view  pToken 
) const

◆ checkPrintersChanged()

virtual bool psp::PrinterInfoManager::checkPrintersChanged ( bool  bWait)
virtual

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

◆ endSpool()

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.

◆ get()

static PrinterInfoManager & psp::PrinterInfoManager::get ( )
static

◆ getDefaultPrinter()

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

Definition at line 141 of file printerinfomanager.hxx.

◆ getPrinterInfo()

const PrinterInfo & psp::PrinterInfoManager::getPrinterInfo ( const OUString &  rPrinter) const

◆ getType()

Type psp::PrinterInfoManager::getType ( ) const
inline

Definition at line 132 of file printerinfomanager.hxx.

References m_eType.

◆ getUseIncludeFeature()

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

Definition at line 160 of file printerinfomanager.hxx.

◆ getUseJobPatch()

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

Definition at line 161 of file printerinfomanager.hxx.

◆ initialize()

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

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

◆ listPrinters()

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

◆ setDefaultPaper()

void psp::PrinterInfoManager::setDefaultPaper ( PPDContext rInfo) const
protected

◆ setupJobContextData()

virtual void psp::PrinterInfoManager::setupJobContextData ( JobData rData)
virtual

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

◆ startSpool()

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

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

References FILE.

Member Data Documentation

◆ m_aDefaultPrinter

OUString psp::PrinterInfoManager::m_aDefaultPrinter
protected

Definition at line 104 of file printerinfomanager.hxx.

◆ m_aGlobalDefaults

PrinterInfo psp::PrinterInfoManager::m_aGlobalDefaults
protected

Definition at line 102 of file printerinfomanager.hxx.

◆ m_aPrinters

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

Definition at line 101 of file printerinfomanager.hxx.

◆ m_aSystemDefaultPaper

OUString psp::PrinterInfoManager::m_aSystemDefaultPaper
protected

Definition at line 115 of file printerinfomanager.hxx.

◆ m_aSystemPrintCommand

OUString psp::PrinterInfoManager::m_aSystemPrintCommand
protected

Definition at line 105 of file printerinfomanager.hxx.

◆ m_aSystemPrintQueues

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

Definition at line 107 of file printerinfomanager.hxx.

◆ m_aWatchFiles

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

Definition at line 103 of file printerinfomanager.hxx.

◆ m_bUseIncludeFeature

bool psp::PrinterInfoManager::m_bUseIncludeFeature
protected

Definition at line 113 of file printerinfomanager.hxx.

◆ m_bUseJobPatch

bool psp::PrinterInfoManager::m_bUseJobPatch
protected

Definition at line 114 of file printerinfomanager.hxx.

◆ m_eType

Type psp::PrinterInfoManager::m_eType
protected

Definition at line 112 of file printerinfomanager.hxx.

◆ m_pQueueInfo

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

Definition at line 110 of file printerinfomanager.hxx.


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