calendarui/regionalplugins/calenregionalutil/inc/calenextrarowformatter.h
branchRCL_3
changeset 29 12af337248b1
parent 0 f979ecb2b13e
child 30 bd7edf625bdd
equal deleted inserted replaced
28:96907930389d 29:12af337248b1
    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();