equal
deleted
inserted
replaced
1 txtetext.inl |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 TBool CEditableText::HasChanged()const |
|
19 /** Tests whether the editable text object has been changed by an operation on |
|
20 it, as set by SetHasChanged(). |
|
21 |
|
22 @return ETrue if a change has occurred to the text object. EFalse if there |
|
23 has been no change. */ |
|
24 {return iHasChanged;} |
|
25 |
|
26 |
|
27 TBool CPlainText::FieldSetPresent()const |
|
28 {return (iFieldSet.IsPtr() && iFieldSet.AsPtr()!=NULL);} |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 const MTextFieldFactory* CPlainText::FieldFactory()const |
|
34 /** Gets a pointer to the field factory used by the text object. The field factory |
|
35 may be set up using SetFieldFactory(), or may be specified in the NewL(). |
|
36 |
|
37 @return The field factory. NULL if no field factory has been set up. */ |
|
38 {return (FieldSetPresent()) ? iFieldSet->FieldFactory() : NULL;} |
|
39 |
|
40 |
|
41 void CPlainText::ConsumeAdornmentL(RReadStream& aStream) |
|
42 { |
|
43 TStreamId id; |
|
44 aStream>> id; |
|
45 } |
|
46 |
|
47 |
|
48 TUid CPlainText::UidFromStreamL(RReadStream& aStream) |
|
49 { |
|
50 TUid uid; |
|
51 aStream>> uid; |
|
52 return uid; |
|
53 } |