emailuis/uicomponents/src/fsrichtextobject.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c)  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:  Implementation of class MFsRichTextObject
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "fsrichtextobject.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // GetType
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 MFsRichTextObject::TFsRichTextObjectType MFsRichTextObject::GetType() const
       
    27     {
       
    28     FUNC_LOG;
       
    29     return iType;
       
    30     }
       
    31     
       
    32 // ---------------------------------------------------------------------------
       
    33 // GetBeginOfObject
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 TInt MFsRichTextObject::GetBeginOfObject() const
       
    37     {
       
    38     FUNC_LOG;
       
    39     return iBeginOfObject;   
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // GetEndOfObject
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 TInt MFsRichTextObject::GetEndOfObject() const
       
    47     {
       
    48     FUNC_LOG;
       
    49     return iEndOfObject;    
       
    50     }
       
    51   
       
    52 // ---------------------------------------------------------------------------
       
    53 // SetBeginOfObject
       
    54 // ---------------------------------------------------------------------------
       
    55 //  
       
    56 void MFsRichTextObject::SetBeginOfObject(TInt aBeginOfObject)
       
    57     {
       
    58     FUNC_LOG;
       
    59     iBeginOfObject = aBeginOfObject;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // SetEndOfObject
       
    64 // ---------------------------------------------------------------------------
       
    65 //        
       
    66 void MFsRichTextObject::SetEndOfObject(TInt aEndOfObject)
       
    67     {
       
    68     FUNC_LOG;
       
    69     iEndOfObject = aEndOfObject;
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // SetEmbeded
       
    74 // ---------------------------------------------------------------------------
       
    75 //   
       
    76 void MFsRichTextObject::SetEmbeded(TBool aEmbeded)
       
    77     {
       
    78     FUNC_LOG;
       
    79     iEmbeded = aEmbeded;    
       
    80     }
       
    81    
       
    82 // ---------------------------------------------------------------------------
       
    83 // SetIdOfEmbeded
       
    84 // ---------------------------------------------------------------------------
       
    85 //    
       
    86 void MFsRichTextObject::SetIdOfEmbeded(TInt aIdOfEmbeded)
       
    87     {
       
    88     FUNC_LOG;
       
    89     iIdOfEmbeded = aIdOfEmbeded;
       
    90     }
       
    91     
       
    92 // ---------------------------------------------------------------------------
       
    93 // GetEmbeded
       
    94 // ---------------------------------------------------------------------------
       
    95 //       
       
    96 TBool MFsRichTextObject::GetEmbeded() const
       
    97     {
       
    98     FUNC_LOG;
       
    99     return iEmbeded;
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // GetIdOfEmbeded
       
   104 // ---------------------------------------------------------------------------
       
   105 //      
       
   106 TInt MFsRichTextObject::GetIdOfEmbeded() const
       
   107     {
       
   108     FUNC_LOG;
       
   109     return iIdOfEmbeded;
       
   110     }
       
   111 
       
   112 
       
   113 
       
   114 
       
   115 // ---------------------------------------------------------------------------
       
   116 // SetHotSpot
       
   117 // ---------------------------------------------------------------------------
       
   118 //    
       
   119 void MFsRichTextObject::SetHotSpot(TBool aHotSpot)
       
   120     {
       
   121     FUNC_LOG;
       
   122     iHotSpot = aHotSpot;
       
   123     }
       
   124 // ---------------------------------------------------------------------------
       
   125 // SetIdOfHotSpot
       
   126 // ---------------------------------------------------------------------------
       
   127 //        
       
   128 void MFsRichTextObject::SetIdOfHotSpot(TInt aIdOfHotSpot)
       
   129     {
       
   130     FUNC_LOG;
       
   131     iIdOfHotSpot = aIdOfHotSpot;
       
   132     }
       
   133 // ---------------------------------------------------------------------------
       
   134 // GetHotSpot
       
   135 // ---------------------------------------------------------------------------
       
   136 //        
       
   137 TBool MFsRichTextObject::GetHotSpot() const
       
   138     {
       
   139     FUNC_LOG;
       
   140     return iHotSpot;
       
   141     }
       
   142 // ---------------------------------------------------------------------------
       
   143 // GetIdOfHotSpot
       
   144 // ---------------------------------------------------------------------------
       
   145 //        
       
   146 TInt MFsRichTextObject::GetIdOfHotSpot() const
       
   147     {
       
   148     FUNC_LOG;
       
   149     return iIdOfHotSpot;
       
   150     }
       
   151 // ---------------------------------------------------------------------------
       
   152 // SetTypeOfHotSpot
       
   153 // ---------------------------------------------------------------------------
       
   154 //       
       
   155 void MFsRichTextObject::SetTypeOfHotSpot(TInt aTypeOfHotSpot)
       
   156     {
       
   157     FUNC_LOG;
       
   158     iTypeOfHotSpot = aTypeOfHotSpot;
       
   159     }
       
   160 // ---------------------------------------------------------------------------
       
   161 // GetTypeOfHotSpot
       
   162 // ---------------------------------------------------------------------------
       
   163 //  
       
   164 TInt MFsRichTextObject::GetTypeOfHotSpot()const
       
   165     {
       
   166     FUNC_LOG;
       
   167     return iTypeOfHotSpot;
       
   168     }
       
   169 
       
   170 // ---------------------------------------------------------------------------
       
   171 // SetIsWhiteSpace
       
   172 // ---------------------------------------------------------------------------
       
   173 //  
       
   174 void MFsRichTextObject::SetIsWhiteSpace(TBool aIsWhiteSpace)
       
   175     {
       
   176     FUNC_LOG;
       
   177     iIsWhiteSpace = aIsWhiteSpace;
       
   178     } 
       
   179 
       
   180 // ---------------------------------------------------------------------------
       
   181 // GetWhiteSpace
       
   182 // ---------------------------------------------------------------------------
       
   183 //      
       
   184 TBool MFsRichTextObject::GetIsWhiteSpace() const
       
   185     {
       
   186     FUNC_LOG;
       
   187     return iIsWhiteSpace;
       
   188     }  
       
   189