notepad/notepad1/inc/NpdEditorLaf.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:  Declaration of control for papaer lines of editor.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NPDEDITORLAF_H
       
    20 #define NPDEDITORLAF_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 #include "NpdViewerLaf.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class TResourceReader;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 * Control for paper lines of the editor.
       
    32 * CNotepadEditorLaf is a control class for paper lines of the editor.
       
    33 * Decoration graphics are supported by the parent class CNotepadViewerLaf.
       
    34 *  
       
    35 * @lib NpdLib.lib
       
    36 * @see CNotepadEditorDialog, CNotepadViewerLaf
       
    37 */
       
    38 class CNotepadEditorLaf : public CNotepadViewerLaf
       
    39     {
       
    40     public: // Constuctor and destructor
       
    41 
       
    42         /**
       
    43         * Constructor.
       
    44         *
       
    45         * @param aParent CNotepadEditorDialog.
       
    46         */
       
    47         CNotepadEditorLaf(CEikDialog* aParent);
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CNotepadEditorLaf();
       
    53 
       
    54     protected:  // Functions from base classes
       
    55 
       
    56         /**
       
    57         * From CNotepadViewerLaf.
       
    58         * Attach rectangles for this control's shape and
       
    59         * Layout if need.
       
    60         *
       
    61         * @param aRect for layout.
       
    62         * @param aRegion for SetShape.
       
    63         */
       
    64         void AddRectsAndLayout(const TRect& aRect, RRegion& aRegion);
       
    65 
       
    66         /**
       
    67         * From CCoeControl.
       
    68         * Construct this control from its resource.
       
    69         *
       
    70         * @param aReader resource reader already opened.
       
    71         */
       
    72         void ConstructFromResourceL(TResourceReader& aReader);
       
    73 
       
    74     private:  // Functions from base classes
       
    75 
       
    76         /**
       
    77         * From CCoeControl.
       
    78         * Draw.
       
    79         */
       
    80         void Draw(const TRect& aRect) const;
       
    81 
       
    82     private:  // Data
       
    83 
       
    84         RArray<TAknLayoutRect> iRects; // own
       
    85     };
       
    86 
       
    87 #endif // NPDEDITORLAF_H
       
    88 
       
    89 // End of File