common/tools/ats/smoketest/graphics/fntstore/inc/T_DataBitmapFont.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_DataBitmapFont
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_BITMAP_FONT_H__)
       
    26 #define __T_DATA_BITMAP_FONT_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "T_DataFont.h"
       
    30 
       
    31 //	EPOC includes
       
    32 #include <e32std.h>
       
    33 #include <fntstore.h>
       
    34 
       
    35 class CT_DataBitmapFont : public CT_DataFont
       
    36 	{
       
    37 public:
       
    38 	static CT_DataBitmapFont* NewL();
       
    39 	
       
    40 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    41 	virtual TAny*	GetObject();
       
    42 	virtual void	SetObjectL(TAny* aObject);
       
    43 	virtual void	DisownObjectL();
       
    44 	
       
    45 protected:
       
    46 	CT_DataBitmapFont();
       
    47 	
       
    48 	virtual CFont*	GetFont() const;
       
    49 	
       
    50 private:	
       
    51 	void	DoCmdBitmapEncoding(const TDesC& aSection);
       
    52 	void	DoCmdCharacterMetrics(const TDesC& aSection);
       
    53 	void	DoCmdCharacterNeedsToBeRasterized(const TDesC& aSection);
       
    54 	void	DoCmdGetCharacterData(const TDesC& aSection);
       
    55 	void	DoCmdGetFaceAttrib(const TDesC& aSection);
       
    56 	void	DoCmdGetFontMetrics(const TDesC& aSection);
       
    57 	void	DoCmdGlyphBitmapType(const TDesC& aSection);
       
    58 	void	DoCmdHasCharacterL(const TDesC& aSection);
       
    59 	void	DoCmdIsOpenFont(const TDesC& aSection);
       
    60 	void	DoCmdOpenFont(const TDesC& aSection);
       
    61 	void	DoCmdRasterize(const TDesC& aSection);
       
    62 	void	DoCmdUniqueFontId(const TDesC& aSection);
       
    63 	
       
    64 	static TBool GetCharacterMetricsFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TCharacterMetrics& aResult);
       
    65 	static TBool GetOpenFontCharMetricsFromConfig(CDataWrapperBase& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontCharMetrics& aResult);
       
    66 	static TBool GetOpenFontFaceAttribFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontFaceAttrib& aResult);
       
    67 	static TBool GetOpenFontMetricsFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontMetrics& aResult);
       
    68 	
       
    69 private:
       
    70     CBitmapFont*	iBitmapFont;
       
    71 	};
       
    72 
       
    73 #endif /* __T_DATA_BITMAP_FONT_H__ */