equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: Calendar Lunar Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CALENEXTRAROWFORMATTER_H__ |
|
20 #define __CALENEXTRAROWFORMATTER_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "calenlunarlocalizedinfo.h" |
|
25 #include "CalendarVariant.hrh" |
|
26 #include "calendarui_debug.h" |
|
27 |
|
28 class CFont; |
|
29 |
|
30 class CCalenExtraRowFormatter : public CBase |
|
31 { |
|
32 public: // public API |
|
33 IMPORT_C static CCalenExtraRowFormatter* NewL(); |
|
34 |
|
35 IMPORT_C virtual ~CCalenExtraRowFormatter(); |
|
36 |
|
37 IMPORT_C TPtrC FormatExtraRowInformationL( CCalenLunarLocalizedInfo& aLocInfo, |
|
38 RArray<CCalenLunarLocalizedInfo::TField>& aPrioritizedFields, |
|
39 TInt aMaxWidth, |
|
40 const CFont& aFont |
|
41 |
|
42 , TBool aTwoLines |
|
43 |
|
44 ); |
|
45 |
|
46 private: |
|
47 TBool TryToFitL( const TDesC& aStr, TInt aMaxWidth, const CFont& aFont |
|
48 |
|
49 , TBool aTwoLines |
|
50 |
|
51 ); |
|
52 |
|
53 |
|
54 private: // own methods |
|
55 CCalenExtraRowFormatter(); |
|
56 |
|
57 void ConstructL(); |
|
58 |
|
59 |
|
60 private: // data |
|
61 TBuf<500> iText; |
|
62 }; |
|
63 |
|
64 #endif // __CALENEXTRAROWFORMATTER_H__ |