|
1 /* |
|
2 * Copyright (c) 2000 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 * Implemented all inline functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // ================= MEMBER FUNCTIONS ======================= |
|
21 |
|
22 // --------------------------------------------------------- |
|
23 // CCalcAppEnv::AppUi |
|
24 // Return pointer of CCalcAppUi class |
|
25 // (other items were commented in a header). |
|
26 // --------------------------------------------------------- |
|
27 // |
|
28 inline CCalcAppUi* CCalcAppEnv::AppUi() const |
|
29 { |
|
30 return iAppUi; |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------- |
|
34 // CCalcAppEnv::EditorOperator |
|
35 // Return charactor for editor operator |
|
36 // (other items were commented in a header). |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 inline const TPtrC CCalcAppEnv::EditorOperator( |
|
40 const TCalcEditLine::TCalcOperatorType aType ) const |
|
41 { |
|
42 //'r_calc_editor_operator_array' is operator array for Editor Operator. |
|
43 if ( ( aType == TCalcEditLine::ECalcDivide ) && |
|
44 AknLayoutUtils::PenEnabled() ) |
|
45 { |
|
46 //show operator '/' instead of division operator |
|
47 //division move 6 is '/' in Editor Operator array |
|
48 return ( *iEditorOperArray )[( TInt ) aType + 6]; |
|
49 } |
|
50 return ( *iEditorOperArray )[(TInt) aType]; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // CCalcAppEnv::OutSheetOperator |
|
55 // Return charactor for OutputSheet operator |
|
56 // (other items were commented in a header). |
|
57 // --------------------------------------------------------- |
|
58 // |
|
59 inline const TPtrC CCalcAppEnv::OutSheetOperator( |
|
60 const TCalcEditLine::TCalcOperatorType aType ) const |
|
61 { |
|
62 //'r_calc_outsheet_operator_array' is operator array for OutSheet Operator. |
|
63 if ( ( aType == TCalcEditLine::ECalcDivide ) && |
|
64 AknLayoutUtils::PenEnabled() ) |
|
65 { |
|
66 //show operator '/' instead of division operator |
|
67 //division move 6 is '/' in OutSheet Operator array |
|
68 return (*iOutSheetOperArray)[( TInt ) aType + 6]; |
|
69 } |
|
70 return (*iOutSheetOperArray)[( TInt ) aType]; |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // CCalcAppEnv::DecimalSeparator |
|
75 // Return decimal separator. |
|
76 // (other items were commented in a header). |
|
77 // --------------------------------------------------------- |
|
78 // |
|
79 inline const TChar CCalcAppEnv::DecimalSeparator() const |
|
80 { |
|
81 return iDecimalSeparator; |
|
82 } |
|
83 |
|
84 // --------------------------------------------------------- |
|
85 // CCalcAppEnv::SetDecimalSeparator |
|
86 // Set new decimal separator. |
|
87 // (other items were commented in a header). |
|
88 // --------------------------------------------------------- |
|
89 // |
|
90 inline void CCalcAppEnv::SetDecimalSeparator(TChar aChar) |
|
91 { |
|
92 iDecimalSeparator = aChar; |
|
93 } |
|
94 |
|
95 // --------------------------------------------------------- |
|
96 // CCalcAppEnv::MinusIndicator |
|
97 // Return minus indicator. |
|
98 // (other items were commented in a header). |
|
99 // --------------------------------------------------------- |
|
100 // |
|
101 inline const TChar CCalcAppEnv::MinusIndicator() const |
|
102 { |
|
103 return iMinusIndicator; |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------- |
|
107 // CCalcAppEnv::MemoryIndicator |
|
108 // Return memory indicator. |
|
109 // (other items were commented in a header). |
|
110 // --------------------------------------------------------- |
|
111 // |
|
112 inline TPtrC CCalcAppEnv::MemoryIndicator() const |
|
113 { |
|
114 return iMemoryIndicator; |
|
115 } |
|
116 |
|
117 // --------------------------------------------------------- |
|
118 // CCalcAppEnv::MemoryIndicatorShadow |
|
119 // Return shadow of memory indicator. |
|
120 // (other items were commented in a header). |
|
121 // --------------------------------------------------------- |
|
122 // |
|
123 inline TPtrC CCalcAppEnv::MemoryIndicatorShadow() const |
|
124 { |
|
125 return iMemoryIndicatorShadow; |
|
126 } |
|
127 |
|
128 // --------------------------------------------------------- |
|
129 // CCalcAppEnv::NumberShadowFont |
|
130 // Return font for number shadow in editor. |
|
131 // (other items were commented in a header). |
|
132 // --------------------------------------------------------- |
|
133 // |
|
134 inline const CFont* CCalcAppEnv::NumberShadowFont() const |
|
135 { |
|
136 return iNumberShadowFont; |
|
137 } |
|
138 |
|
139 // --------------------------------------------------------- |
|
140 // CCalcAppEnv::NumberShadowFont |
|
141 // Return font for number in editor. |
|
142 // (other items were commented in a header). |
|
143 // --------------------------------------------------------- |
|
144 // |
|
145 inline const CFont* CCalcAppEnv::NumberFont() const |
|
146 { |
|
147 return iNumberFont; |
|
148 } |
|
149 |
|
150 // --------------------------------------------------------- |
|
151 // CCalcAppEnv::OperatorShadowFont |
|
152 // Return font for operator shadow in editor. |
|
153 // (other items were commented in a header). |
|
154 // --------------------------------------------------------- |
|
155 // |
|
156 inline const CFont* CCalcAppEnv::OperatorShadowFont() const |
|
157 { |
|
158 return iOperatorShadowFont; |
|
159 } |
|
160 |
|
161 // --------------------------------------------------------- |
|
162 // CCalcAppEnv::OperatorFont |
|
163 // Return font for operator in editor. |
|
164 // (other items were commented in a header). |
|
165 // --------------------------------------------------------- |
|
166 // |
|
167 inline const CFont* CCalcAppEnv::OperatorFont() const |
|
168 { |
|
169 return iOperatorFont; |
|
170 } |
|
171 |
|
172 // --------------------------------------------------------- |
|
173 // CCalcAppEnv::OutSheetOperatorFont |
|
174 // Return font for operator in OutputSheet. |
|
175 // (other items were commented in a header). |
|
176 // --------------------------------------------------------- |
|
177 // |
|
178 inline const CFont* CCalcAppEnv::OutSheetOperatorFont() const |
|
179 { |
|
180 return iOutSheetOperatorFont; |
|
181 } |
|
182 |
|
183 |
|
184 // --------------------------------------------------------- |
|
185 // CCalcAppEnv::DisplaySideLBitmap |
|
186 // Return 'qsn_fr_calc_display_side_l' Bitmap pointer. |
|
187 // (other items were commented in a header). |
|
188 // --------------------------------------------------------- |
|
189 // |
|
190 inline const CGulIcon* CCalcAppEnv::DisplaySideLBitmap() const |
|
191 { |
|
192 return iDisplaySideLBitmap; |
|
193 } |
|
194 |
|
195 |
|
196 // --------------------------------------------------------- |
|
197 // CCalcAppEnv::DisplayCenterBitmap |
|
198 // Return 'qsn_fr_calc_display_center' Bitmap pointer. |
|
199 // (other items were commented in a header). |
|
200 // --------------------------------------------------------- |
|
201 // |
|
202 inline const CGulIcon* CCalcAppEnv::DisplayCenterBitmap() const |
|
203 { |
|
204 return iDisplayCenterBitmap; |
|
205 } |
|
206 |
|
207 |
|
208 |
|
209 // --------------------------------------------------------- |
|
210 // CCalcAppEnv::DisplaySideRBitmap |
|
211 // Return 'qsn_fr_calc_display_side_r' Bitmap pointer. |
|
212 // (other items were commented in a header). |
|
213 // --------------------------------------------------------- |
|
214 // |
|
215 inline const CGulIcon* CCalcAppEnv::DisplaySideRBitmap() const |
|
216 { |
|
217 return iDisplaySideRBitmap; |
|
218 } |
|
219 |
|
220 |
|
221 // --------------------------------------------------------- |
|
222 // CCalcAppEnv::PaperBitmap |
|
223 // Return 'qgn_indi_calc_paper' Bitmap pointer. |
|
224 // (other items were commented in a header). |
|
225 // --------------------------------------------------------- |
|
226 // |
|
227 inline const CGulIcon* CCalcAppEnv::PaperBitmap() const |
|
228 { |
|
229 return iPaperBitmap; |
|
230 } |
|
231 |
|
232 // --------------------------------------------------------- |
|
233 // CCalcAppEnv::PaperBitmap |
|
234 // Return 'qsn_fr_calc_paper_center' Bitmap pointers. |
|
235 // (other items were commented in a header). |
|
236 // --------------------------------------------------------- |
|
237 // |
|
238 inline void CCalcAppEnv::ScalablePaperBitmaps(const CGulIcon* aPaperBitmap[]) const |
|
239 { |
|
240 |
|
241 for(TInt Cnt=0;Cnt < 9; Cnt++) |
|
242 { |
|
243 aPaperBitmap[Cnt]=iScalablePaperBitmap[Cnt]; |
|
244 } |
|
245 } |
|
246 |
|
247 // --------------------------------------------------------- |
|
248 // CCalcAppEnv::ResultsLine |
|
249 // Return 'qgn_graf_calc_resultsLine' Bitmap pointer. |
|
250 // This returns a valid icon only when __SCALABLE_ICONS flag |
|
251 // is enabled. When there is no SVG icon support the result |
|
252 // line is drawn using DrawRect. |
|
253 // (other items were commented in a header). |
|
254 // --------------------------------------------------------- |
|
255 // |
|
256 inline const CGulIcon* CCalcAppEnv::ResultsLineBitmap() const |
|
257 { |
|
258 return iResultsLineBitmap; |
|
259 } |
|
260 |
|
261 // --------------------------------------------------------- |
|
262 // CCalcAppEnv::UnpressedButtonBmp |
|
263 // Return unpressed bitmap of correspondent index |
|
264 // (other items were commented in a header). |
|
265 // --------------------------------------------------------- |
|
266 // |
|
267 inline CGulIcon* CCalcAppEnv::UnpressedButtonBmp( |
|
268 const TInt aIndex) const |
|
269 { |
|
270 return iUnpressedButtonBmp[aIndex]; |
|
271 } |
|
272 |
|
273 // --------------------------------------------------------- |
|
274 // CCalcAppEnv::PressedButtonBmp |
|
275 // Return pressed bitmap of correspondent index |
|
276 // (other items were commented in a header). |
|
277 // --------------------------------------------------------- |
|
278 // |
|
279 inline CGulIcon* CCalcAppEnv::PressedButtonBmp( |
|
280 const TInt aIndex) const |
|
281 { |
|
282 return iPressedButtonBmp[aIndex]; |
|
283 } |
|
284 |
|
285 // --------------------------------------------------------- |
|
286 // CCalcAppEnv::InactiveButtonBmp |
|
287 // Return inactive bitmap of correspondent index |
|
288 // (other items were commented in a header). |
|
289 // --------------------------------------------------------- |
|
290 // |
|
291 inline CGulIcon* CCalcAppEnv::InactiveButtonBmp( |
|
292 const TInt aIndex) const |
|
293 { |
|
294 return iDimmedButtonBmp[aIndex]; |
|
295 } |
|
296 |
|
297 // End of File |