Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
24 const TInt KCanonNumScanLinesPerBand = 24;
25 const TInt KCanonBytesPerDotColumn = 3;
32 IMPORT_C CPrinterDevice* NewPrinterDeviceL();
39 ECanonLandscapeNotAvailable = 1
42 class CCanonDevice : public CFbsDrvDevice
50 TInt CreateContext(CGraphicsContext*& aGC);
51 void CreateControlL(CPrinterPort* aPrinterPort);
54 class CCanonControl : public CFbsDrvControl
60 static CCanonControl* NewL(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort, CStreamStore& aStore, TStreamId aResourcesStreamId);
62 // print control functions
64 CCanonControl(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort);
65 void ConstructL(CStreamStore& aStore, TStreamId aResourcesStreamId);
68 void MoveToL(const TPoint& aPoint);
69 void MoveByL(const TPoint& aPoint);
70 TBool TransformBuffer();
73 TBuf8<KCanonNumScanLinesPerBand >> 3> iScanLine;