Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / vcl / prntypes.hxx
blob88920604a961c341a1484e6ca9639470b2d4c823
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 #ifndef INCLUDED_VCL_PRNTYPES_HXX
21 #define INCLUDED_VCL_PRNTYPES_HXX
23 #include <tools/solar.h>
24 #include <i18nutil/paper.hxx>
25 #include <o3tl/typed_flags_set.hxx>
28 // appears to be a copy of css::view::DuplexMode
29 enum class DuplexMode { Unknown, Off, LongEdge, ShortEdge };
32 enum class Orientation { Portrait, Landscape };
35 enum class PrintQueueFlags
37 NONE = 0x00000000,
38 Ready = 0x00000001,
39 Paused = 0x00000002,
40 PendingDeletion = 0x00000004,
41 Busy = 0x00000008,
42 Initializing = 0x00000010,
43 Waiting = 0x00000020,
44 WarmingUp = 0x00000040,
45 Processing = 0x00000080,
46 Printing = 0x00000100,
47 Offline = 0x00000200,
48 Error = 0x00000400,
49 StatusUnknown = 0x00000800,
50 PaperJam = 0x00001000,
51 PaperOut = 0x00002000,
52 ManualFeed = 0x00004000,
53 PaperProblem = 0x00008000,
54 IOActive = 0x00010000,
55 OutputBinFull = 0x00020000,
56 TonerLow = 0x00040000,
57 NoToner = 0x00080000,
58 PagePunt = 0x00100000,
59 UserIntervention = 0x00200000,
60 OutOfMemory = 0x00400000,
61 DoorOpen = 0x00800000,
62 PowerSave = 0x01000000,
64 namespace o3tl
66 template<> struct typed_flags<PrintQueueFlags> : is_typed_flags<PrintQueueFlags, 0x01ffffff> {};
69 #define QUEUE_JOBS_DONTKNOW ((sal_uLong)0xFFFFFFFF)
72 enum class PrinterCapType
74 SupportDialog = 1,
75 Copies = 2,
76 CollateCopies = 3,
77 SetOrientation = 4,
78 SetPaperSize = 6,
79 SetPaper = 7,
80 Fax = 8,
81 PDF = 9,
82 ExternalDialog = 10,
83 UsePullModel = 12,
86 #endif // INCLUDED_VCL_PRNTYPES_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */