emailuis/uicomponents/inc/fstextviewerselect.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Base class for selectables (hotspots and expand areas)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSTEXTVIEWERSELECT_H
       
    20 #define C_FSTEXTVIEWERSELECT_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CFsTextViewerSelectsManager;
       
    25 class TFsRangedVisual;
       
    26 
       
    27 class CFsTextViewerSelect : public CBase
       
    28     {
       
    29     public:
       
    30         enum TFsTextViewerSelectType
       
    31             {
       
    32             EFsHotspotType,
       
    33             EFsLineType,
       
    34             EFsEmbedType
       
    35             }; 
       
    36 
       
    37     public:
       
    38         virtual ~CFsTextViewerSelect();
       
    39         void SetType( TFsTextViewerSelectType aType );
       
    40         TFsTextViewerSelectType GetType();
       
    41         void SetId( TInt aId );
       
    42         TInt GetId() const;
       
    43         void AppendVisualL( TFsRangedVisual* aVisual );
       
    44         virtual void SelectL() = 0;
       
    45         virtual void DeselectL() = 0;
       
    46         virtual void SelectedL() = 0;
       
    47         void RemoveVisual( TFsRangedVisual* aVisual );
       
    48         TInt GetStartLine();
       
    49         TInt GetStartHeight();
       
    50         TBool IsVisible();
       
    51 
       
    52     public:
       
    53         TRect iRect;
       
    54         TInt iEndChar;
       
    55 
       
    56     protected:
       
    57         void ConstructL();
       
    58 
       
    59     protected:
       
    60         TFsTextViewerSelectType iType;
       
    61         TInt iId;
       
    62         RPointerArray<TFsRangedVisual> iVisuals;
       
    63         CFsTextViewerSelectsManager* iManager;
       
    64     };
       
    65 
       
    66 #endif //C_FSTEXTVIEWERSELECT_H