graphics/gdi/inc/T_DataGraphicsDevice.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_DataGraphicsDevice
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_GRAPHICS_DEVICE_H__)
       
    26 #define __T_DATA_GRAPHICS_DEVICE_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "T_DataGraphicsDeviceMap.h"
       
    30 
       
    31 class CT_DataGraphicsDevice : public CT_DataGraphicsDeviceMap
       
    32 	{
       
    33 public:
       
    34 	virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    35 
       
    36 protected:
       
    37 	CT_DataGraphicsDevice();
       
    38 
       
    39 	virtual CGraphicsDevice*	GetGraphicsDevice() const = 0;
       
    40 
       
    41 	void	DoCmdCreateContextL(const TDesC& aSection);
       
    42 	void	DoCmdDisplayMode(const TDesC& aSection);
       
    43 	void	DoCmdFontHeightInTwips(const TDesC& aSection);
       
    44 	void	DoCmdGetPaletteL(const TDesC& aSection);
       
    45 	void	DoCmdNumTypefaces(const TDesC& aSection);
       
    46 	void	DoCmdPaletteAttributes(const TDesC& aSection);
       
    47 	void	DoCmdSetPaletteL(const TDesC& aSection);
       
    48 	void	DoCmdSizeInPixels(const TDesC& aSection);
       
    49 	void	DoCmdSizeInTwips(const TDesC& aSection);
       
    50 	void	DoCmdTypefaceSupport(const TDesC& aSection);
       
    51 
       
    52 	//	helpers
       
    53 	inline TDisplayMode	GetDisplayMode() const;
       
    54 
       
    55 private:
       
    56 	TDisplayMode		iDisplayMode;
       
    57 	TSize				iSizeInPixels;
       
    58 	TSize				iSizeInTwips;
       
    59 	TTypefaceSupport	iTypefaceSupport;
       
    60 	};
       
    61 
       
    62 #include "T_DataGraphicsDevice.inl"
       
    63 
       
    64 #endif /* __T_DATA_GRAPHICS_DEVICE_H__ */