os/graphics/printingservices/printerdriversupport/tps/PRINTDRV.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef PRINTDRV_H
    17 #define PRINTDRV_H
    18 
    19 #include <pdrstore.h>
    20 #include <pdrport.h>
    21 
    22 IMPORT_C CPrinterDevice* NewPrinterDeviceL();
    23 
    24 class CPrintDrvDevice : public CPdrDevice
    25 	{
    26 public:
    27 	CPrintDrvDevice();
    28 	~CPrintDrvDevice();
    29 	TInt CreateContext(CGraphicsContext*& aGc);
    30 	void CreateControlL(CPrinterPort* aPrinterPort);
    31 	};
    32 
    33 class CPrintDrvControl : public CPdrControl
    34 	{
    35 public:
    36 	static CPrintDrvControl* NewL(CPdrDevice* aPdrDevice,CPrinterPort* aPrinterPort,CStreamStore& aStore,TStreamId aResourcesStreamId);
    37 	~CPrintDrvControl();
    38 
    39 protected:
    40  	CPrintDrvControl(CPdrDevice* aPdrDevice,CPrinterPort* aPrinterPort);
    41  	void ConstructL(CStreamStore& aStore,TStreamId aResourcesStreamId);
    42 
    43 	void OutputTextL(const TPoint& aPoint,TInt aWidthInPixels,const TTextFormat& aTextFormat,const TDesC8& aString); 
    44 	void OutputBandL();
    45 
    46 private:
    47 	HBufC8* iScanLine;
    48 	}; 
    49 
    50 #endif