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