|
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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-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_DataMeasureTextOutput |
|
23 */ |
|
24 |
|
25 #if (!defined __T_DATA_MEASURE_TEXT_OUTPUT_H__) |
|
26 #define __T_DATA_MEASURE_TEXT_OUTPUT_H__ |
|
27 |
|
28 // User Includes |
|
29 #include "DataWrapperBase.h" |
|
30 // EPOC includes |
|
31 #include <e32std.h> |
|
32 #include <gdi.h> |
|
33 |
|
34 class CT_DataMeasureTextOutput : public CDataWrapperBase |
|
35 { |
|
36 public: |
|
37 |
|
38 static CT_DataMeasureTextOutput* NewL(); |
|
39 |
|
40 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
41 |
|
42 |
|
43 ~CT_DataMeasureTextOutput(); |
|
44 |
|
45 virtual TAny* GetObject(); |
|
46 |
|
47 protected: |
|
48 CT_DataMeasureTextOutput(); |
|
49 void ConstructL(); |
|
50 |
|
51 private: |
|
52 void DestroyData(); |
|
53 void DoCmdNew(); |
|
54 void DoCmdSetBounds(const TDesC& aSection); |
|
55 void DoCmdSetChars(const TDesC& aSection); |
|
56 void DoCmdSetGlyphs(const TDesC& aSection); |
|
57 void DoCmdSetGroups(const TDesC& aSection); |
|
58 void DoCmdSetMaxGlyphSize(const TDesC& aSection); |
|
59 void DoCmdSetSpaces(const TDesC& aSection); |
|
60 |
|
61 static TBool CT_DataMeasureTextOutput::GetValueFromConfig(CDataWrapper& iInputStep, const TDesC& aSection, TInt& aValue); |
|
62 |
|
63 private: |
|
64 /** TMeasureTextOutput class instance to work with*/ |
|
65 CFont::TMeasureTextOutput* iMeasureTextOutput; |
|
66 }; |
|
67 |
|
68 #endif /* __T_DATA_MEASURE_TEXT_OUTPUT_H__ */ |