1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_INC_JOBSET_H
21 #define INCLUDED_VCL_INC_JOBSET_H
23 #include <rtl/ustring.hxx>
24 #include <vcl/prntypes.hxx>
25 #include <unordered_map>
27 // see com.sun.star.portal.client.JobSetupSystem.idl:
28 #define JOBSETUP_SYSTEM_WINDOWS 1
29 #define JOBSETUP_SYSTEM_UNIX 3
30 #define JOBSETUP_SYSTEM_MAC 4
34 sal_uInt16 mnRefCount
; // RefCount (only independ data)
35 sal_uInt16 mnSystem
; // System - JOBSETUP_SYSTEM_xxxx
36 OUString maPrinterName
; // Printer-Name
37 OUString maDriver
; // Driver-Name
38 Orientation meOrientation
; // Orientation
39 DuplexMode meDuplexMode
; // Duplex
40 sal_uInt16 mnPaperBin
; // paper bin / in tray
41 Paper mePaperFormat
; // paper format
42 long mnPaperWidth
; // paper width (100th mm)
43 long mnPaperHeight
; // paper height (100th mm)
44 sal_uIntPtr mnDriverDataLen
; // length of system specific data
45 sal_uInt8
* mpDriverData
; // system specific data (will be streamed a byte block)
46 bool mbPapersizeFromSetup
;
47 std::unordered_map
< OUString
, OUString
, OUStringHash
> maValueMap
;
50 ImplJobSetup( const ImplJobSetup
& rJobSetup
);
54 // Papierformat wird wenn PAPER_USER im unabhaengigen Teil automatisch aus
55 // Papierbreite/hoehe berechnet
56 // Papierbreite/hoehe wird wenn 0 im unabhaengigen Teil automatisch aus
57 // Papierformat berechnet, wenn dieses ungleich PAPER_USER ist
59 #endif // INCLUDED_VCL_INC_JOBSET_H
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */