uifw/EikStd/coctlsrc/smileycustomwrap.cpp
branchRCL_3
changeset 59 978afdc0236f
parent 0 2f259fa3e83a
child 72 a5e7a4f63858
equal deleted inserted replaced
56:d48ab3b357f1 59:978afdc0236f
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  smiely engine class
    14 * Description:  smiely engine class
    15 *
    15 *
    16 */
    16 */
    17 
    17 #include <AknSmileyUtils.h>
    18 #include "smileymanager.h"
    18 #include "smileymanager.h"
    19 #include "smileycustomwrap.h"
    19 #include "smileycustomwrap.h"
    20 
    20 
    21 // ======== MEMBER FUNCTIONS ========
    21 // ======== MEMBER FUNCTIONS ========
    22 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    49         {
    49         {
    50         breakClass = MTmCustom::EOpLineBreakClass;
    50         breakClass = MTmCustom::EOpLineBreakClass;
    51         customWrap->iPrevCodeIsSmiley = !iPlaceHolder;
    51         customWrap->iPrevCodeIsSmiley = !iPlaceHolder;
    52         customWrap->iPlaceHolder = EFalse;
    52         customWrap->iPlaceHolder = EFalse;
    53         }
    53         }
    54     else if ( ( iPrevCodeIsSmiley || iPlaceHolder ) && aCode == CSmileyManager::KCompensateChar )
    54     else if ( ( iPrevCodeIsSmiley || iPlaceHolder ) && aCode == CAknSmileyManager::KCompensateChar )
    55         {
    55         {
    56         breakClass = MTmCustom::EClLineBreakClass;
    56         breakClass = MTmCustom::EClLineBreakClass;
    57         customWrap->iPrevCodeIsSmiley = EFalse;
    57         customWrap->iPrevCodeIsSmiley = EFalse;
    58         } 
    58         } 
    59     else if ( aCode == CSmileyManager::KPlaceHolder )        
    59     else if ( aCode == CAknSmileyManager::KPlaceHolder )        
    60         { 
    60         { 
    61         breakClass = MTmCustom::EB2LineBreakClass;
    61         breakClass = MTmCustom::EB2LineBreakClass;
    62         customWrap->iPlaceHolder = ETrue;
    62         customWrap->iPlaceHolder = ETrue;
    63         }
    63         }
    64     return breakClass;
    64     return breakClass;