idlehomescreen/xmluirendering/renderingplugins/xntexteditorfactory/inc/xntexteditoradapter.h
branchRCL_3
changeset 12 9674c1a575e9
parent 11 ff572dfe6d86
child 26 1b758917cafc
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
    27 
    27 
    28 // Forward declarations
    28 // Forward declarations
    29 class CXnNodePluginIf;
    29 class CXnNodePluginIf;
    30 class CEikEdwin;
    30 class CEikEdwin;
    31 class CXnTextEditorPublisher;
    31 class CXnTextEditorPublisher;
       
    32 class CXnAppUiAdapter;
    32 
    33 
    33 // CLASS DECLARATION
    34 // CLASS DECLARATION
    34 class CXnTextEditorAdapter : public CXnControlAdapter
    35 class CXnTextEditorAdapter : public CXnControlAdapter
    35     {
    36     {
    36 public:
    37 public:
   116 
   117 
   117     /**
   118     /**
   118     * See CCoeControl documentation
   119     * See CCoeControl documentation
   119     */          
   120     */          
   120     void Draw( const TRect& aRect ) const;
   121     void Draw( const TRect& aRect ) const;
   121            
   122 
       
   123     /**
       
   124     * See CCoeControl documentation
       
   125     */          
       
   126     void HandleResourceChange( TInt aType );
       
   127 
   122 private:
   128 private:
   123     // from MCoeControlObserver
   129     // from MCoeControlObserver
   124     
   130     
   125     /**
   131     /**
   126     * See MCoeControlObserver documentation
   132     * See MCoeControlObserver documentation
   127     */
   133     */
   128     void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
   134     void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
   129         
   135 
   130 private:
   136 private:
   131     // private constrcutors 
   137     // private constrcutors 
   132 
   138 
   133 	CXnTextEditorAdapter( CXnControlAdapter* aParent, CXnNodePluginIf& aNode );
   139 	CXnTextEditorAdapter( CXnControlAdapter* aParent, CXnNodePluginIf& aNode );
   134 	
   140 	
   136 
   142 
   137 private:
   143 private:
   138     // new functions
   144     // new functions
   139                  
   145                  
   140     void SetPropertiesL();
   146     void SetPropertiesL();
       
   147     
       
   148     void SetEditorMarginPropertiesL();
   141 
   149 
   142 private:
   150 private:
   143     // data
   151     // data
   144     /** Parent control, not owned */
   152     /** Parent control, not owned */
   145     CXnControlAdapter*  	iParent;
   153     CXnControlAdapter*  	iParent;
   146     /** UI node, not owned */
   154     /** UI node, not owned */
   147     CXnNodePluginIf&    	iNode; 
   155     CXnNodePluginIf&    	iNode; 
   148     /** UI engine, not owned */
   156     /** UI engine, not owned */
   149     TXnUiEnginePluginIf*    iUiEngine;
   157     TXnUiEnginePluginIf*    iUiEngine;
       
   158     /** Appui adapter, not owned */
       
   159     CXnAppUiAdapter*        iAppui;
   150     /** Editor, owned */
   160     /** Editor, owned */
   151     CEikEdwin*              iEditor; 
   161     CEikEdwin*              iEditor; 
   152     /** CPS publisher wrapper, owned */
   162     /** CPS publisher wrapper, owned */
   153     CXnTextEditorPublisher* iEditorPublisher;
   163     CXnTextEditorPublisher* iEditorPublisher;
   154     // Font, owned */
   164     // Font, owned */
   158     /** Max line amount */
   168     /** Max line amount */
   159     TInt                    iMaxLines; 
   169     TInt                    iMaxLines; 
   160     /** Flag to indicate whether focus loss is refused */
   170     /** Flag to indicate whether focus loss is refused */
   161     TBool                   iRefusesFocusLoss;
   171     TBool                   iRefusesFocusLoss;
   162     /** Split input states*/
   172     /** Split input states*/
   163     TInt                    iSplitInputState;
   173     TInt                    iSplitInputFlags;
   164     };
   174     };
   165 
   175 
   166 #endif      // _XNTEXTEDITORADAPTER_H
   176 #endif      // _XNTEXTEDITORADAPTER_H
   167             
   177             
   168 // End of File
   178 // End of File