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 IMPORT_C CPrinterDevice* NewPrinterDeviceL();
31 EGeneralLandscapeNotAvailable = 1
34 class CGeneralPrinterDevice : public CPdrDevice
40 CGeneralPrinterDevice();
41 ~CGeneralPrinterDevice();
42 TInt CreateContext(CGraphicsContext*& aGC);
43 void CreateControlL(CPrinterPort* aPrinterPort);
45 TSize KPixelSizeInTwips() const;
48 class CGeneralPrinterControl : public CPdrControl
54 static CGeneralPrinterControl* NewL(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort, CStreamStore& aStore, TStreamId aResourcesStreamId);
55 ~CGeneralPrinterControl();
58 CGeneralPrinterControl(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort);
59 void ConstructL(CStreamStore& aStore, TStreamId aResourcesStreamId);
61 void OutputTextL(const TPoint& aPoint, TInt aWidthInPixels, const TTextFormat& aTextFormat, const TDesC8& aString);