emailuis/uicomponents/src/fsrichtextfields.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2009 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: This file implements classes CPictureField, CSmileyField, CNewLineField. 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "emailtrace.h"
       
    19 #include "fsrichtextfields.h"
       
    20 
       
    21 CPictureField::CPictureField(TSize aSize):iSize(aSize)
       
    22     {
       
    23     FUNC_LOG;
       
    24         
       
    25     }
       
    26     
       
    27 TInt CPictureField::Value(TPtr& /*aValueText*/)
       
    28     {
       
    29     FUNC_LOG;
       
    30     return 0;  
       
    31     }
       
    32     
       
    33 void CPictureField::InternalizeL(RReadStream& /*aStream*/)
       
    34     {
       
    35     FUNC_LOG;
       
    36         
       
    37     }
       
    38     
       
    39 TUid CPictureField::Type() const
       
    40     {
       
    41     FUNC_LOG;
       
    42     return KFsRichTextPictureFieldUid;    
       
    43     }
       
    44     
       
    45 void CPictureField::GetSize(TSize& aSize)
       
    46     {
       
    47     FUNC_LOG;
       
    48     aSize.iHeight = iSize.iHeight;
       
    49     aSize.iWidth = aSize.iWidth;   
       
    50     }
       
    51 
       
    52 
       
    53 
       
    54 CSmileyField::CSmileyField(TInt aSmileyIndex):iSmileyIndex(aSmileyIndex)
       
    55     {
       
    56     FUNC_LOG;
       
    57     
       
    58     }
       
    59     
       
    60 TInt CSmileyField::Value(TPtr& /*aValueText*/)
       
    61     {
       
    62     FUNC_LOG;
       
    63     return 0;  
       
    64     }
       
    65     
       
    66 void CSmileyField::InternalizeL(RReadStream& /*aStream*/)
       
    67     {
       
    68     FUNC_LOG;
       
    69     
       
    70     }
       
    71     
       
    72 TUid CSmileyField::Type()const
       
    73     {
       
    74     FUNC_LOG;
       
    75     return KFsRichTextSmileyFieldUid;
       
    76     }
       
    77     
       
    78 TInt CSmileyField::GetSmileyIndex()
       
    79     {
       
    80     FUNC_LOG;
       
    81     return iSmileyIndex;
       
    82     }
       
    83 
       
    84 
       
    85 CNewLineField::CNewLineField()
       
    86     {
       
    87     FUNC_LOG;
       
    88     
       
    89     }
       
    90     
       
    91 TInt CNewLineField::Value(TPtr& /*aValueText*/)
       
    92     {
       
    93     FUNC_LOG;
       
    94     return 0;  
       
    95     }
       
    96     
       
    97 void CNewLineField::InternalizeL(RReadStream& /*aStream*/)
       
    98     {
       
    99     FUNC_LOG;
       
   100     
       
   101     }
       
   102     
       
   103 TUid CNewLineField::Type()const
       
   104     {
       
   105     FUNC_LOG;
       
   106     return KFsRichTextNewLineFieldUid;
       
   107     }
       
   108     
       
   109