equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef EPSON_H |
|
17 #define EPSON_H |
|
18 |
|
19 #include <pdrstore.h> |
|
20 |
|
21 /** |
|
22 @internalComponent |
|
23 */ |
|
24 const TInt KEpsonNumScanLinesPerBand = 24; |
|
25 |
|
26 /** |
|
27 @internalComponent |
|
28 */ |
|
29 IMPORT_C CPrinterDevice* NewPrinterDeviceL(); |
|
30 |
|
31 /** |
|
32 @internalComponent |
|
33 */ |
|
34 enum TEpsonFlags |
|
35 { |
|
36 EEpsonLandscapeNotAvailable = 1 |
|
37 }; |
|
38 |
|
39 class CEpsonDevice : public CFbsDrvDevice |
|
40 /** |
|
41 @internalComponent |
|
42 */ |
|
43 { |
|
44 public: |
|
45 CEpsonDevice(); |
|
46 ~CEpsonDevice(); |
|
47 void CreateControlL(CPrinterPort* aPrinterPort); |
|
48 }; |
|
49 |
|
50 class CEpsonControl : public CFbsDrvControl |
|
51 /** |
|
52 @internalComponent |
|
53 */ |
|
54 { |
|
55 public: |
|
56 static CEpsonControl* NewL(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort, CStreamStore& aStore, TStreamId aResourcesStreamId); |
|
57 ~CEpsonControl(); |
|
58 |
|
59 // print control functions |
|
60 |
|
61 protected: |
|
62 CEpsonControl(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort); |
|
63 void ConstructL(CStreamStore& aStore, TStreamId aResourcesStreamId); |
|
64 |
|
65 void OutputBandL(); |
|
66 void MoveToL(const TPoint& aPoint); |
|
67 TBool TransformBuffer(); |
|
68 |
|
69 protected: |
|
70 TBuf8<KEpsonNumScanLinesPerBand >> 3> iScanLine; |
|
71 }; |
|
72 |
|
73 #endif |