|
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_DataGraphicsDeviceMap |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_GRAPHICS_DEVICE_MAP_H__) |
|
26 #define __T_DATA_GRAPHICS_DEVICE_MAP_H__ |
|
27 |
|
28 // epoc32 includes |
|
29 #include <bitdev.h> |
|
30 |
|
31 // User Includes |
|
32 #include "DataWrapperBase.h" |
|
33 |
|
34 class CT_DataGraphicsDeviceMap : public CDataWrapperBase |
|
35 { |
|
36 public: |
|
37 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
38 |
|
39 protected: |
|
40 CT_DataGraphicsDeviceMap(); |
|
41 |
|
42 virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const = 0; |
|
43 |
|
44 void DoCmdGetNearestFontInTwipsL(const TDesC& aSection); |
|
45 void DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); |
|
46 void DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); |
|
47 void DoCmdHorizontalPixelsToTwips(const TDesC& aSection); |
|
48 void DoCmdHorizontalTwipsToPixels(const TDesC& aSection); |
|
49 void DoCmdPixelsToTwips(const TDesC& aSection); |
|
50 void DoCmdReleaseFontL(const TDesC& aSection); |
|
51 void DoCmdTwipsToPixels(const TDesC& aSection); |
|
52 void DoCmdVerticalPixelsToTwips(const TDesC& aSection); |
|
53 void DoCmdVerticalTwipsToPixels(const TDesC& aSection); |
|
54 |
|
55 private: |
|
56 TPoint iTwipsToPixelsPoint; |
|
57 TRect iTwipsToPixelsRect; |
|
58 TPoint iPixelsToTwipsPoint; |
|
59 TRect iPixelsToTwipsRect; |
|
60 }; |
|
61 |
|
62 #endif /* __T_DATA_GRAPHICS_DEVICE_MAP_H__ */ |