1 /* |
|
2 * Copyright (c) 2002 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: Descriptor manipulation utilities. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOCTEXTUTILS_H_ |
|
20 #define LOCTEXTUTILS_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <AknUtils.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Static class containing descriptor manipulation utilities. |
|
33 * @lib locutils.lib |
|
34 * @since 2.1 |
|
35 */ |
|
36 class LocTextUtils |
|
37 { |
|
38 public: // New functions |
|
39 /** |
|
40 * Clips listbox data. |
|
41 * Use this only if you have icons, otherwise AknTextUtils. |
|
42 * @param aOriginal original text that is not modified |
|
43 * @param aClipped modified text |
|
44 * @param aClipDirection tells how to clip |
|
45 * @param aListBox reference to the listbox which shows the data |
|
46 * @param aItemIndex item index |
|
47 * @param aSubCellNumber subcell number |
|
48 * @param aIcons 0->no icons, 1->ind. arrow, 2->1 icon, etc. |
|
49 * @return ETrue if clipping occurred |
|
50 */ |
|
51 IMPORT_C static TBool ClipToFit( TDes& aText, |
|
52 AknTextUtils::TClipDirection aClipDirection, |
|
53 CEikFormattedCellListBox* aListBox, |
|
54 TInt aItemIndex, |
|
55 TInt aSubCellNumber, |
|
56 TInt aIcons ); |
|
57 }; |
|
58 |
|
59 #endif // LOCTEXTUTILS_H_ |
|
60 |
|
61 // End of File |
|