javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/swthyperlink.h
branchRCL_3
changeset 24 6c158198356e
parent 17 0fd27995241b
equal deleted inserted replaced
23:e5618cc85d74 24:6c158198356e
    64     void DrawText(CWindowGc& aGc,
    64     void DrawText(CWindowGc& aGc,
    65                   const CFont* aFont,
    65                   const CFont* aFont,
    66                   const TDesC& aText,
    66                   const TDesC& aText,
    67                   const TRect& aTextRect,
    67                   const TRect& aTextRect,
    68                   const CGraphicsContext::TTextAlign& aAlignment) const;
    68                   const CGraphicsContext::TTextAlign& aAlignment) const;
    69     void UpdateSkinColor();
       
    70     void UpdateDefaultFontL();
    69     void UpdateDefaultFontL();
    71     void LaunchHandler();
    70     void LaunchHandler();
    72     TPtrC Scheme();
    71     TPtrC Scheme();
       
    72     TRgb LinkColor() const;
       
    73     TRgb LinkBgColor() const;
       
    74     TRgb PressedLinkColor() const;
    73 
    75 
    74 // From base class CCoeControl
    76 // From base class CCoeControl
    75 
    77 
    76 public:
    78 public:
    77     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    79     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
    92     void               ProcessKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    94     void               ProcessKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    93     void               HandlePointerEventL(const TPointerEvent& aPointerEvent);
    95     void               HandlePointerEventL(const TPointerEvent& aPointerEvent);
    94 public:
    96 public:
    95     void               SetForegroundL(const MSwtColor* aColor);
    97     void               SetForegroundL(const MSwtColor* aColor);
    96     TSize              ComputeSizeL(TInt aWHint, TInt aHHint);
    98     TSize              ComputeSizeL(TInt aWHint, TInt aHHint);
       
    99     TInt               PressBackgroundPolicy() const;
    97 
   100 
    98 // From base class ASwtControlBase
   101 // From base class ASwtControlBase
    99 
   102 
   100 protected:
   103 protected:
   101     const MSwtFont& DefaultFont() const;
   104     const MSwtFont& DefaultFont() const;
   130      * Own.
   133      * Own.
   131      */
   134      */
   132     MSwtFont* iDefaultFont;
   135     MSwtFont* iDefaultFont;
   133 
   136 
   134     /**
   137     /**
   135      * Link fragment text color.
   138      * Custom foreground color used by the non pressed link.
       
   139      * Not own.
   136      */
   140      */
   137     TRgb iLinkColor;
   141     const MSwtColor* iCustomFg;
   138 
       
   139     /**
       
   140      * Link fragment text color when highlighted.
       
   141      */
       
   142     TRgb iHighlightedLinkColor;
       
   143 
       
   144     /**
       
   145      * Link fragment back highlight color.
       
   146      */
       
   147     TRgb iHighlightColor;
       
   148 
       
   149     /**
       
   150      * True if currently used text color is a color set by the Java application.
       
   151      */
       
   152     TBool iCustomTextColor;
       
   153 
   142 
   154     /**
   143     /**
   155      * The format of the hyperlink. Textual formatting done and the handler
   144      * The format of the hyperlink. Textual formatting done and the handler
   156      * to launch depends on this.
   145      * to launch depends on this.
   157      */
   146      */
   160     /**
   149     /**
   161      * Feedback instance.
   150      * Feedback instance.
   162      * Not own.
   151      * Not own.
   163      */
   152      */
   164     MTouchFeedback* iFeedback;
   153     MTouchFeedback* iFeedback;
   165 
       
   166     /**
       
   167      * True for as long as pressed by pointer.
       
   168      * Eclipses ASwtControlBase::iPressed!
       
   169      */
       
   170     TBool iPressed;
       
   171 };
   154 };
   172 
   155 
   173 
   156 
   174 #endif // SWTHYPERLINK_H
   157 #endif // SWTHYPERLINK_H
   175 
   158