graphics/gdi/inc/T_DataDrawTextParam.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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_DataDrawTextParam
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_DRAW_TEXT_PARAM_H__)
       
    26 #define __T_DATA_DRAW_TEXT_PARAM_H__
       
    27 
       
    28 //	epoc32 includes
       
    29 #include <gdi.h>
       
    30 
       
    31 //	User Includes
       
    32 #include "DataWrapperBase.h"
       
    33 
       
    34 class CT_DataDrawTextParam : public CDataWrapperBase
       
    35 	{
       
    36 public:
       
    37 	CT_DataDrawTextParam();
       
    38 	~CT_DataDrawTextParam();
       
    39 
       
    40 	virtual TAny*	GetObject();
       
    41 	virtual void	SetObjectL(TAny* aAny);
       
    42 	virtual void	DisownObjectL();
       
    43 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    44 
       
    45 protected:
       
    46 	virtual CGraphicsContext::TDrawTextParam*	GetDrawTextParam() const;
       
    47 
       
    48 	void	DoCmd_new();
       
    49 	void	DoCmd_destructor();
       
    50 	void	DoCmd_iDirection(const TDesC& aSection);
       
    51 	void	DoCmd_iCharJustNum(const TDesC& aSection);
       
    52 	void	DoCmd_iCharJustExcess(const TDesC& aSection);
       
    53 	void	DoCmd_iWordJustNum(const TDesC& aSection);
       
    54 	void	DoCmd_iWordJustExcess(const TDesC& aSection);
       
    55 
       
    56 private:
       
    57 	void	DestroyData();
       
    58 
       
    59 private:
       
    60 	CGraphicsContext::TDrawTextParam*	iDrawTextParam;
       
    61 	};
       
    62 
       
    63 #endif /* __T_DATA_DRAW_TEXT_PARAM_H__ */