1.1 --- a/epoc32/include/grdprint.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,64 +0,0 @@
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 -#if !defined(__GRDPRINT_H__)
1.20 -#define __GRDPRINT_H__
1.21 -
1.22 -#if !defined(__E32STD_H__)
1.23 -#include <e32std.h>
1.24 -#endif
1.25 -#if !defined(__E32BASE_H__)
1.26 -#include <e32base.h>
1.27 -#endif
1.28 -#if !defined(__GRDSTD_H__)
1.29 -#include <grdstd.h>
1.30 -#endif
1.31 -
1.32 -
1.33 -
1.34 -class CGridPrinter : public CBase, public MPageRegionPrinter
1.35 -/** Handles printing and print preview functionality for grid.
1.36 -@publishedAll
1.37 -@released */
1.38 - {
1.39 -public:
1.40 - IMPORT_C static CGridPrinter* NewL(CGridLay* aGridLay,CGridLabelImg* aPrintLabelImg,
1.41 - CGridCellImg* aPrintCellImg,TZoomFactor* aZoomFactor);
1.42 - IMPORT_C virtual ~CGridPrinter();
1.43 - inline void SetRealPrintingDeviceMap(const MGraphicsDeviceMap* aGraphicsDeviceMap);
1.44 - IMPORT_C void SetTopLeftMargin(const TPoint& aTlMarginInTwips);
1.45 - IMPORT_C void SetPageSizeInTwipsL(const TSize& aSizeInTwips);
1.46 - IMPORT_C void PaginateL();
1.47 - inline CGridLay& GridLay();
1.48 -public: // from MPageRegionPrinter
1.49 - IMPORT_C virtual void PrintBandL(CGraphicsDevice* aDevice,TInt aPageNo,const TBandAttributes& aBandInPixels);
1.50 -private:
1.51 - CGridPrinter(CGridLabelImg* aPrintLabelImg,CGridCellImg* aPrintCellImg,TZoomFactor* aZoomFactor);
1.52 - void ConstructL(CGridLay* aGridLay);
1.53 - void SetGdMapAndPushLabelImgLC();
1.54 -private:
1.55 - CGridLay* iGridLay;
1.56 - CGridImg* iGridImg;
1.57 - CGridLabelImg* iPrintLabelImg;
1.58 - CGridCellImg* iPrintCellImg;
1.59 - TZoomFactor* iZoomFactor;
1.60 - const MGraphicsDeviceMap* iGraphicsDeviceMap;
1.61 - TPoint iTlMarginInTwips;
1.62 - TRect iPrintablePage;
1.63 - TInt iScaleFactor;
1.64 - };
1.65 -
1.66 -#include <grdprint.inl>
1.67 -#endif