epoc32/include/mw/grdprint.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 #if !defined(__GRDPRINT_H__)
    17 #define __GRDPRINT_H__
    18 
    19 #if !defined(__E32STD_H__)
    20 #include <e32std.h>
    21 #endif
    22 #if !defined(__E32BASE_H__)
    23 #include <e32base.h>
    24 #endif
    25 #if !defined(__GRDSTD_H__)
    26 #include <grdstd.h>
    27 #endif
    28 
    29 
    30 
    31 class CGridPrinter : public CBase, public MPageRegionPrinter
    32 /** Handles printing and print preview functionality for grid.
    33 @publishedAll 
    34 @released */
    35 	{
    36 public:
    37 	IMPORT_C static CGridPrinter* NewL(CGridLay* aGridLay,CGridLabelImg* aPrintLabelImg,
    38 		CGridCellImg* aPrintCellImg,TZoomFactor* aZoomFactor);
    39 	IMPORT_C virtual ~CGridPrinter();
    40 	inline void SetRealPrintingDeviceMap(const MGraphicsDeviceMap* aGraphicsDeviceMap);
    41 	IMPORT_C void SetTopLeftMargin(const TPoint& aTlMarginInTwips);
    42 	IMPORT_C void SetPageSizeInTwipsL(const TSize& aSizeInTwips);
    43 	IMPORT_C void PaginateL();
    44 	inline CGridLay& GridLay();
    45 public:	// from MPageRegionPrinter
    46 	IMPORT_C virtual void PrintBandL(CGraphicsDevice* aDevice,TInt aPageNo,const TBandAttributes& aBandInPixels);
    47 private:
    48 	CGridPrinter(CGridLabelImg* aPrintLabelImg,CGridCellImg* aPrintCellImg,TZoomFactor* aZoomFactor);
    49 	void ConstructL(CGridLay* aGridLay);
    50 	void SetGdMapAndPushLabelImgLC();
    51 private:
    52 	CGridLay* iGridLay;
    53 	CGridImg* iGridImg;
    54 	CGridLabelImg* iPrintLabelImg;
    55 	CGridCellImg* iPrintCellImg;
    56 	TZoomFactor* iZoomFactor;
    57 	const MGraphicsDeviceMap* iGraphicsDeviceMap;
    58 	TPoint iTlMarginInTwips;
    59 	TRect iPrintablePage;
    60 	TInt iScaleFactor;
    61 	};
    62 
    63 #include <grdprint.inl>
    64 #endif
    65 
    66