/src/libreoffice/vcl/null/printerinfomanager.cxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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/. |
8 | | * |
9 | | * This file incorporates work covered by the following license notice: |
10 | | * |
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 . |
18 | | */ |
19 | | |
20 | | #include <memory> |
21 | | #include <printerinfomanager.hxx> |
22 | | #include <unx/gendata.hxx> |
23 | | |
24 | | // needed since we declare a std::unique_ptr<SystemQueueInfo> |
25 | | namespace psp |
26 | | { |
27 | | class SystemQueueInfo |
28 | | { |
29 | | }; |
30 | | } |
31 | | |
32 | | using namespace psp; |
33 | | using namespace osl; |
34 | | |
35 | | PrinterInfoManager& PrinterInfoManager::get() |
36 | 0 | { |
37 | 0 | GenericUnixSalData* pSalData = GetGenericUnixSalData(); |
38 | 0 | if (!pSalData->m_pPrinterInfoManager) |
39 | 0 | pSalData->m_pPrinterInfoManager.reset(new PrinterInfoManager()); |
40 | 0 | return *pSalData->m_pPrinterInfoManager; |
41 | 0 | } |
42 | | |
43 | | PrinterInfoManager::PrinterInfoManager( Type eType ) : |
44 | 0 | m_pQueueInfo( nullptr ), |
45 | 0 | m_eType( eType ), |
46 | 0 | m_aSystemDefaultPaper( "A4" ) |
47 | 0 | { |
48 | | // initSystemDefaultPaper(); |
49 | 0 | } |
50 | | |
51 | | PrinterInfoManager::~PrinterInfoManager() |
52 | 0 | { |
53 | |
|
54 | 0 | } |
55 | | |
56 | | bool PrinterInfoManager::checkPrintersChanged( bool /* bWait */ ) |
57 | 0 | { |
58 | 0 | return false; |
59 | 0 | } |
60 | | |
61 | | void PrinterInfoManager::initialize() |
62 | 0 | { |
63 | | // ??? |
64 | 0 | } |
65 | | |
66 | | void PrinterInfoManager::listPrinters( ::std::vector< OUString >& rVector ) const |
67 | 0 | { |
68 | 0 | (void) this; |
69 | |
|
70 | 0 | rVector.clear(); |
71 | 0 | } |
72 | | |
73 | | const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& /* rPrinter */ ) const |
74 | 0 | { |
75 | 0 | static PrinterInfo aEmptyInfo; |
76 | |
|
77 | 0 | (void) this; |
78 | |
|
79 | 0 | return aEmptyInfo; |
80 | 0 | } |
81 | | |
82 | | bool PrinterInfoManager::checkFeatureToken( const OUString& /* rPrinterName */, std::string_view /* pToken */ ) const |
83 | 0 | { |
84 | 0 | (void) this; |
85 | |
|
86 | 0 | return false; |
87 | 0 | } |
88 | | |
89 | | FILE* PrinterInfoManager::startSpool( const OUString& /* rPrintername */, bool /* bQuickCommand */ ) |
90 | 0 | { |
91 | 0 | return nullptr; |
92 | 0 | } |
93 | | |
94 | | bool PrinterInfoManager::endSpool( const OUString& /*rPrintername*/, const OUString& /*rJobTitle*/, FILE* /* pFile */, const JobData& /*rDocumentJobData*/, bool /*bBanner*/, const OUString& /*rFaxNumber*/ ) |
95 | 0 | { |
96 | 0 | return true; |
97 | 0 | } |
98 | | |
99 | | void PrinterInfoManager::setupJobContextData( JobData& /* rData */ ) |
100 | 0 | { |
101 | |
|
102 | 0 | } |
103 | | |
104 | | void PrinterInfoManager::setDefaultPaper( PPDContext& /* rContext */ ) const |
105 | 0 | { |
106 | 0 | (void) this; |
107 | 0 | } |
108 | | |
109 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |