wvuing/wvuiave/AppSrc/MCALayoutInfo.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2003-2005 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:  Layout Info interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MCALAYOUTINFO_H
       
    20 #define MCALAYOUTINFO_H
       
    21 
       
    22 //INCLUDES
       
    23 #include "TCAChatListBoxLayout.h"
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 class CFont;
       
    30 class TAknWindowLineLayout;
       
    31 class TAknTextLineLayout;
       
    32 class TAknMultiLineTextLayout;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37  *  Interface for Layout and render info for Chat Listbox's item drawer and view
       
    38  *
       
    39  *  @since 2.8
       
    40  */
       
    41 class MCALayoutInfo
       
    42     {
       
    43     public: // Interface
       
    44 
       
    45         virtual void SetLayoutID( TChatListBoxLayout::TLayout aLayout ) = 0;
       
    46 
       
    47         virtual TInt LayoutID() = 0;
       
    48 
       
    49         virtual TBool Mirrored() = 0;
       
    50 
       
    51         virtual const CFont* NickFont() = 0;
       
    52 
       
    53         virtual const CFont* MessageFont() = 0;
       
    54 
       
    55         virtual TInt LineHeight() = 0;
       
    56 
       
    57         virtual TInt MaxLineWidth() = 0;
       
    58 
       
    59         virtual TInt MaxNickWidth() = 0;
       
    60 
       
    61         virtual TInt MaxLines() = 0;
       
    62 
       
    63         virtual TRect MainPaneRect() = 0;
       
    64 
       
    65         virtual TInt Indent() = 0;
       
    66 
       
    67         virtual TRect ScreenRect() = 0;
       
    68 
       
    69         virtual void SetEditorVisibility( TBool aVisible ) = 0;
       
    70 
       
    71         virtual TBool EditorVisibility() = 0;
       
    72 
       
    73         virtual TAknWindowLineLayout im_reading_pane( TInt aIndex_H ) = 0;
       
    74 
       
    75         virtual TAknWindowLineLayout im_reading_field( TInt aIndex_t ) = 0;
       
    76 
       
    77         virtual TAknWindowLineLayout IM_text_elements( TInt aLineIndex ) = 0;
       
    78 
       
    79         virtual TAknTextLineLayout IM_reading_pane_texts_Line_1(
       
    80             TInt aCommon1 ) = 0;
       
    81 
       
    82         virtual TAknTextLineLayout IM_reading_pane_texts_Line_2() = 0;
       
    83 
       
    84         virtual TAknWindowLineLayout IM_text_elements_Line_1() = 0;
       
    85 
       
    86         virtual TAknWindowLineLayout IM_text_elements_Line_2() = 0;
       
    87 
       
    88         virtual TAknWindowLineLayout IM_reading_field_highlight_graphics_Line_1(
       
    89             const TRect& aParentRect ) = 0;
       
    90 
       
    91         virtual TAknWindowLineLayout IM_reading_field_highlight_graphics_Line_2(
       
    92             const TRect& aParentRect ) = 0;
       
    93 
       
    94         virtual TAknWindowLineLayout im_writing_pane( TInt aCommon1 ) = 0;
       
    95 
       
    96         virtual TAknWindowLineLayout IM_writing_field_elements_Line_1(
       
    97             TInt aIndex_H ) = 0;
       
    98 
       
    99         virtual TAknWindowLineLayout IM_writing_field_elements_Line_2() = 0;
       
   100 
       
   101         virtual TAknWindowLineLayout IM_writing_field_elements_Line_3(
       
   102             TInt aIndex_H ) = 0;
       
   103 
       
   104         virtual TAknMultiLineTextLayout Multiline_IM_writing_pane_texts_Line_1(
       
   105             TInt aNumberOfLinesShown ) = 0;
       
   106 
       
   107         virtual TAknTextLineLayout IM_navi_pane_texts_Line_1(
       
   108             TInt aIndex_C, TInt aIndex_W ) = 0;
       
   109 
       
   110         virtual void DPLayout( const TDesC& aStr,
       
   111                                const TAknTextLineLayout aLayout ) = 0;
       
   112 
       
   113         virtual void DPLayout( const TDesC& aStr,
       
   114                                const TAknWindowLineLayout aLayout ) = 0;
       
   115 
       
   116         virtual void DPRect( const TDesC& aStr, const TRect& aRect ) = 0;
       
   117     protected:
       
   118 
       
   119         virtual ~MCALayoutInfo() {};
       
   120 
       
   121     };
       
   122 
       
   123 #endif      // MCALAYOUTINFO_H
       
   124 
       
   125 // End of File