fep/aknfep/inc/aknfepuispellcontainer.h
branchRCL_3
changeset 21 ecbabf52600f
equal deleted inserted replaced
20:ebd48d2de13c 21:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c)  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:            Provides the CAknFepUiSpellContainer definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #ifndef AKNFEP_SPELLCONTAINER_H
       
    30 #define AKNFEP_SPELLCONTAINER_H
       
    31 
       
    32 // INCLUDES
       
    33 #include <coecntrl.h>          // for CCoeControl
       
    34 #include <eiklbo.h>            // for MEikListBoxObserver
       
    35 #include <badesca.h>           // for CDesCArray
       
    36 
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 class CAknFepUiSpellInputPane;
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44 *  CAknFepUiSpellContainer  container control class.
       
    45 */
       
    46 class CAknFepUiSpellContainer : public CCoeControl
       
    47 {
       
    48 public: // Constructors and destructor
       
    49 
       
    50     /**
       
    51     * Two-phased constructor.
       
    52     * @param aRect Frame rectangle for container.
       
    53     * @param aModel Data model of the application.
       
    54     * @return A Pointer to new dictionary container.
       
    55     */
       
    56     static CAknFepUiSpellContainer* NewL(const TInt aEditorFlag, const TInt aEditorCase, 
       
    57                                          const TInt aEditorSCTResID, const TBool aSplitEditor );
       
    58 
       
    59     /**
       
    60     * Destructor.
       
    61     */
       
    62     virtual ~CAknFepUiSpellContainer();
       
    63     
       
    64     CAknFepUiSpellInputPane* InputPane();
       
    65     
       
    66     void SetInputWinObserver( MEikEdwinObserver* aObserver );
       
    67     
       
    68     void SetInputWinFocus( TBool aFocus );
       
    69 
       
    70 private:
       
    71     
       
    72     /**
       
    73     * C++ default constructor.
       
    74     */
       
    75     CAknFepUiSpellContainer();
       
    76     
       
    77     /**
       
    78     * EPOC default constructor.
       
    79     * @param aRect Frame rectangle for container.
       
    80     * @param aModel Data model of the application.
       
    81     */
       
    82     void ConstructL(const TInt aEditorFlag, const TInt aEditorCase, 
       
    83     		        const TInt aEditorSCTResID, const TBool aIsSplitEditor ); 
       
    84 
       
    85 private: // Functions from base classes
       
    86 
       
    87     /**
       
    88     * From CoeControl, CountComponentControls.
       
    89     */
       
    90     TInt CountComponentControls() const;
       
    91 
       
    92     /**
       
    93     * From CCoeControl, ComponentControl.
       
    94     */
       
    95     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    96 
       
    97     /**
       
    98     * From CCoeControl, Draw.
       
    99     */
       
   100     void Draw( const TRect& aRect ) const;
       
   101 
       
   102     /**
       
   103     * From CCoeControl, return the container's input capabilities.
       
   104     */
       
   105     TCoeInputCapabilities InputCapabilities() const;
       
   106 
       
   107     /**
       
   108     * From CCoeControl, handle key events.
       
   109     */
       
   110     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
   111 
       
   112    
       
   113     void SetContainerRect();
       
   114     
       
   115     HBufC* InputText();
       
   116      
       
   117      
       
   118 protected:
       
   119     
       
   120     void SizeChanged();
       
   121     
       
   122     void FocusChanged(TDrawNow aDrawNow);
       
   123     
       
   124 private: // data
       
   125     
       
   126     CAknFepUiSpellInputPane* iInputPane;
       
   127 
       
   128  };
       
   129 
       
   130 #endif  // AKNFEP_SPELLCONTAINER_H
       
   131 
       
   132 // End of File