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_PRNTYPES_HXX 21 #define INCLUDED_VCL_PRNTYPES_HXX 22 23 #include <sal/types.h> 24 #include <o3tl/typed_flags_set.hxx> 25 26 27 // appears to be a copy of css::view::DuplexMode 28 enum class DuplexMode { Unknown, Off, LongEdge, ShortEdge }; 29 30 31 enum class Orientation { Portrait, Landscape }; 32 33 34 enum class PrintQueueFlags 35 { 36 NONE = 0x00000000, 37 Ready = 0x00000001, 38 Paused = 0x00000002, 39 PendingDeletion = 0x00000004, 40 Busy = 0x00000008, 41 Initializing = 0x00000010, 42 Waiting = 0x00000020, 43 WarmingUp = 0x00000040, 44 Processing = 0x00000080, 45 Printing = 0x00000100, 46 Offline = 0x00000200, 47 Error = 0x00000400, 48 StatusUnknown = 0x00000800, 49 PaperJam = 0x00001000, 50 PaperOut = 0x00002000, 51 ManualFeed = 0x00004000, 52 PaperProblem = 0x00008000, 53 IOActive = 0x00010000, 54 OutputBinFull = 0x00020000, 55 TonerLow = 0x00040000, 56 NoToner = 0x00080000, 57 PagePunt = 0x00100000, 58 UserIntervention = 0x00200000, 59 OutOfMemory = 0x00400000, 60 DoorOpen = 0x00800000, 61 PowerSave = 0x01000000, 62 }; 63 namespace o3tl 64 { 65 template<> struct typed_flags<PrintQueueFlags> : is_typed_flags<PrintQueueFlags, 0x01ffffff> {}; 66 } 67 68 constexpr inline sal_uInt32 QUEUE_JOBS_DONTKNOW = 0xFFFFFFFF; 69 70 71 enum class PrinterCapType 72 { 73 SupportDialog = 1, 74 Copies = 2, 75 CollateCopies = 3, 76 SetOrientation = 4, 77 SetPaperSize = 6, 78 SetPaper = 7, 79 Fax = 8, 80 PDF = 9, 81 ExternalDialog = 10, 82 UsePullModel = 12, 83 }; 84 85 enum class PrinterSetupMode 86 { 87 SingleJob = 0, 88 DocumentGlobal = 1 89 }; 90 91 #endif // INCLUDED_VCL_PRNTYPES_HXX 92 93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 94