|
1 /* |
|
2 * Copyright (c) 2007 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: LCT Text visual |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_ALFLCTTEXTVISUAL_H |
|
21 #define C_ALFLCTTEXTVISUAL_H |
|
22 |
|
23 class TAknsItemID; |
|
24 class TRgb; |
|
25 |
|
26 #include <alf/alftextvisual.h> |
|
27 |
|
28 class TAknLayoutHierarchyComponentHandle; |
|
29 |
|
30 /** |
|
31 * Text visual for text drawing. Supports setting style from LCT layout data. |
|
32 * |
|
33 * @lib alfclient.lib |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 class CAlfLCTTextVisual : public CAlfTextVisual |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Constructor, which gives ownership to the control. |
|
43 * |
|
44 * @param aOwnerControl The control |
|
45 * @param aParentLayout If given, the parent layout. |
|
46 * @return New instance. Ownership NOT transreffed (owned by control) |
|
47 */ |
|
48 IMPORT_C static CAlfLCTTextVisual* AddNewL(CAlfControl& aOwnerControl, |
|
49 CAlfLayout* aParentLayout = 0); |
|
50 |
|
51 /** |
|
52 * Constructor. |
|
53 */ |
|
54 IMPORT_C CAlfLCTTextVisual(); |
|
55 |
|
56 /** |
|
57 * Second-phase constructor. |
|
58 */ |
|
59 IMPORT_C void ConstructL(CAlfControl& aOwner); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 IMPORT_C ~CAlfLCTTextVisual(); |
|
65 |
|
66 /** |
|
67 * Sets the text pane layout of the text visual. Note that the actual |
|
68 * text pane position should be called by setting an anchor on the containing layout. |
|
69 * |
|
70 * @param aComponentHandle reference to the layout data that corresponds to the text visual. |
|
71 */ |
|
72 IMPORT_C void SetTextPane(TAknLayoutHierarchyComponentHandle& aComponentHandle); |
|
73 |
|
74 /** |
|
75 * From CAlfVisual |
|
76 * @see CAlfVisual |
|
77 */ |
|
78 IMPORT_C void RemoveAndDestroyAllD(); |
|
79 IMPORT_C void UpdateChildrenLayout(TInt aTransitionTime = 0); |
|
80 IMPORT_C CAlfVisual* FindTag(const TDesC8& aTag); |
|
81 |
|
82 protected: |
|
83 /** |
|
84 * From CAlfVisual |
|
85 * @see CAlfVisual |
|
86 */ |
|
87 IMPORT_C void DoRemoveAndDestroyAllD(); |
|
88 IMPORT_C void PropertyOwnerExtension(const TUid& aExtensionUid, TAny** aExtensionParams); |
|
89 |
|
90 |
|
91 private: |
|
92 |
|
93 struct TLCTTextVisualPrivateData; |
|
94 TLCTTextVisualPrivateData* iLCTTextVisualData; |
|
95 }; |
|
96 |
|
97 |
|
98 #endif // C_ALFLCTTEXTVISUAL_H |