|
1 /* |
|
2 * Copyright (c) 2007-2008 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: layout info interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MIMCVAPPLAYOUTINFO_H |
|
20 #define MIMCVAPPLAYOUTINFO_H |
|
21 |
|
22 //INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CFont; |
|
27 class TAknWindowLineLayout; |
|
28 class TAknTextLineLayout; |
|
29 class TAknMultiLineTextLayout; |
|
30 |
|
31 class TChatListBoxLayout |
|
32 { |
|
33 |
|
34 public: |
|
35 enum TLayout |
|
36 { |
|
37 EWithEditor2Lines = 0, |
|
38 EWithEditor, |
|
39 EWithoutEditor |
|
40 }; |
|
41 }; |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * Interface for Layout and render info for Chat Listbox's item drawer and view |
|
46 * |
|
47 * @since 5.0 |
|
48 */ |
|
49 class MIMCVAppLayoutInfo |
|
50 { |
|
51 public: // Interface |
|
52 |
|
53 /** |
|
54 * MainPaneRect |
|
55 * rect of main pane. |
|
56 */ |
|
57 virtual TRect MainPaneRect() =0; |
|
58 /** |
|
59 * im_reading_pane |
|
60 * im reading pande |
|
61 * param@ aIndex_h, index of reading pane |
|
62 */ |
|
63 virtual TAknWindowLineLayout im_reading_pane(TInt aIndex_H) =0; |
|
64 /** |
|
65 * im_reading_field |
|
66 * im reading pane. |
|
67 * param@ aIndex_t, index of reading field |
|
68 */ |
|
69 virtual TAknWindowLineLayout im_reading_field(TInt aIndex_t) =0; |
|
70 /** |
|
71 * IM_text_elements |
|
72 * im text elements |
|
73 * @param aLineIndex, index of text element |
|
74 */ |
|
75 virtual TAknWindowLineLayout IM_text_elements(TInt aLineIndex) =0; |
|
76 /** |
|
77 * IM_reading_pane_texts_Line_1 |
|
78 * im reading pane text line 1 |
|
79 * @param aCommon1, command to excute |
|
80 */ |
|
81 virtual TAknTextLineLayout IM_reading_pane_texts_Line_1( |
|
82 TInt aCommon1) =0; |
|
83 /** |
|
84 * IM_reading_pane_texts_Line_2 |
|
85 * imreading pane text line2 |
|
86 */ |
|
87 virtual TAknTextLineLayout IM_reading_pane_texts_Line_2() =0; |
|
88 |
|
89 /** |
|
90 * im_writing_pane |
|
91 * im writing pane |
|
92 * @param aCommon1, command to excute |
|
93 */ |
|
94 virtual TAknWindowLineLayout im_writing_pane(TInt aCommon1) =0; |
|
95 /** |
|
96 * IM_writing_field_elements_Line_1 |
|
97 * im writing field element line 1 |
|
98 * @param aIndex_H, index of writing element |
|
99 */ |
|
100 virtual TAknWindowLineLayout IM_writing_field_elements_Line_1( |
|
101 TInt aIndex_H) =0; |
|
102 /** |
|
103 * IM_writing_field_elements_Line_2 |
|
104 * im writing fields elements line 2 |
|
105 */ |
|
106 virtual TAknWindowLineLayout IM_writing_field_elements_Line_2() =0; |
|
107 /** |
|
108 * IM_writing_field_elements_Line_3 |
|
109 * im writing fields elements line 3 |
|
110 * @param aIndex_H, index of writing field element |
|
111 */ |
|
112 virtual TAknWindowLineLayout IM_writing_field_elements_Line_3( |
|
113 TInt aIndex_H) =0; |
|
114 /** |
|
115 * Multiline_IM_writing_pane_texts_Line_1 |
|
116 * im writing pane text line 1 |
|
117 * @param aNumberOfLinesShown, no of line to shown in the pane |
|
118 */ |
|
119 virtual TAknMultiLineTextLayout Multiline_IM_writing_pane_texts_Line_1( |
|
120 TInt aNumberOfLinesShown) =0; |
|
121 /** |
|
122 * IM_navi_pane_texts_Line_1 |
|
123 * im navi pane text line 1 |
|
124 * @param aIndex_C, index of text line |
|
125 * @param aIndex_W, index of pane |
|
126 */ |
|
127 virtual TAknTextLineLayout IM_navi_pane_texts_Line_1( |
|
128 TInt aIndex_C, TInt aIndex_W) =0; |
|
129 /** |
|
130 * DPLayout |
|
131 * dp layout |
|
132 * @param aStr, string to be draw |
|
133 * @param aLayout, layout |
|
134 */ |
|
135 virtual void DPLayout( const TDesC& aStr, |
|
136 const TAknTextLineLayout aLayout ) =0; |
|
137 /** |
|
138 * DPLayout |
|
139 * rect of main pane. |
|
140 * @param aStr, string to be draw |
|
141 * @param aLayout, layout |
|
142 */ |
|
143 virtual void DPLayout( const TDesC& aStr, |
|
144 const TAknWindowLineLayout aLayout ) =0; |
|
145 /** |
|
146 * DPRect |
|
147 * dp rect |
|
148 * @param aStr, string to be draw |
|
149 * @param aRect, rect for the layout |
|
150 */ |
|
151 virtual void DPRect( const TDesC& aStr, const TRect& aRect ) =0; |
|
152 |
|
153 /** |
|
154 * SetLayoutID |
|
155 * dp rect |
|
156 * @param aLayout, to be to be draw |
|
157 */ |
|
158 virtual void SetLayoutID( TChatListBoxLayout::TLayout aLayout ) =0; |
|
159 |
|
160 /** |
|
161 * SetEditorVisibility |
|
162 * @param aVisible, ETrue or EFalse |
|
163 */ |
|
164 virtual void SetEditorVisibility( TBool aVisible ) = 0; |
|
165 |
|
166 protected: |
|
167 /** |
|
168 * ~MIMCVAppLayoutInfo |
|
169 * virtual destrauctor |
|
170 */ |
|
171 virtual ~MIMCVAppLayoutInfo() {}; |
|
172 |
|
173 }; |
|
174 |
|
175 #endif // MIMCVAPPLAYOUTINFO_H |
|
176 |
|
177 // End of File |