classicui_pub/editors_api/inc/EIKEDWIN.H
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 9 aabf2c525e0f
child 15 08e69e956a8c
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
    63 class CAknPointerEventSuppressor;
    63 class CAknPointerEventSuppressor;
    64 class CSmileyManager;
    64 class CSmileyManager;
    65 class CSmileyCustomWrap;
    65 class CSmileyCustomWrap;
    66 class CAknEdwinPhysicsHandler;
    66 class CAknEdwinPhysicsHandler;
    67 class CEdwinAsyncFormat;
    67 class CEdwinAsyncFormat;
       
    68 class MAknsSkinInstance;
    68 
    69 
    69 // Forward declaration of now removed (Series 60 2.0) custom drawer class for CEikEdwin
    70 // Forward declaration of now removed (Series 60 2.0) custom drawer class for CEikEdwin
    70 class CEikAvkonCustomDraw;
    71 class CEikAvkonCustomDraw;
    71 
    72 
    72 // Forward declaration of now removed (Series 60 2.0) custom drawer class for CEikEdwin
    73 // Forward declaration of now removed (Series 60 2.0) custom drawer class for CEikEdwin
   480         TBool iScrolledByScrollBar;
   481         TBool iScrolledByScrollBar;
   481          /**
   482          /**
   482          * Record formatted height of layout
   483          * Record formatted height of layout
   483          */
   484          */
   484         TInt iRecordFormattedHeight;
   485         TInt iRecordFormattedHeight;
       
   486 
       
   487         /**
       
   488          * Skins instance.
       
   489          * Not own.
       
   490          */
       
   491         MAknsSkinInstance* iSkinInstance;
   485         };
   492         };
   486 
   493 
   487 public:
   494 public:
   488 
   495 
   489     /**
   496     /**
  2335     IMPORT_C void EnableKineticScrollingL( TBool aEnable );
  2342     IMPORT_C void EnableKineticScrollingL( TBool aEnable );
  2336 
  2343 
  2337 public: 
  2344 public: 
  2338     void EnableSmileySupportL( TBool aEnableSmiley );
  2345     void EnableSmileySupportL( TBool aEnableSmiley );
  2339     TBool IsSmileyEnabled() const;
  2346     TBool IsSmileyEnabled() const;
  2340     void DrawSmileyInTextL( CBitmapContext& aGc, CFont& aFont, 
  2347     void DrawSmileyInTextL( RRegion& rgn, const TRect& aDrawRect, 
  2341         const TDesC& aText, const TPoint& aPt );
  2348         CBitmapContext& aGc, CFont& aFont, const TDesC& aText, const TPoint& aPt );
  2342     void ConvertVisibleTextForSmileyL( TBool aTextToCode );    
  2349     void ConvertVisibleTextForSmileyL( TBool aTextToCode );
  2343     void HandleScrollForSmileyL();
       
  2344     TBool AdjustCursorForSmileyL( TInt aOldCursor, TCursorSelection& aSelect );
  2350     TBool AdjustCursorForSmileyL( TInt aOldCursor, TCursorSelection& aSelect );
  2345     TRect AdjustDrawRectForSmiley( const TRect& aRect ) const;
  2351     TRect AdjustDrawRectForSmiley( const TRect& aRect ) const;
  2346     void GetClipRegionForSmiley( RRegion& rgn, CFont& aFont, const TDesC& aText, 
       
  2347         const TPoint& aPt, const TRect& aRect ) const;
       
  2348     HBufC* ExtractTextLC( TCursorSelection aSelect );
  2352     HBufC* ExtractTextLC( TCursorSelection aSelect );
  2349     void ConvertSmileyIconToTextL( TInt aStartPos, TDes& aText );
  2353     void ConvertSmileyIconToTextL( TInt aStartPos, TDes& aText );
  2350 
  2354 
  2351 private:
  2355 private:
  2352     void ConvertTextForSmileyL( TCursorSelection aSelect, 
  2356     void ConvertTextForSmileyL( TCursorSelection aSelect, 
  2738     TRect AdjustedViewRect() const;
  2742     TRect AdjustedViewRect() const;
  2739     void SetVKBStatus();
  2743     void SetVKBStatus();
  2740     void ScrollViewToCursorLineL();
  2744     void ScrollViewToCursorLineL();
  2741     void PerformRecordedOperationL();
  2745     void PerformRecordedOperationL();
  2742     void ScrollIfAtTopOrBottomL();
  2746     void ScrollIfAtTopOrBottomL();
  2743     void SetSelectionVisibilityL(TBool isVisable);
  2747     void SetSelectionVisibilityL( TBool aIsVisable );
  2744     
  2748     
  2745     /**
  2749     /**
  2746      * Sets scrollbars with kinetic scrolling.
  2750      * Sets scrollbars with kinetic scrolling.
  2747      */
  2751      */
  2748     void SetKineticScrollingScrollBarsL();
  2752     void SetKineticScrollingScrollBarsL();
  3028      *
  3032      *
  3029      * @return ETrue if kinetic scrolling is enabled.
  3033      * @return ETrue if kinetic scrolling is enabled.
  3030      */
  3034      */
  3031     TBool KineticScrollingEnabled() const;
  3035     TBool KineticScrollingEnabled() const;
  3032 
  3036 
  3033 	
  3037     /**
       
  3038      * Draws background to the whole view area. Call with parameter value ETrue
       
  3039      * must be followed by a call with EFalse or otherwise window's redraw
       
  3040      * isn't ended properly and graphics context is not deactivated.
       
  3041      *
       
  3042      * @param aStart If true then window area occupied by editor's view is
       
  3043      *        invalidated and redraw is began. Also graphics context is
       
  3044      *        activated. EFalse ends the redraw and deactivates graphics
       
  3045      *        context.
       
  3046      */
       
  3047     void DrawViewBackground( TBool aStart ) const;
       
  3048 
  3034 protected:
  3049 protected:
  3035 
  3050 
  3036     /**
  3051     /**
  3037      * Edwin user flags.
  3052      * Edwin user flags.
  3038      */
  3053      */