xref: /aoo42x/main/vcl/inc/vcl/jobset.hxx (revision 0d63794c)
1*0d63794cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*0d63794cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*0d63794cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*0d63794cSAndrew Rist  * distributed with this work for additional information
6*0d63794cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*0d63794cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*0d63794cSAndrew Rist  * "License"); you may not use this file except in compliance
9*0d63794cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*0d63794cSAndrew Rist  *
11*0d63794cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*0d63794cSAndrew Rist  *
13*0d63794cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*0d63794cSAndrew Rist  * software distributed under the License is distributed on an
15*0d63794cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0d63794cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*0d63794cSAndrew Rist  * specific language governing permissions and limitations
18*0d63794cSAndrew Rist  * under the License.
19*0d63794cSAndrew Rist  *
20*0d63794cSAndrew Rist  *************************************************************/
21*0d63794cSAndrew Rist 
22*0d63794cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SV_JOBSET_HXX
25cdf0e10cSrcweir #define _SV_JOBSET_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <tools/string.hxx>
28cdf0e10cSrcweir #include <vcl/sv.h>
29cdf0e10cSrcweir #include <vcl/dllapi.h>
30cdf0e10cSrcweir #include <vcl/prntypes.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class SvStream;
33cdf0e10cSrcweir struct ImplJobSetup;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir // ------------
36cdf0e10cSrcweir // - JobSetup -
37cdf0e10cSrcweir // ------------
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class VCL_DLLPUBLIC JobSetup
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 	friend class Printer;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir private:
44cdf0e10cSrcweir 	ImplJobSetup*		mpData;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir //#if 0 // _SOLAR__PRIVATE
47cdf0e10cSrcweir public:
48cdf0e10cSrcweir 	SAL_DLLPRIVATE ImplJobSetup*		ImplGetData();
49cdf0e10cSrcweir 	SAL_DLLPRIVATE ImplJobSetup*		ImplGetConstData();
50cdf0e10cSrcweir 	SAL_DLLPRIVATE const ImplJobSetup*  ImplGetConstData() const;
51cdf0e10cSrcweir //#endif
52cdf0e10cSrcweir 
53cdf0e10cSrcweir public:
54cdf0e10cSrcweir 						JobSetup();
55cdf0e10cSrcweir 						JobSetup( const JobSetup& rJob );
56cdf0e10cSrcweir 						~JobSetup();
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	String				GetPrinterName() const;
59cdf0e10cSrcweir 	String				GetDriverName() const;
60cdf0e10cSrcweir 
61cdf0e10cSrcweir 	/*	Get/SetValue are used to read/store additional
62cdf0e10cSrcweir 	 *	Parameters in the job setup that may be used
63cdf0e10cSrcweir 	 *	by the printer driver. One possible use are phone
64cdf0e10cSrcweir 	 *	numbers for faxes (which disguise as printers)
65cdf0e10cSrcweir 	 */
66cdf0e10cSrcweir 	String				GetValue( const String& rKey ) const;
67cdf0e10cSrcweir 	void				SetValue( const String& rKey, const String& rValue );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	JobSetup&			operator=( const JobSetup& rJob );
70cdf0e10cSrcweir 
71cdf0e10cSrcweir 	sal_Bool				operator==( const JobSetup& rJobSetup ) const;
operator !=(const JobSetup & rJobSetup) const72cdf0e10cSrcweir 	sal_Bool				operator!=( const JobSetup& rJobSetup ) const
73cdf0e10cSrcweir 							{ return !(JobSetup::operator==( rJobSetup )); }
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 	friend VCL_DLLPUBLIC SvStream&	operator>>( SvStream& rIStream, JobSetup& rJobSetup );
76cdf0e10cSrcweir 	friend VCL_DLLPUBLIC SvStream&	operator<<( SvStream& rOStream, const JobSetup& rJobSetup );
77cdf0e10cSrcweir };
78cdf0e10cSrcweir 
79cdf0e10cSrcweir #endif	// _SV_JOBSET_HXX
80