fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/aknfepuilayoutdatamgr.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     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:  This file contains classes of phrase creation layout data management
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PHRASECREATIONLAYOUTDATAMGR_H
       
    20 #define C_PHRASECREATIONLAYOUTDATAMGR_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <badesca.h>
       
    25 #include <coecntrl.h>
       
    26 #include <AknUtils.h>
       
    27 #include <AknLayout2ScalableDef.h>
       
    28 
       
    29 enum TAknFepChineseUiLafDataType
       
    30     {
       
    31     EPopupRectEntry,
       
    32     EPopupRectCandatate,
       
    33     EPopupRectEEP,
       
    34     EPopupHeightEntry,
       
    35     EPopupHeightEEP,
       
    36     EEntryPaneWindowLine,
       
    37     ECandidatePaneWindowLine,
       
    38     EEEPWindowLayout,
       
    39     EEEPWindowRect,
       
    40     ECandidatePaneTextLine,
       
    41     EOrdinalCandidateTextLayout,
       
    42     ECandidateWindowLine1,
       
    43     ECandidateWindowLine2,
       
    44     ECandidateWindowLine3,
       
    45     ECandidateWindowLine4,
       
    46     ELayoutCandidateItem,
       
    47     ELayoutEntryItem,
       
    48     ERectCoverMainPaneInputEntry,
       
    49     ERectFirstShadowInputEntry,
       
    50     ERectOutlineFrameInputEntry,
       
    51     ERectInsideAreaInputEntry, 
       
    52     ERectCoverMainPaneInputCandidate,
       
    53     ERectFirstShadowInputCandidate,
       
    54     ERectOutlineFrameInputCandidate,
       
    55     ERectInsideAreaInputCandidate, 
       
    56     ERectCoverMainPaneInputEEP,
       
    57     ERectFirstShadowInputEEP,
       
    58     ERectOutlineFrameInputEEP,
       
    59     ERectInsideAreaInputEEP,
       
    60     ELayoutInputPaneText,
       
    61     ELayoutLineRectEntryPane,
       
    62     EEntryTextLayout,
       
    63     EEntryPaneRect,
       
    64     EIndiFepArrowLeft,
       
    65     EIndiFepArrowRight,   	
       
    66     ERectCoverMainPaneInput,
       
    67     ERectFirstShadowInput,
       
    68     ERectOutlineFrameInput,
       
    69     ERectInsideAreaInput,
       
    70     EEEPTextLine,
       
    71     EEEPCursorHeight,
       
    72     EEEPTextColor,
       
    73     EHorizLine,
       
    74     EEEPFirstHorizLine,
       
    75     EEEPSecondHorizLine,
       
    76     EEntryHorizLineWindow,
       
    77     EEEPSecondHorizLineWindow,
       
    78     EEEPFirstHorizLineWindow
       
    79     
       
    80     };
       
    81 //class CAknFepUiLayoutDataMgr;
       
    82 /**
       
    83  *  CAknFepUiLayoutDataMgr
       
    84  *  This class provides the phrase creation layout 
       
    85  *  data interface management
       
    86  *  to the program other component
       
    87  */
       
    88 /**
       
    89 * CAknFepUiLayoutDataMgr is a static fascade interface to the singleton layout data mgr object.
       
    90 * There is at most one CAknFepUiLayoutDataMgr per thread. This static interface ensures that this
       
    91 * fact can not be changed.
       
    92 */
       
    93 class CAknFepUiLayoutDataMgr  : public CBase
       
    94     {
       
    95 public:
       
    96     // General public API
       
    97 
       
    98     /**
       
    99      * First phase construction
       
   100      */
       
   101     static CAknFepUiLayoutDataMgr* NewL();
       
   102     
       
   103     /**
       
   104      * Read LAF info 
       
   105      * @return None.
       
   106      */
       
   107     void ReadLafInfo();
       
   108     
       
   109     /**
       
   110      * Get LAF info 
       
   111      */
       
   112     TAny* RequestData(TInt aDataType);
       
   113     
       
   114 private:
       
   115     
       
   116     /**
       
   117      * Constructor
       
   118      */
       
   119     CAknFepUiLayoutDataMgr();
       
   120     
       
   121     /**
       
   122      * Second phase construction
       
   123      */
       
   124     void ConstructL();
       
   125     
       
   126 private:
       
   127     TSize iScreenSize;
       
   128     TBool iLandScape;
       
   129     
       
   130     TRect iPopupRectEntry;
       
   131     TRect iPopupRectCandidate;
       
   132     TRect iPopupRectEEP;
       
   133     TInt iPopupHeightEntry;
       
   134     TInt iPopupHeightEEP;
       
   135     TInt16 iEEPHeight;
       
   136     
       
   137     TAknWindowLineLayout iEntryPaneWindowLine;
       
   138     TAknWindowLineLayout iCandidatePaneWindowLine;
       
   139     
       
   140     TAknWindowLineLayout iEEPWindowLayout;
       
   141     TRect iEEPWindowRect;
       
   142     TRect iEntryPaneRect;
       
   143     
       
   144     TAknTextLineLayout iCandidatePaneTextLine;
       
   145     TAknWindowLineLayout iCandidateWindowLine1;
       
   146     TAknWindowLineLayout iCandidateWindowLine2;
       
   147     TAknWindowLineLayout iCandidateWindowLine3;
       
   148     TAknWindowLineLayout iCandidateWindowLine4;
       
   149     TAknWindowLineLayout iLayoutCandidateItem;
       
   150     TAknWindowLineLayout iLayoutEntryItem;
       
   151     
       
   152     TAknTextLineLayout iOrdinalCandidateTextLayout;
       
   153     TAknTextLineLayout iEntryTextLayout;
       
   154     
       
   155     //
       
   156     TAknLayoutRect iRectCoverMainPaneInputEntry;
       
   157     TAknLayoutRect iRectFirstShadowInputEntry;
       
   158     TAknLayoutRect iRectOutlineFrameInputEntry;
       
   159     TAknLayoutRect iRectInsideAreaInputEntry;
       
   160     
       
   161     TAknLayoutRect iRectCoverMainPaneInputCandidate;
       
   162     TAknLayoutRect iRectFirstShadowInputCandidate;
       
   163     TAknLayoutRect iRectOutlineFrameInputCandidate;
       
   164     TAknLayoutRect iRectInsideAreaInputCandidate;
       
   165     
       
   166     TAknLayoutRect iRectCoverMainPaneInputEEP;
       
   167     TAknLayoutRect iRectFirstShadowInputEEP;
       
   168     TAknLayoutRect iRectOutlineFrameInputEEP;
       
   169     TAknLayoutRect iRectInsideAreaInputEEP;
       
   170     
       
   171     TAknWindowLineLayout iEntryHorizLineWindow;
       
   172     TAknWindowLineLayout iEEPSecondHorizLineWindow;
       
   173     TAknWindowLineLayout iEEPFirstHorizLineWindow;
       
   174     TAknLayoutRect iHorizLine;
       
   175     TAknLayoutRect iEEPFirstHorizLine;
       
   176     TAknLayoutRect iEEPSecondHorizLine;
       
   177     
       
   178     TAknLayoutText iLayoutInputPaneText;
       
   179     TAknLayoutRect iLayoutLineRectEntryPane;
       
   180     
       
   181 	TAknLayoutRect iIndiFepArrowLeft;
       
   182     TAknLayoutRect iIndiFepArrowRight;
       
   183     
       
   184    	TAknLayoutRect iRectCoverMainPaneInput;
       
   185     TAknLayoutRect iRectFirstShadowInput;
       
   186     TAknLayoutRect iRectOutlineFrameInput;
       
   187     TAknLayoutRect iRectInsideAreaInput;
       
   188     
       
   189     TAknTextLineLayout iEEPTextLine;
       
   190     TInt iEEPCursorHeight;
       
   191     TRgb iEEPTextColor;
       
   192     };
       
   193 
       
   194 #endif // C_PHRASECREATIONLAYOUTDATAMGR_H
       
   195 
       
   196 // End of File