build fix
[LibreOffice.git] / vcl / null / printerinfomanager.cxx
blobde71d012de258ef18c700416c00d88af7e702ad2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <vcl/printerinfomanager.hxx>
22 #include "unx/gendata.hxx"
24 using namespace psp;
25 using namespace osl;
27 PrinterInfoManager& PrinterInfoManager::get()
29 SalData* pSalData = GetSalData();
30 if( ! pSalData->m_pPIManager )
31 pSalData->m_pPIManager = new PrinterInfoManager();
32 return *pSalData->m_pPIManager;
35 void PrinterInfoManager::release()
37 SalData* pSalData = GetSalData();
38 delete pSalData->m_pPIManager;
39 pSalData->m_pPIManager = NULL;
42 PrinterInfoManager::PrinterInfoManager( Type eType ) :
43 m_pQueueInfo( NULL ),
44 m_eType( eType ),
45 m_bUseIncludeFeature( false ),
46 m_bUseJobPatch( true ),
47 m_aSystemDefaultPaper( "A4" )
49 // initSystemDefaultPaper();
52 PrinterInfoManager::~PrinterInfoManager()
57 bool PrinterInfoManager::checkPrintersChanged( bool /* bWait */ )
59 return false;
62 void PrinterInfoManager::initialize()
64 // ???
67 void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
69 rList.clear();
72 const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& /* rPrinter */ ) const
74 static PrinterInfo aEmptyInfo;
76 return aEmptyInfo;
79 bool PrinterInfoManager::writePrinterConfig()
81 return false;
84 bool PrinterInfoManager::addPrinter( const OUString& /* rPrinterName */, const OUString& /* rDriverName */ )
86 return false;
89 bool PrinterInfoManager::removePrinter( const OUString& /* rPrinterName */, bool /* bCheckOnly */ )
91 return false;
94 bool PrinterInfoManager::setDefaultPrinter( const OUString& /* rPrinterName */ )
96 return false;
99 bool PrinterInfoManager::checkFeatureToken( const OUString& /* rPrinterName */, const char* /* pToken */ ) const
101 return false;
104 FILE* PrinterInfoManager::startSpool( const OUString& /* rPrintername */, bool /* bQuickCommand */ )
106 return NULL;
109 bool PrinterInfoManager::endSpool( const OUString& /*rPrintername*/, const OUString& /*rJobTitle*/, FILE* /* pFile */, const JobData& /*rDocumentJobData*/, bool /*bBanner*/, const OUString& /*rFaxNumber*/ )
111 return true;
114 void PrinterInfoManager::setupJobContextData( JobData& /* rData */ )
119 void PrinterInfoManager::setDefaultPaper( PPDContext& /* rContext */ ) const
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */