1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/printingservices/printerdrivers/epson/EPSON.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef EPSON_H
1.20 +#define EPSON_H
1.21 +
1.22 +#include <pdrstore.h>
1.23 +
1.24 +/**
1.25 +@internalComponent
1.26 +*/
1.27 +const TInt KEpsonNumScanLinesPerBand = 24;
1.28 +
1.29 +/**
1.30 +@internalComponent
1.31 +*/
1.32 +IMPORT_C CPrinterDevice* NewPrinterDeviceL();
1.33 +
1.34 +/**
1.35 +@internalComponent
1.36 +*/
1.37 +enum TEpsonFlags
1.38 + {
1.39 + EEpsonLandscapeNotAvailable = 1
1.40 + };
1.41 +
1.42 +class CEpsonDevice : public CFbsDrvDevice
1.43 +/**
1.44 +@internalComponent
1.45 +*/
1.46 + {
1.47 +public:
1.48 + CEpsonDevice();
1.49 + ~CEpsonDevice();
1.50 + void CreateControlL(CPrinterPort* aPrinterPort);
1.51 + };
1.52 +
1.53 +class CEpsonControl : public CFbsDrvControl
1.54 +/**
1.55 +@internalComponent
1.56 +*/
1.57 + {
1.58 +public:
1.59 + static CEpsonControl* NewL(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort, CStreamStore& aStore, TStreamId aResourcesStreamId);
1.60 + ~CEpsonControl();
1.61 +
1.62 + // print control functions
1.63 +
1.64 +protected:
1.65 + CEpsonControl(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort);
1.66 + void ConstructL(CStreamStore& aStore, TStreamId aResourcesStreamId);
1.67 +
1.68 + void OutputBandL();
1.69 + void MoveToL(const TPoint& aPoint);
1.70 + TBool TransformBuffer();
1.71 +
1.72 +protected:
1.73 + TBuf8<KEpsonNumScanLinesPerBand >> 3> iScanLine;
1.74 + };
1.75 +
1.76 +#endif