1*2123d757SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2123d757SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2123d757SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2123d757SAndrew Rist * distributed with this work for additional information 6*2123d757SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2123d757SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2123d757SAndrew Rist * "License"); you may not use this file except in compliance 9*2123d757SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*2123d757SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*2123d757SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2123d757SAndrew Rist * software distributed under the License is distributed on an 15*2123d757SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2123d757SAndrew Rist * KIND, either express or implied. See the License for the 17*2123d757SAndrew Rist * specific language governing permissions and limitations 18*2123d757SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*2123d757SAndrew Rist *************************************************************/ 21*2123d757SAndrew Rist 22*2123d757SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SV_JOBSET_H 25cdf0e10cSrcweir #define _SV_JOBSET_H 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <tools/string.hxx> 28cdf0e10cSrcweir #include <vcl/sv.h> 29cdf0e10cSrcweir #include <vcl/prntypes.hxx> 30cdf0e10cSrcweir #include <hash_map> 31cdf0e10cSrcweir #include <rtl/ustring.hxx> 32cdf0e10cSrcweir 33cdf0e10cSrcweir // ------------------ 34cdf0e10cSrcweir // - JobSetup-Types - 35cdf0e10cSrcweir // ------------------ 36cdf0e10cSrcweir 37cdf0e10cSrcweir // see com.sun.star.portal.client.JobSetupSystem.idl: 38cdf0e10cSrcweir #define JOBSETUP_SYSTEM_DONTKNOW 0 39cdf0e10cSrcweir #define JOBSETUP_SYSTEM_WINDOWS 1 40cdf0e10cSrcweir #define JOBSETUP_SYSTEM_OS2 2 41cdf0e10cSrcweir #define JOBSETUP_SYSTEM_UNIX 3 42cdf0e10cSrcweir #define JOBSETUP_SYSTEM_MAC 4 43cdf0e10cSrcweir #define JOBSETUP_SYSTEM_JAVA 5 44cdf0e10cSrcweir 45cdf0e10cSrcweir // ---------------- 46cdf0e10cSrcweir // - ImplJobSetup - 47cdf0e10cSrcweir // ---------------- 48cdf0e10cSrcweir 49cdf0e10cSrcweir struct ImplJobSetup 50cdf0e10cSrcweir { 51cdf0e10cSrcweir sal_uInt16 mnRefCount; // RefCount (only independ data) 52cdf0e10cSrcweir sal_uInt16 mnSystem; // Sytem - JOBSETUP_SYSTEM_xxxx 53cdf0e10cSrcweir String maPrinterName; // Printer-Name 54cdf0e10cSrcweir String maDriver; // Driver-Name 55cdf0e10cSrcweir Orientation meOrientation; // Orientation 56cdf0e10cSrcweir DuplexMode meDuplexMode; // Duplex 57cdf0e10cSrcweir sal_uInt16 mnPaperBin; // paper bin / in tray 58cdf0e10cSrcweir Paper mePaperFormat; // paper format 59cdf0e10cSrcweir long mnPaperWidth; // paper width (100th mm) 60cdf0e10cSrcweir long mnPaperHeight; // paper height (100th mm) 61cdf0e10cSrcweir sal_uIntPtr mnDriverDataLen; // length of system specific data 62cdf0e10cSrcweir sal_uInt8* mpDriverData; // system specific data (will be streamed a byte block) 63cdf0e10cSrcweir ::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > maValueMap; 64cdf0e10cSrcweir 65cdf0e10cSrcweir ImplJobSetup(); 66cdf0e10cSrcweir ImplJobSetup( const ImplJobSetup& rJobSetup ); 67cdf0e10cSrcweir ~ImplJobSetup(); 68cdf0e10cSrcweir }; 69cdf0e10cSrcweir 70cdf0e10cSrcweir // Papierformat wird wenn PAPER_USER im unabhaengigen Teil automatisch aus 71cdf0e10cSrcweir // Papierbreite/hoehe berechnet 72cdf0e10cSrcweir // Papierbreite/hoehe wird wenn 0 im unabhaengigen Teil automatisch aus 73cdf0e10cSrcweir // Papierformat berechnet, wenn dieses ungleich PAPER_USER ist 74cdf0e10cSrcweir 75cdf0e10cSrcweir #endif // _SV_JOBSET_H 76