|
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_DataFbsFont |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_FBS_FONT_H__) |
|
26 #define __T_DATA_FBS_FONT_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "T_DataFont.h" |
|
30 |
|
31 // EPOC includes |
|
32 #include <e32std.h> |
|
33 #include <fbs.h> |
|
34 |
|
35 |
|
36 class CT_DataFbsFont : public CT_DataFont |
|
37 { |
|
38 public: |
|
39 static CT_DataFbsFont* NewL(); |
|
40 |
|
41 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
42 |
|
43 virtual void SetObjectL(TAny* aObject); |
|
44 virtual TAny* GetObject(); |
|
45 virtual void DisownObjectL(); |
|
46 |
|
47 protected: |
|
48 CT_DataFbsFont(); |
|
49 |
|
50 virtual CFont* GetFont() const; |
|
51 |
|
52 private: |
|
53 void DoCmdGetFontMetrics(const TDesC& aSection); |
|
54 void DoCmdTextWidthInPixelsWithCharWidth(const TDesC& aSection); |
|
55 void DoCmdHandle(); |
|
56 void DoCmdCharacterMetrics(const TDesC& aSection); |
|
57 void DoCmdRawTextWidthInPixels(const TDesC& aSection); |
|
58 void DoCmdGetFaceAttrib(const TDesC& aSection); |
|
59 void DoCmdIsOpenFont(const TDesC& aSection); |
|
60 void DoCmdHasCharacter(const TDesC& aSection); |
|
61 |
|
62 private: |
|
63 /** CFbsFont class instance that is tested, not owned by the data-object */ |
|
64 CFbsFont* iFbsFont; |
|
65 }; |
|
66 |
|
67 #endif /* __T_DATA_FBS_FONT_H__ */ |