calendarui/regionalplugins/calenregionalutil/inc/calenextrarowformatter.h
branchRCL_3
changeset 30 bd7edf625bdd
parent 29 12af337248b1
equal deleted inserted replaced
29:12af337248b1 30:bd7edf625bdd
    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( 
    37     IMPORT_C TPtrC FormatExtraRowInformationL( CCalenLunarLocalizedInfo& aLocInfo, 
    38 					CCalenLunarLocalizedInfo& aLocInfo, 
    38                                       RArray<CCalenLunarLocalizedInfo::TField>& aPrioritizedFields,
    39 					RArray<CCalenLunarLocalizedInfo::TField>& aPrioritizedFields 
    39                                       TInt aMaxWidth,
    40 					);
    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 
    41 
    53 
    42 private: // own methods
    54 private: // own methods
    43     CCalenExtraRowFormatter();
    55     CCalenExtraRowFormatter();
    44 
    56 
    45     void ConstructL();
    57     void ConstructL();