meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrviewerattendeesfield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c)  Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    54     CCoeControl* ComponentControl( TInt aInd ) const;
    54     CCoeControl* ComponentControl( TInt aInd ) const;
    55     void SizeChanged( );
    55     void SizeChanged( );
    56     TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
    56     TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
    57     void SetContainerWindowL(const CCoeControl& aContainer);
    57     void SetContainerWindowL(const CCoeControl& aContainer);
    58     TSize MinimumSize();
    58     TSize MinimumSize();
    59     virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    60 
    59 
    61 public: // From CESMRField
    60 public: // From CESMRField
    62     void InitializeL();
    61     void InitializeL();
    63     void SetOutlineFocusL( TBool aFocus );
    62     void SetOutlineFocusL( TBool aFocus );
    64     void InternalizeL( MESMRCalEntry& aEntry );
    63     void InternalizeL( MESMRCalEntry& aEntry );
    65     void GetMinimumVisibleVerticalArea(TInt& aUpper, TInt& aLower);
    64     void GetMinimumVisibleVerticalArea(TInt& aUpper, TInt& aLower);
       
    65     void GetCursorLineVerticalPos(TInt& aUpper, TInt& aLower);
    66     void ListObserverSet( );
    66     void ListObserverSet( );
    67     void ExecuteGenericCommandL( TInt aCommand );
    67     TBool ExecuteGenericCommandL( TInt aCommand );
       
    68     void HandleLongtapEventL( const TPoint& aPosition );
    68 
    69 
    69 public: // From MEikEdwinSizeObserver
    70 public: // From MEikEdwinSizeObserver
    70     TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aType,
    71     TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aType,
    71             TSize aDesirableEdwinSize );
    72             TSize aDesirableEdwinSize );
    72 
    73 
    76 private: // Implementation
    77 private: // Implementation
    77     CESMRViewerAttendeesField( CCalAttendee::TCalRole aType );
    78     CESMRViewerAttendeesField( CCalAttendee::TCalRole aType );
    78     void ConstructL( );
    79     void ConstructL( );
    79     HBufC* ClipTextLC( const TDesC& aText, const CFont& aFont, TInt aWidth );
    80     HBufC* ClipTextLC( const TDesC& aText, const CFont& aFont, TInt aWidth );
    80     void UpdateAttendeesListL();
    81     void UpdateAttendeesListL();
       
    82     TInt LineSpacing();
       
    83     TInt FocusMargin();
    81 
    84 
    82 private: // data
    85 private: // data
    83     // Own: Title of this field
    86     // Own: Title of this field
    84     CMRLabel* iTitle;
    87     CMRLabel* iTitle;
    85     // Own: Container for all the attendees
    88     // Not own: Container for all the attendees
    86     CESMRRichTextViewer* iRichTextViewer;
    89     CESMRRichTextViewer* iRichTextViewer;
    87     // Size of the field when after field has expanded.
    90     // Size of the field when after field has expanded.
    88     TSize iExpandedSize;
    91     TSize iExpandedSize;
    89     // Size of the title
    92     // Size of the title
    90     TSize iTitleSize;
    93     TSize iTitleSize;