fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/aknfepuilayoutdatamgr.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:09:27 +0200
branchRCL_3
changeset 3 f5a1e66df979
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  This file contains classes of phrase creation layout data management
*
*/


#ifndef C_PHRASECREATIONLAYOUTDATAMGR_H
#define C_PHRASECREATIONLAYOUTDATAMGR_H

#include <e32std.h>
#include <e32base.h>
#include <badesca.h>
#include <coecntrl.h>
#include <AknUtils.h>
#include <AknLayout2ScalableDef.h>

enum TAknFepChineseUiLafDataType
    {
    EPopupRectEntry,
    EPopupRectCandatate,
    EPopupRectEEP,
    EPopupHeightEntry,
    EPopupHeightEEP,
    EEntryPaneWindowLine,
    ECandidatePaneWindowLine,
    EEEPWindowLayout,
    EEEPWindowRect,
    ECandidatePaneTextLine,
    EOrdinalCandidateTextLayout,
    ECandidateWindowLine1,
    ECandidateWindowLine2,
    ECandidateWindowLine3,
    ECandidateWindowLine4,
    ELayoutCandidateItem,
    ELayoutEntryItem,
    ERectCoverMainPaneInputEntry,
    ERectFirstShadowInputEntry,
    ERectOutlineFrameInputEntry,
    ERectInsideAreaInputEntry, 
    ERectCoverMainPaneInputCandidate,
    ERectFirstShadowInputCandidate,
    ERectOutlineFrameInputCandidate,
    ERectInsideAreaInputCandidate, 
    ERectCoverMainPaneInputEEP,
    ERectFirstShadowInputEEP,
    ERectOutlineFrameInputEEP,
    ERectInsideAreaInputEEP,
    ELayoutInputPaneText,
    ELayoutLineRectEntryPane,
    EEntryTextLayout,
    EEntryPaneRect,
    EIndiFepArrowLeft,
    EIndiFepArrowRight,   	
    ERectCoverMainPaneInput,
    ERectFirstShadowInput,
    ERectOutlineFrameInput,
    ERectInsideAreaInput,
    EEEPTextLine,
    EEEPCursorHeight,
    EEEPTextColor,
    EHorizLine,
    EEEPFirstHorizLine,
    EEEPSecondHorizLine,
    EEntryHorizLineWindow,
    EEEPSecondHorizLineWindow,
    EEEPFirstHorizLineWindow
    
    };
//class CAknFepUiLayoutDataMgr;
/**
 *  CAknFepUiLayoutDataMgr
 *  This class provides the phrase creation layout 
 *  data interface management
 *  to the program other component
 */
/**
* CAknFepUiLayoutDataMgr is a static fascade interface to the singleton layout data mgr object.
* There is at most one CAknFepUiLayoutDataMgr per thread. This static interface ensures that this
* fact can not be changed.
*/
class CAknFepUiLayoutDataMgr  : public CBase
    {
public:
    // General public API

    /**
     * First phase construction
     */
    static CAknFepUiLayoutDataMgr* NewL();
    
    /**
     * Read LAF info 
     * @return None.
     */
    void ReadLafInfo();
    
    /**
     * Get LAF info 
     */
    TAny* RequestData(TInt aDataType);
    
private:
    
    /**
     * Constructor
     */
    CAknFepUiLayoutDataMgr();
    
    /**
     * Second phase construction
     */
    void ConstructL();
    
private:
    TSize iScreenSize;
    TBool iLandScape;
    
    TRect iPopupRectEntry;
    TRect iPopupRectCandidate;
    TRect iPopupRectEEP;
    TInt iPopupHeightEntry;
    TInt iPopupHeightEEP;
    TInt16 iEEPHeight;
    
    TAknWindowLineLayout iEntryPaneWindowLine;
    TAknWindowLineLayout iCandidatePaneWindowLine;
    
    TAknWindowLineLayout iEEPWindowLayout;
    TRect iEEPWindowRect;
    TRect iEntryPaneRect;
    
    TAknTextLineLayout iCandidatePaneTextLine;
    TAknWindowLineLayout iCandidateWindowLine1;
    TAknWindowLineLayout iCandidateWindowLine2;
    TAknWindowLineLayout iCandidateWindowLine3;
    TAknWindowLineLayout iCandidateWindowLine4;
    TAknWindowLineLayout iLayoutCandidateItem;
    TAknWindowLineLayout iLayoutEntryItem;
    
    TAknTextLineLayout iOrdinalCandidateTextLayout;
    TAknTextLineLayout iEntryTextLayout;
    
    //
    TAknLayoutRect iRectCoverMainPaneInputEntry;
    TAknLayoutRect iRectFirstShadowInputEntry;
    TAknLayoutRect iRectOutlineFrameInputEntry;
    TAknLayoutRect iRectInsideAreaInputEntry;
    
    TAknLayoutRect iRectCoverMainPaneInputCandidate;
    TAknLayoutRect iRectFirstShadowInputCandidate;
    TAknLayoutRect iRectOutlineFrameInputCandidate;
    TAknLayoutRect iRectInsideAreaInputCandidate;
    
    TAknLayoutRect iRectCoverMainPaneInputEEP;
    TAknLayoutRect iRectFirstShadowInputEEP;
    TAknLayoutRect iRectOutlineFrameInputEEP;
    TAknLayoutRect iRectInsideAreaInputEEP;
    
    TAknWindowLineLayout iEntryHorizLineWindow;
    TAknWindowLineLayout iEEPSecondHorizLineWindow;
    TAknWindowLineLayout iEEPFirstHorizLineWindow;
    TAknLayoutRect iHorizLine;
    TAknLayoutRect iEEPFirstHorizLine;
    TAknLayoutRect iEEPSecondHorizLine;
    
    TAknLayoutText iLayoutInputPaneText;
    TAknLayoutRect iLayoutLineRectEntryPane;
    
	TAknLayoutRect iIndiFepArrowLeft;
    TAknLayoutRect iIndiFepArrowRight;
    
   	TAknLayoutRect iRectCoverMainPaneInput;
    TAknLayoutRect iRectFirstShadowInput;
    TAknLayoutRect iRectOutlineFrameInput;
    TAknLayoutRect iRectInsideAreaInput;
    
    TAknTextLineLayout iEEPTextLine;
    TInt iEEPCursorHeight;
    TRgb iEEPTextColor;
    };

#endif // C_PHRASECREATIONLAYOUTDATAMGR_H

// End of File