|
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 defines classes CNewLineField, CPictureField, CSmileyField |
|
15 * |
|
16 */ |
|
17 #ifndef C_FSRICHTEXTFIELDS_H |
|
18 #define C_FSRICHTEXTFIELDS_H |
|
19 |
|
20 #include <fldbase.h> |
|
21 |
|
22 const TUid KFsRichTextPictureFieldUid = {268435540}; |
|
23 const TUid KFsRichTextSmileyFieldUid = {268435539}; |
|
24 const TUid KFsRichTextNewLineFieldUid = {268435538}; |
|
25 |
|
26 |
|
27 class CNewLineField : public CTextField |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * CNewLineField() |
|
32 * |
|
33 * |
|
34 */ |
|
35 CNewLineField(); |
|
36 |
|
37 /** |
|
38 * Value(TPtr& aValueText); |
|
39 * |
|
40 * @param aValueText |
|
41 */ |
|
42 TInt Value(TPtr& aValueText); |
|
43 |
|
44 /** |
|
45 * InternalizeL(RReadStream& aStream); |
|
46 * |
|
47 * @param aStream |
|
48 */ |
|
49 void InternalizeL(RReadStream& aStream); |
|
50 |
|
51 /** |
|
52 * Type()const; |
|
53 * |
|
54 * |
|
55 */ |
|
56 TUid Type()const; |
|
57 }; |
|
58 |
|
59 |
|
60 class CPictureField : public CTextField |
|
61 { |
|
62 public: |
|
63 /** |
|
64 * CPictureField(TSize aSize); |
|
65 * |
|
66 * @param aSize |
|
67 */ |
|
68 CPictureField(TSize aSize); |
|
69 |
|
70 /** |
|
71 * Value(TPtr& aValueText); |
|
72 * |
|
73 * @param aValueText |
|
74 */ |
|
75 TInt Value(TPtr& aValueText); |
|
76 |
|
77 /** |
|
78 * InternalizeL(RReadStream& aStream); |
|
79 * |
|
80 * @param aStream |
|
81 */ |
|
82 void InternalizeL(RReadStream& aStream); |
|
83 |
|
84 /** |
|
85 * Type()const; |
|
86 * |
|
87 * |
|
88 */ |
|
89 TUid Type()const; |
|
90 |
|
91 /** |
|
92 * GetSize(TSize& aSize); |
|
93 * |
|
94 * @param aSize |
|
95 */ |
|
96 void GetSize(TSize& aSize); |
|
97 |
|
98 protected: |
|
99 TSize iSize; |
|
100 }; |
|
101 |
|
102 |
|
103 class CSmileyField : public CTextField |
|
104 { |
|
105 public: |
|
106 /** |
|
107 * CSmileyField(TInt aSmileyIndex); |
|
108 * |
|
109 * @param aSmileyIndex |
|
110 */ |
|
111 CSmileyField(TInt aSmileyIndex); |
|
112 |
|
113 /** |
|
114 * Value(TPtr& aValueText); |
|
115 * |
|
116 * @param aValueText |
|
117 */ |
|
118 TInt Value(TPtr& aValueText); |
|
119 |
|
120 /** |
|
121 * InternalizeL(RReadStream& aStream); |
|
122 * |
|
123 * @param aStream |
|
124 */ |
|
125 void InternalizeL(RReadStream& aStream); |
|
126 |
|
127 /** |
|
128 * Type()const; |
|
129 * |
|
130 * |
|
131 */ |
|
132 TUid Type()const; |
|
133 |
|
134 /** |
|
135 * GetSmileyIndex(); |
|
136 * |
|
137 * |
|
138 */ |
|
139 TInt GetSmileyIndex(); |
|
140 |
|
141 protected: |
|
142 TInt iSmileyIndex; |
|
143 }; |
|
144 |
|
145 #endif //FSRICHTEXTFIELDS_H |