equal
deleted
inserted
replaced
19 #ifndef __CALENEXTRAROWFORMATTER_H__ |
19 #ifndef __CALENEXTRAROWFORMATTER_H__ |
20 #define __CALENEXTRAROWFORMATTER_H__ |
20 #define __CALENEXTRAROWFORMATTER_H__ |
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 |
23 |
24 #include "calenlunarlocalizedinfo.h" |
24 #include "CalenLunarLocalizedInfo.h" |
25 #include "CalendarVariant.hrh" |
25 #include "CalendarVariant.hrh" |
26 #include "calendarui_debug.h" |
26 #include "calendarui_debug.h" |
27 |
27 |
28 class CFont; |
28 class CFont; |
29 |
29 |
32 public: // public API |
32 public: // public API |
33 IMPORT_C static CCalenExtraRowFormatter* NewL(); |
33 IMPORT_C static CCalenExtraRowFormatter* NewL(); |
34 |
34 |
35 IMPORT_C virtual ~CCalenExtraRowFormatter(); |
35 IMPORT_C virtual ~CCalenExtraRowFormatter(); |
36 |
36 |
37 IMPORT_C TPtrC FormatExtraRowInformationL( CCalenLunarLocalizedInfo& aLocInfo, |
37 IMPORT_C TPtrC FormatExtraRowInformationL( |
38 RArray<CCalenLunarLocalizedInfo::TField>& aPrioritizedFields, |
38 CCalenLunarLocalizedInfo& aLocInfo, |
39 TInt aMaxWidth, |
39 RArray<CCalenLunarLocalizedInfo::TField>& aPrioritizedFields |
40 const CFont& aFont |
40 ); |
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 |
41 |
54 private: // own methods |
42 private: // own methods |
55 CCalenExtraRowFormatter(); |
43 CCalenExtraRowFormatter(); |
56 |
44 |
57 void ConstructL(); |
45 void ConstructL(); |