graphicsapitest/graphicssvs/fntstore/inc/T_DataOpenFontRasterizerContext.h
changeset 103 2717213c588a
parent 98 bf7481649c98
child 116 171fae344dd4
child 121 d72fc2aace31
child 187 9f66f99ee56f
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-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_DataOpenFontRasterizerContext
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__)
       
    26 #define __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "DataWrapperBase.h"
       
    30 
       
    31 //	EPOC includes
       
    32 #include <e32std.h>
       
    33 #include <openfont.h>
       
    34 
       
    35 class CT_DataOpenFontRasterizerContext : public CDataWrapperBase
       
    36 	{
       
    37 public:
       
    38 	CT_DataOpenFontRasterizerContext();
       
    39 	~CT_DataOpenFontRasterizerContext();
       
    40 	
       
    41 	static	CT_DataOpenFontRasterizerContext*	NewL();
       
    42 
       
    43 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    44 	virtual TAny*	GetObject();
       
    45 	virtual void	SetObjectL(TAny* aObject);
       
    46 	virtual void	DisownObjectL();
       
    47 	void			DestroyData();
       
    48 
       
    49 private:
       
    50 	void	ConstructL();
       
    51 
       
    52 	void	DoCmdNew();
       
    53 	void	DoCmdEndGlyph();
       
    54 	void	DoCmdStartGlyphL(const TDesC& aSection);
       
    55 	void	DoCmdWriteGlyphBit(const TDesC& aSection);
       
    56 	void	DoCmdWriteGlyphByte(const TDesC& aSection);
       
    57 	void	DoCmdDestructor();
       
    58 
       
    59 private:
       
    60 	/** COpenFontRasterizerContext class instance to work with*/
       
    61     COpenFontRasterizerContext*	iRasterizerContext;
       
    62 	};
       
    63 
       
    64 #endif /* __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__ */