common/tools/ats/smoketest/graphics/gdi/inc/T_DataFont.h
changeset 833 6ffc235847d0
child 872 17498133d9ad
equal deleted inserted replaced
832:9b2bf01d4d36 833:6ffc235847d0
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_DataFont
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_FONT_H__)
       
    26 #define __T_DATA_FONT_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "DataWrapperBase.h"
       
    30 
       
    31 //	epoc32 includes
       
    32 #include <gdi.h>
       
    33 #include <openfont.h>
       
    34 
       
    35 class CT_DataFont : public CDataWrapperBase
       
    36 	{
       
    37 public:
       
    38 	CT_DataFont();
       
    39 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    40 
       
    41 	virtual CFont*	GetFont() const = 0;
       
    42 
       
    43 private:
       
    44 	void			DoCmdTextCount(const TDesC& aSection);
       
    45 	void			DoCmdTextWidthInPixels(const TDesC& aSection);
       
    46 	void			DoCmdCharWidthInPixels(const TDesC& aSection);
       
    47 	void			DoCmdFontCapitalAscent(const TDesC& aSection);
       
    48 	void			DoCmdFontMaxAscent(const TDesC& aSection);
       
    49 	void			DoCmdFontStandardDescent(const TDesC& aSection);
       
    50 	void			DoCmdFontMaxDescent(const TDesC& aSection);
       
    51 	void			DoCmdFontLineGap(const TDesC& aSection);
       
    52 	void			DoCmdFontMaxHeight(const TDesC& aSection);
       
    53 	void			DoCmdTypeUid(const TDesC& aSection);
       
    54 	void			DoCmdHeightInPixels(const TDesC& aSection);
       
    55 	void			DoCmdAscentInPixels(const TDesC& aSection);
       
    56 	void			DoCmdDescentInPixels(const TDesC& aSection);
       
    57 	void			DoCmdMaxCharWidthInPixels(const TDesC& aSection);
       
    58 	void			DoCmdMaxNormalCharWidthInPixels(const TDesC& aSection);
       
    59 	void			DoCmdFontSpecInTwips(const TDesC& aSection);
       
    60 	void			DoCmdWidthZeroInPixels(const TDesC& aSection);
       
    61 	void			DoCmdBaselineOffsetInPixels(const TDesC& aSection);
       
    62 	void			DoCmdGetCharacterData(const TDesC& aSection);
       
    63 	void			DoCmdExtendedFunction(const TDesC& aSection);
       
    64 	void			DoCmdMeasureTextL(const TDesC& aSection);
       
    65 
       
    66 	//	Helpers
       
    67 	static TBool	GetMeasureTextInputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextInput*& aMeasureTextInput);
       
    68 	static TBool	GetMeasureTextOutputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextOutput*& aMeasureTextOutput);
       
    69 	};
       
    70 
       
    71 #endif /* __T_DATA_FONT_H__ */