Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 void CRichTextIndex::ExternalizePhraseCountL(RWriteStream& aStream,TInt aPhraseCount)const
20 {aStream.WriteInt32L(aPhraseCount);}
23 TInt CRichTextIndex::ParagraphCount()const
24 {return (iParaIx)?iParaIx->Count():0;}
27 TInt CRichTextIndex::PhraseCount()const
28 {return (iPhraseIx)?iPhraseIx->Count():0;}
31 const CStreamStore* CRichTextIndex::ResolvedStreamStore(TInt aPos)const
33 MRichTextStoreResolver* res=iText.StoreResolver();
35 ? &(res->StreamStoreL(aPos))
40 void CRichTextIndex::SetPhraseSplit(TBool aBool)
42 if (aBool) iFlags|=KPhraseSplit;
43 else iFlags&=~KPhraseSplit;
47 TBool CRichTextIndex::PhraseSplit()const
48 {return iFlags&KPhraseSplit;}
51 void CRichTextIndex::SetSpecificMarkupInternalized(TBool aBool)
53 if (aBool) iFlags|=KSpecificMarkupInternalized;
54 else iFlags&=~KSpecificMarkupInternalized;
58 TBool CRichTextIndex::SpecificMarkupInternalized()const
59 {return iFlags&KSpecificMarkupInternalized;}
62 RPhraseAttribsEntry::RPhraseAttribsEntry(const RPhraseAttribsEntry& aPhrase)
63 {AssignAndRelease(aPhrase);}
66 RPhraseAttribsEntry& RPhraseAttribsEntry::operator=(const RPhraseAttribsEntry& aPhrase)
68 AssignAndRelease(aPhrase);
72 inline TBool CParaAttribs::IsShared()const
76 inline TBool RPhraseAttribsEntry::IsPicturePhrase()const
77 {return iLength==EPictureIndicator;}
79 inline TInt RPhraseAttribsEntry::Length() const
80 {return (iLength>=0) ? iLength : EPicturePhraseLength;}
84 TInt CRichTextStoreMap<T>::Count()const
85 // Return a count of the number of items in the map
87 {return (iMap) ? iMap->Count() : 0;}
91 const TRichTextMapEntry& CRichTextStoreMap<T>::At(TInt aIndex)const
92 // Return the map entry specified by the the offset aIndex.
94 {return (*iMap)[aIndex];}