commonuisupport/grid/tef/TIMG0.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-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 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code  
       
    19 */
       
    20 
       
    21 
       
    22 #if !defined(__TIMG0_H__)
       
    23 #define __TIMG0_H__
       
    24 
       
    25 #if !defined(__E32STD_H__)
       
    26 #include <e32std.h>
       
    27 #endif
       
    28 #if !defined(__GRDSTD_H__)
       
    29 #include <grdstd.h>
       
    30 #endif
       
    31 
       
    32 
       
    33 #define KRgbGridLabels	TRgb(170,170,170)
       
    34 
       
    35 //! A CGridLabelImg derived class.\n
       
    36 /**
       
    37   Class used to draw grid cell's label for the grid in TGrid0 Step.\n
       
    38 */
       
    39 
       
    40 class CSheetLabelImg : public CGridLabelImg
       
    41 	{
       
    42 public:
       
    43 	enum {ESideLabelMarginWidthInTwips=120};
       
    44 public:
       
    45 	CSheetLabelImg(const TFontSpec& aFontSpec,MGraphicsDeviceMap* aGraphicsDeviceMap);
       
    46 private:
       
    47 	virtual void DrawRowLabelL(CGraphicsContext* aGc,TInt aRow,const TRect &aRect) const;
       
    48 	virtual void DrawColLabelL(CGraphicsContext* aGc,TInt aCol,const TRect &aRect) const;
       
    49 	virtual TInt SideLabelWidthInPixels(TInt aStartRow,TInt aEndRow) const;
       
    50 	virtual void DrawTopLeftLabelL(CGraphicsContext* aGc,const TRect& aRect) const;
       
    51 	virtual void DrawRowCursorL(CGraphicsContext* aGc,const TRect& aRect) const;
       
    52 	void DrawText(CGraphicsContext* aGc,const TDesC& aDes,const TRect& aRect) const;
       
    53 private:
       
    54 	};
       
    55 
       
    56 class CGlobalTextImg;
       
    57 class CFont;
       
    58 
       
    59 //! A CGridCellImg derived class.\n
       
    60 /**
       
    61   Class used to draw the grid cell used for the grid in TGrid0 Step.\n
       
    62 */
       
    63 
       
    64 class CSheetCellImg : public CGridCellImg
       
    65 	{
       
    66 public:
       
    67 	enum {ELeftMarginWidth = 2};
       
    68 public:
       
    69 	CSheetCellImg();
       
    70 	virtual void DrawL(CGraphicsContext* aGc,const TCellRef &aCell,const TRect &aRect,
       
    71 		const TRect& aClipRect) const;
       
    72 private:
       
    73 	CSheetCellImg& operator=(const CSheetCellImg&);//not implemented
       
    74 	};
       
    75 
       
    76 
       
    77 #endif
       
    78