common/tools/ats/smoketest/graphics/gdi/inc/T_DataTypefaceStore.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_DataTypefaceStore
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_TYPEFACE_STORE_H__)
       
    26 #define __T_DATA_TYPEFACE_STORE_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "DataWrapperBase.h"
       
    30 #include "T_DataFont.h"
       
    31 
       
    32 //	epoc32 includes
       
    33 #include <gdi.h>
       
    34 
       
    35 class CT_DataTypefaceStore : public CDataWrapperBase
       
    36 	{
       
    37 public:
       
    38 	virtual TBool			DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    39 	CT_DataTypefaceStore();
       
    40 
       
    41 protected:
       
    42 
       
    43 	virtual CTypefaceStore*	GetTypefaceStore() const = 0;
       
    44 	CT_DataFont*			GetFontDataObjectFromParameterL(const TDesC& aParameterName, const TDesC& aSection);
       
    45 	void					SetFontDataObjectIfPassedAsParameterL(CFont* font, const TDesC& aSection);
       
    46 
       
    47 private:
       
    48 	void	DoCmdGetNearestFontInTwipsL(const TDesC& aSection);
       
    49 	void	DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection);
       
    50 	void	DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection);
       
    51 	void	DoCmdNumTypefaces(const TDesC& aSection);
       
    52 	void	DoCmdTypefaceSupport(const TDesC& aSection);
       
    53 	void	DoCmdFontHeightInTwips(const TDesC& aSection);
       
    54 	void	DoCmdReleaseFontL(const TDesC& aSection);
       
    55 	};
       
    56 
       
    57 #endif /* __T_DATA_TYPEFACE_STORE_H__ */