javauis/lcdui_akn/lcdui/inc/CMIDTextEditorEdwin.h
branchRCL_3
changeset 21 4376525cdefb
parent 18 9ac0a0a7da70
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
    19 #ifndef CMIDTEXTEDITOREDWIN_H
    19 #ifndef CMIDTEXTEDITOREDWIN_H
    20 #define CMIDTEXTEDITOREDWIN_H
    20 #define CMIDTEXTEDITOREDWIN_H
    21 
    21 
    22 // INTERNAL INCLUDES
    22 // INTERNAL INCLUDES
    23 #include "CMIDEdwinUtils.h"
    23 #include "CMIDEdwinUtils.h"
       
    24 #include "CMIDDisplayable.h"
       
    25 // Used for scaling
    24 #include <MMIDScalable.h>
    26 #include <MMIDScalable.h>
    25 
    27 
    26 // EXTERNAL INCLUDES
    28 // EXTERNAL INCLUDES
    27 #include <eikedwin.h>
    29 #include <eikedwin.h>
       
    30 #ifdef RD_JAVA_S60_RELEASE_9_2
       
    31 #include <coreuiavkonlcdui.h>
       
    32 #endif // RD_JAVA_S60_RELEASE_9_2
    28 
    33 
    29 // FORWARD DECLARATIONS
    34 // FORWARD DECLARATIONS
    30 class CMIDEditingStateIndicator;
    35 class CMIDEditingStateIndicator;
    31 class MMIDTextEditorObserver;
    36 class MMIDTextEditorObserver;
    32 class CAknExtendedInputCapabilities;
    37 class CAknExtendedInputCapabilities;
   192      * Resource change handling.
   197      * Resource change handling.
   193      *
   198      *
   194      * @param aType Resource change type.
   199      * @param aType Resource change type.
   195      * @since S60 5.0
   200      * @since S60 5.0
   196      */
   201      */
   197     void CMIDTextEditorEdwin::HandleResourceChange(TInt aType);
   202     void HandleResourceChange(TInt aType);
   198 
   203 
   199     /**
   204     /**
   200      * Handles external text changes.
   205      * Handles external text changes.
   201      *
   206      *
   202      * @since S60 5.0
   207      * @since S60 5.0
   226     void HandlePointerEventL(const TPointerEvent &aPointerEvent);
   231     void HandlePointerEventL(const TPointerEvent &aPointerEvent);
   227 #endif // RD_SCALABLE_UI_V2
   232 #endif // RD_SCALABLE_UI_V2
   228 
   233 
   229 public: // New methods
   234 public: // New methods
   230 
   235 
       
   236 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   237     /**
       
   238      * Gets StatusPane
       
   239      *
       
   240      * @return pointer to StatusPane.
       
   241      * @since S60 5.0
       
   242      */
       
   243     CEikStatusPane* GetStatusPane();
       
   244 
       
   245     /**
       
   246      * Handles lost focus.
       
   247      *
       
   248      * @since S60 5.0
       
   249      */
       
   250     void FocusLost();
       
   251 
       
   252     /**
       
   253      * Closes VKB if editor is loosing visibility, disposing etc.,
       
   254      *
       
   255      * @since S60 5.0
       
   256      */
       
   257     void CloseVKB();
       
   258 
       
   259     /**
       
   260      * Handles disabling of partial VKB.
       
   261      *
       
   262      * @since S60 5.0
       
   263      */
       
   264     void HandlePartialVKBDisable();
       
   265 
       
   266 #endif // RD_JAVA_S60_RELEASE_9_2
       
   267 
       
   268     /**
       
   269      * Handles Scrollbar change event sending.
       
   270      *
       
   271      * @return The scroll bar change event or 0 if it shouldn't be updated.
       
   272      *
       
   273      * @since S60 5.0
       
   274      */
       
   275     TInt ScrollBarEvent();
       
   276 
   231     /**
   277     /**
   232      * Sets the top parent of this control. Note that the ownership
   278      * Sets the top parent of this control. Note that the ownership
   233      * is not transferred to this control.
   279      * is not transferred to this control.
   234      *
   280      *
   235      * The top parent is used when the editor is set as transparent.
   281      * The top parent is used when the editor is set as transparent.
   391     TBool IsInitialized() const;
   437     TBool IsInitialized() const;
   392 
   438 
   393     /**
   439     /**
   394      * Initializes this text editor edwin component.
   440      * Initializes this text editor edwin component.
   395      *
   441      *
   396      * @since S60 5.0
   442      * @param aDisplayable Parent displayable.
   397      */
   443      * @since S60 5.0
   398     void InitializeL();
   444      */
       
   445     void InitializeL(CMIDDisplayable* aDisplayable);
   399 
   446 
   400     /**
   447     /**
   401      * Uninitializes this text editor edwin component.
   448      * Uninitializes this text editor edwin component.
   402      *
   449      *
   403      * @since S60 5.0
   450      * @since S60 5.0
   588     // The top parent of this control. Not owned.
   635     // The top parent of this control. Not owned.
   589     CCoeControl* iParent;
   636     CCoeControl* iParent;
   590     // Direction of writing
   637     // Direction of writing
   591     TAknLayoutId iDirection;
   638     TAknLayoutId iDirection;
   592     // Visible content height used for sending scroll event
   639     // Visible content height used for sending scroll event
   593     TBool iVisibleContentHeight;
   640     TInt iVisibleContentHeight;
       
   641 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   642     // Indicates state of partial VKB
       
   643     TBool iPartialVKBOpen;
       
   644     // Used for Statuspane visibility
       
   645     CAknAppUi* iJavaAppUi;
       
   646     /**
       
   647      * Displayable.
       
   648      * Not own.
       
   649      */
       
   650     CMIDDisplayable* iDisplayable;
       
   651 #endif // RD_JAVA_S60_RELEASE_9_2
   594     // Canvas fullscreen size
   652     // Canvas fullscreen size
   595     TRect iOnScreenCanvasRect;
   653     TRect iOnScreenCanvasRect;
   596     // Flag if scaling is on now.
   654     // Flag if scaling is on now.
   597     TBool iIsScalingOn;
   655     TBool iIsScalingOn;
   598 };
   656 };