diff options
Diffstat (limited to 'vcl/null/printerinfomanager.cxx')
-rw-r--r-- | vcl/null/printerinfomanager.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcl/null/printerinfomanager.cxx b/vcl/null/printerinfomanager.cxx index 964a19d1e3d5..934f2772f1e8 100644 --- a/vcl/null/printerinfomanager.cxx +++ b/vcl/null/printerinfomanager.cxx @@ -39,6 +39,14 @@ using ::rtl::OString; using ::rtl::OStringToOUString; using ::rtl::OUStringHash; +PrinterInfoManager& PrinterInfoManager::get() +{ + SalData* pSalData = GetSalData(); + if( ! pSalData->m_pPIManager ) + pSalData->m_pPIManager = new PrinterInfoManager(); + return *pSalData->m_pPIManager; +} + void PrinterInfoManager::release() { SalData* pSalData = GetSalData(); @@ -46,4 +54,15 @@ void PrinterInfoManager::release() pSalData->m_pPIManager = NULL; } +PrinterInfoManager::PrinterInfoManager( Type eType ) : + m_pQueueInfo( NULL ), + m_eType( eType ), + m_bUseIncludeFeature( false ), + m_bUseJobPatch( true ), + m_aSystemDefaultPaper( RTL_CONSTASCII_USTRINGPARAM( "A4" ) ), + m_bDisableCUPS( false ) +{ + initSystemDefaultPaper(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |