LibreOffice Module vcl (master) 1
print.h
Go to the documentation of this file.
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#ifndef INCLUDED_VCL_INC_PRINT_H
21#define INCLUDED_VCL_INC_PRINT_H
22
23#include <rtl/ustring.hxx>
24#include <vcl/dllapi.h>
25#include <vcl/print.hxx>
26#include "salprn.hxx"
27
28#include <vector>
29#include <unordered_map>
30
31class JobSetup;
32
33namespace vcl
34{ class PrinterListener; }
35
37{
38 std::unique_ptr<QueueInfo> mpQueueInfo;
39 std::unique_ptr<SalPrinterQueueInfo> mpSalQueueInfo;
40
41// unlike other similar places, we need to ifdef this to keep old GCC baseline happy
42#ifdef _MSC_VER
45
46 ImplPrnQueueData& operator=( ImplPrnQueueData const & ) = delete; // MSVC2017 workaround
47 ImplPrnQueueData( ImplPrnQueueData const & ) = delete; // MSVC2017 workaround
48#endif
49};
50
52{
53public:
54 std::unordered_map< OUString, sal_Int32 > m_aNameToIndex;
55 std::vector< ImplPrnQueueData > m_aQueueInfos;
56 std::vector< OUString > m_aPrinterList;
57
60
61 ImplPrnQueueList& operator=( ImplPrnQueueList const & ) = delete; // MSVC2017 workaround
62 ImplPrnQueueList( ImplPrnQueueList const & ) = delete; // MSVC2017 workaround
63
64void Add( std::unique_ptr<SalPrinterQueueInfo> pData );
65 ImplPrnQueueData* Get( const OUString& rPrinter );
66};
67
69void ImplUpdateJobSetupPaper( JobSetup& rJobSetup );
70
71#endif // INCLUDED_VCL_INC_PRINT_H
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ImplPrnQueueList & operator=(ImplPrnQueueList const &)=delete
std::vector< ImplPrnQueueData > m_aQueueInfos
Definition: print.h:55
std::unordered_map< OUString, sal_Int32 > m_aNameToIndex
Definition: print.h:54
ImplPrnQueueList()
Definition: print.h:58
ImplPrnQueueList(ImplPrnQueueList const &)=delete
std::vector< OUString > m_aPrinterList
Definition: print.h:56
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
void ImplUpdateJobSetupPaper(JobSetup &rJobSetup)
Definition: print.cxx:74
void ImplDeletePrnQueueList()
Definition: print.cxx:381
std::unique_ptr< QueueInfo > mpQueueInfo
Definition: print.h:38
std::unique_ptr< SalPrinterQueueInfo > mpSalQueueInfo
Definition: print.h:39