|
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_DataFontStore |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_FONTSTORE_H__) |
|
26 #define __T_DATA_FONTSTORE_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "DataWrapperBase.h" |
|
30 |
|
31 // EPOC includes |
|
32 #include <e32std.h> |
|
33 #include <fntstore.h> |
|
34 #include "T_DataTypefaceStore.h" |
|
35 |
|
36 class CT_DataFontStore : public CT_DataTypefaceStore |
|
37 { |
|
38 public: |
|
39 |
|
40 ~CT_DataFontStore(); |
|
41 static CT_DataFontStore* 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 virtual CTypefaceStore* GetTypefaceStore() const; |
|
49 |
|
50 protected: |
|
51 CT_DataFontStore(); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 void DoCmdNewL(const TDesC& aSection); |
|
56 void DoCmdDestructor(); |
|
57 |
|
58 void DoCmdAddFileL(const TDesC& aSection); |
|
59 void DoCmdRemoveFile(const TDesC& aSection); |
|
60 void DoCmdDefaultBitmapType(const TDesC& aSection); |
|
61 void DoCmdDeleteSessionCache(const TDesC& aSection); |
|
62 void DoCmdFontHeightInPixels(const TDesC& aSection); |
|
63 void DoCmdFontHeightInTwips(const TDesC& aSection); |
|
64 void DoCmdGetFontByIdL(const TDesC& aSection); |
|
65 void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); |
|
66 TBool DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); |
|
67 void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); |
|
68 TBool DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); |
|
69 void DoCmdInstallRasterizerL(const TDesC& aSection); |
|
70 void DoCmdInstallShaperFactoryL(const TDesC& aSection); |
|
71 void DoCmdNumTypefaces(const TDesC& aSection); |
|
72 void DoCmdSetDefaultBitmapType(const TDesC& aSection); |
|
73 void DoCmdTypefaceSupport(const TDesC& aSection); |
|
74 |
|
75 private: |
|
76 TBool FindIdByName(const TDesC&, TInt&); |
|
77 |
|
78 private: |
|
79 /** CLinkedTypefaceSpecification class instance to work with*/ |
|
80 CFontStore* iFntStore; |
|
81 RArray<TPtrC> iFile; |
|
82 RArray<TInt> iId; |
|
83 }; |
|
84 |
|
85 #endif /* __T_DATA_FONTSTORE_H__ */ |