calendarui/regionalplugins/calenregionalutil/inc/calenlunarlocalizer.h
branchRCL_3
changeset 30 bd7edf625bdd
parent 29 12af337248b1
equal deleted inserted replaced
29:12af337248b1 30:bd7edf625bdd
    20 #ifndef __CALENLUNARLOCALIZER_H__
    20 #ifndef __CALENLUNARLOCALIZER_H__
    21 #define __CALENLUNARLOCALIZER_H__
    21 #define __CALENLUNARLOCALIZER_H__
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 #include "CalenLunarLocalizedInfo.h"
    25 #include "calenlunarlocalizedinfo.h"
    26 #include "CalendarVariant.hrh"
    26 #include "CalendarVariant.hrh"
    27 #include "calendarui_debug.h"
    27 #include "calendarui_debug.h"
    28 
    28 
    29 class QStringList;
       
    30 class CEikonEnv;
    29 class CEikonEnv;
    31 class TCalenLunarInfo;
    30 class TCalenLunarInfo;
    32 class TChineseDate;
    31 class TChineseDate;
    33 class CFont;
    32 class CFont;
    34 class CCalenExtraRowFormatter;
    33 class CCalenExtraRowFormatter;
    40 
    39 
    41     IMPORT_C virtual ~CCalenLunarLocalizer();
    40     IMPORT_C virtual ~CCalenLunarLocalizer();
    42     
    41     
    43     IMPORT_C virtual CCalenLunarLocalizedInfo* LocalizeL( TCalenLunarInfo& aInfo );
    42     IMPORT_C virtual CCalenLunarLocalizedInfo* LocalizeL( TCalenLunarInfo& aInfo );
    44     
    43     
    45     IMPORT_C virtual TPtrC GetExtraRowTextL( CCalenLunarLocalizedInfo& aLocInfo );
    44     IMPORT_C virtual TPtrC GetExtraRowTextL( CCalenLunarLocalizedInfo& aLocInfo, 
       
    45                                     TInt aMaxWidth, 
       
    46                                     const CFont& aFont,
       
    47 									TBool aTwoLines
       
    48                                   );
    46     
    49     
    47 
    50 
    48 protected:
    51 protected:
    49     IMPORT_C CCalenLunarLocalizer();
    52     IMPORT_C CCalenLunarLocalizer();
    50 
    53 
    63 
    66 
    64     /**
    67     /**
    65      * Localized names of lunar festivals
    68      * Localized names of lunar festivals
    66      * Own.
    69      * Own.
    67      */
    70      */
    68     QStringList iFestivalNames;
    71     CDesCArray* iFestivalNames;
    69 
    72     
    70     /**
    73     /**
    71      * Localized names of solar terms 
    74      * Localized names of solar terms 
    72      * Own.
    75      * Own.
    73      */
    76      */
    74     QStringList iSolarTermNames;
    77     CDesCArray* iSolarTermNames;
    75 
    78 
    76     /**
    79     /**
    77      * Localized names of animal years
    80      * Localized names of animal years
    78      * Own.
    81      * Own.
    79      */
    82      */
    80     QStringList iAnimalYearNames;
    83     CDesCArray* iAnimalYearNames;
    81 
    84 
    82     /**
    85     /**
    83      * Localized names of heavenly stems
    86      * Localized names of heavenly stems
    84      * Own.
    87      * Own.
    85      */
    88      */
    86     QStringList iHeavenlyStemNames;
    89     CDesCArray* iHeavenlyStemNames;
    87 
    90 
    88     /**
    91     /**
    89      * Localized names of terrestial branches
    92      * Localized names of terrestial branches
    90      * Own.
    93      * Own.
    91      */
    94      */
    92     QStringList iTerrestialBranchNames;
    95     CDesCArray* iTerrestialBranchNames;
    93 
    96 
    94 
    97 
       
    98     /**
       
    99      * Format string for western date.
       
   100      * Own.
       
   101      */
       
   102     HBufC* iGregorianDateFormat;
       
   103 
    95     TBuf<1000> iLunarExtraRowText;
   104     TBuf<1000> iLunarExtraRowText;
       
   105 
    96 
   106 
    97     /**
   107     /**
    98      * Language independent formatter of extra row information.
   108      * Language independent formatter of extra row information.
    99      */
   109      */
   100     CCalenExtraRowFormatter* iRowFormatter;
   110     CCalenExtraRowFormatter* iRowFormatter;
   101     
   111     
       
   112     TInt  iResourceFileOffset;
       
   113 
   102     };
   114     };
   103 
   115 
   104 #endif // __CALENLUNARLOCALIZER_H__
   116 #endif // __CALENLUNARLOCALIZER_H__