mobilemessaging/postcard/postcardinc/PostcardLaf.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 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:  PostcardLaf  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef POSTCARDLAF_H
       
    21 #define POSTCARDLAF_H
       
    22 
       
    23 // ========== INCLUDE FILES ================================
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32def.h>
       
    27 #include <eikenv.h>
       
    28 
       
    29 // ========== CONSTANTS ====================================
       
    30 
       
    31 // Postcard bitmaps
       
    32 _LIT(KPostcardMifFile,              "postcard.mif" );
       
    33 _LIT(KMmsUiLogFile,					"MMSUI.TXT");
       
    34 _LIT(KPostcardResourceFile,     	"postcard.rsc");
       
    35 _LIT(KMsgEditorAppUiResourceFile, 	"msgeditorappui.rsc");
       
    36 
       
    37 _LIT(KPostcardFilenameNoOp, 		"postcard.jpg");
       
    38 _LIT(KPostcardFilenameNoOpGif, 		"postcard.gif");
       
    39 _LIT(KPostcardFilenameScaled, 		"postcard2.jpg");
       
    40 _LIT(KPostcardFilenameCompressed, 	"postcard3.jpg");
       
    41 
       
    42 // ========== MACROS =======================================
       
    43 
       
    44 // ========== LOGGING MACROS ===============================
       
    45 
       
    46 // =========================================================
       
    47 
       
    48 // ========== DATA TYPES ===================================
       
    49 
       
    50 // ========== FUNCTION PROTOTYPES ==========================
       
    51 
       
    52 // ========== FORWARD DECLARATIONS =========================
       
    53 
       
    54 // ========== CLASS DECLARATION ============================
       
    55 
       
    56 // CLASS DECLARATION
       
    57 /**
       
    58 * PostcardLaf reads and returns the values of differents components from LAF.
       
    59 */
       
    60 class PostcardLaf
       
    61     {
       
    62     public:
       
    63 
       
    64     /*
       
    65     *
       
    66     */
       
    67     static TRect MainPostcardPane( );
       
    68 
       
    69     /*
       
    70     *
       
    71     */
       
    72     static TRect RelativeMainPostcardPane( );
       
    73 
       
    74     /*
       
    75     *
       
    76     */
       
    77     static TRect PostcardPane( );
       
    78 
       
    79     /*
       
    80     *
       
    81     */
       
    82     static TRect RelativePostcardPane( );
       
    83 
       
    84     /*
       
    85     *
       
    86     */
       
    87     static TRect UpperArrow( );
       
    88 
       
    89     /*
       
    90     *
       
    91     */
       
    92     static TRect LowerArrow( );
       
    93 
       
    94     /*
       
    95     *
       
    96     */
       
    97     static TRect BackBackground( );
       
    98 
       
    99     /*
       
   100     *
       
   101     */
       
   102     static TRect FrontBackground( );
       
   103 
       
   104     /*
       
   105     *
       
   106     */
       
   107     static TRect FrontBackgroundWithoutImage( );
       
   108 
       
   109     /*
       
   110     *
       
   111     */
       
   112     static TRect Stamp( );
       
   113 
       
   114     /*
       
   115     *
       
   116     */
       
   117     static TRect InsertImageIcon( );
       
   118 
       
   119     /*
       
   120     *
       
   121     */
       
   122     static TRect InsertImageBg( );
       
   123 
       
   124     /*
       
   125     *
       
   126     */
       
   127     static TRect Image( );
       
   128 
       
   129     /*
       
   130     *
       
   131     */
       
   132     static TRect Address( );
       
   133 
       
   134     /*
       
   135     *
       
   136     */
       
   137     static TRect AddressFocus( );
       
   138 
       
   139     /*
       
   140     *
       
   141     */
       
   142     static TRect GreetingText( );
       
   143 
       
   144     /*
       
   145     *
       
   146     */
       
   147     static TRect GreetingTextFocus( );
       
   148 
       
   149     /*
       
   150     *
       
   151     */
       
   152     static TRect WholeMainPaneForDialogs( );
       
   153 
       
   154 
       
   155     /*
       
   156     *
       
   157     */
       
   158     static void ActiveFont( TCharFormat& aChar, TCharFormatMask& aCharMask,
       
   159     						CParaFormat& aPara, TParaFormatMask& aParaMask );
       
   160 
       
   161     /*
       
   162     *
       
   163     */
       
   164     static void MiniatureFont( TCharFormat& aChar, TCharFormatMask& aCharMask,
       
   165     						CParaFormat& aPara, TParaFormatMask& aParaMask );
       
   166 	
       
   167     /*
       
   168     *
       
   169     */
       
   170 	static TInt BaselineDelta( );
       
   171 	
       
   172     /*
       
   173     *
       
   174     */
       
   175 	static TInt BaselineTop( );
       
   176 	
       
   177     /*
       
   178     *
       
   179     */
       
   180 	static TInt LeftMargin( );
       
   181 
       
   182     /**
       
   183     * @since 3.2
       
   184     */
       
   185     static TInt ScrollBarWidth();
       
   186     
       
   187     /*
       
   188     * @since 3.2
       
   189     */
       
   190     static TInt GreetingFocusLineCount();
       
   191     };
       
   192 
       
   193 #endif //ifndef POSTCARDLAF
       
   194 
       
   195 // End of File