Coverage Report

Created: 2026-04-09 11:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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_eType( eType ),
45
0
    m_aSystemDefaultPaper( "A4" )
46
0
{
47
    // initSystemDefaultPaper();
48
0
}
49
50
PrinterInfoManager::~PrinterInfoManager()
51
0
{
52
53
0
}
54
55
bool PrinterInfoManager::checkPrintersChanged( bool /* bWait */ )
56
0
{
57
0
    return false;
58
0
}
59
60
void PrinterInfoManager::initialize()
61
0
{
62
    // ???
63
0
}
64
65
const PrinterInfo& PrinterInfoManager::getPrinterInfo(
66
    [[maybe_unused]] const OUString& /* rPrinter */ ) const
67
0
{
68
0
    static PrinterInfo aEmptyInfo;
69
70
0
    (void) this;
71
72
0
    return aEmptyInfo;
73
0
}
74
75
bool PrinterInfoManager::checkFeatureToken( [[maybe_unused]] const OUString& /* rPrinterName */, [[maybe_unused]] std::string_view /* pToken */ ) const
76
0
{
77
0
    (void) this;
78
79
0
    return false;
80
0
}
81
82
FILE* PrinterInfoManager::startSpool( const OUString& /* rPrintername */, bool /* bQuickCommand */ )
83
0
{
84
0
    return nullptr;
85
0
}
86
87
bool PrinterInfoManager::endSpool( const OUString& /*rPrintername*/, const OUString& /*rJobTitle*/, FILE* /* pFile */, const JobData& /*rDocumentJobData*/, bool /*bBanner*/, const OUString& /*rFaxNumber*/ )
88
0
{
89
0
    return true;
90
0
}
91
92
void PrinterInfoManager::setupJobContextData( JobData& /* rData */ )
93
0
{
94
95
0
}
96
97
void PrinterInfoManager::setDefaultPaper( PPDContext& /* rContext */ ) const
98
0
{
99
0
    (void) this;
100
0
}
101
102
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */