calendarui/views/inc/calenmonthcelllistboxitemdrawer.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 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:   Prepareing to draw a cell(setting color and underline).
       
    15  *                Moreover, drawing cell's bottom and right lines.
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CALENMONTHCELLLISTBOXITEMDRAWER_H
       
    22 #define CALENMONTHCELLLISTBOXITEMDRAWER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <eikfrlb.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CCalenMonthGrid;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  Prepareing to draw a cell(setting color and underline).
       
    34  *  And drawing cell's bottom and right lines.
       
    35  */
       
    36 NONSHARABLE_CLASS( CCalenMonthCellListBoxItemDrawer )
       
    37     : public CFormattedCellListBoxItemDrawer
       
    38     {
       
    39 public:  // Constructors and destructor
       
    40 
       
    41     /**
       
    42      * C++ constructor.
       
    43      */
       
    44     CCalenMonthCellListBoxItemDrawer(
       
    45         MTextListBoxModel* aTextListBoxModel,
       
    46         CCalenMonthGrid* aCalendarMonthGrid,
       
    47         const CFont* aFont,
       
    48         CFormattedCellListBoxData* aFormattedCellData);
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     virtual ~CCalenMonthCellListBoxItemDrawer();
       
    53 
       
    54 private: // from CTextListItemDrawer
       
    55     /**
       
    56      * From CTextListItemDrawer
       
    57      * Prepareing to draw a cell(setting color and underline).
       
    58      * And drawing cell's bottom and right lines.
       
    59      */
       
    60     void DrawItemText(TInt aItemIndex,
       
    61                       const TRect& aItemTextRect,
       
    62                       TBool aItemIsCurrent,
       
    63                       TBool aViewIsEmphasized,
       
    64                       TBool aItemIsSelected) const;
       
    65 
       
    66 private: // new data
       
    67     CCalenMonthGrid* iCalendarMonthGrid;
       
    68     };
       
    69 
       
    70 #endif // CALENMONTHCELLLISTBOXITEMDRAWER_H
       
    71 
       
    72 
       
    73 // End of File