printingservices/printerdrivers/general/GENERAL.H
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 GENERAL_H
       
    17 #define GENERAL_H
       
    18 
       
    19 #include <pdrstore.h>
       
    20 
       
    21 /**
       
    22 @internalComponent
       
    23 */
       
    24 IMPORT_C CPrinterDevice* NewPrinterDeviceL();
       
    25 
       
    26 /**
       
    27 @internalComponent
       
    28 */
       
    29 enum TGeneralFlags
       
    30 	{
       
    31 	EGeneralLandscapeNotAvailable = 1
       
    32 	};
       
    33 
       
    34 class CGeneralPrinterDevice : public CPdrDevice
       
    35 /**
       
    36 @internalComponent
       
    37 */
       
    38 	{
       
    39 public:
       
    40 	CGeneralPrinterDevice();
       
    41 	~CGeneralPrinterDevice();
       
    42     TInt CreateContext(CGraphicsContext*& aGC);
       
    43 	void CreateControlL(CPrinterPort* aPrinterPort);
       
    44 protected:
       
    45  	TSize KPixelSizeInTwips() const;
       
    46 	};
       
    47 
       
    48 class CGeneralPrinterControl : public CPdrControl
       
    49 /**
       
    50 @internalComponent
       
    51 */
       
    52 	{
       
    53 public:
       
    54 	static CGeneralPrinterControl* NewL(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort, CStreamStore& aStore, TStreamId aResourcesStreamId);
       
    55 	~CGeneralPrinterControl();
       
    56 
       
    57 protected:
       
    58 	CGeneralPrinterControl(CPdrDevice* aPdrDevice, CPrinterPort* aPrinterPort);
       
    59  	void ConstructL(CStreamStore& aStore, TStreamId aResourcesStreamId);
       
    60 
       
    61 	void OutputTextL(const TPoint& aPoint, TInt aWidthInPixels, const TTextFormat& aTextFormat, const TDesC8& aString); 
       
    62 	void OutputBandL();
       
    63 	}; 
       
    64 
       
    65 #endif