CFsTextParser Class Reference

class CFsTextParser : public CBase

Inherits from

Public Member Functions
~CFsTextParser()
voidCutWord(TInt, TInt)
TInt GetBodyIndexOfExpandAreaL(TInt)
TInt GetEndIndexOfExpandAreaL(TInt)
TInt GetEndIndexOfHotSpotAreaL(TInt, TBool)
MFsRichTextObject *GetNextObjectL()
TBidiText::TDirectionality GetParagraphDirection(TInt)
CFsRichText *GetRichTextL(TInt, TInt)
TInt GetStartIndexOfExpandAreaL(TInt)
TInt GetStartIndexOfHotSpotAreaL(TInt, TBool)
HBufC *GetTextL(TInt, TInt)
CFsTexture &GetTextureL(TInt)
TBool IsNextObject()
voidMoveBack()
TBool MoveParsingPosition(TInt)
CFsTextParser *NewL(CFsRichText &, CAlfEnv &, CFsTextureLoader *)
TBool ParseTextL()
TBool SetExpandStatusL(TInt, TBool)
TBool SetParsingPosition(TInt)
voidSetSizeOfSmile(TSize)
voidSetSmileyParser(CFsSmileyParser *)
TBool SetTextDirection(TInt, TInt, TBidiText::TDirectionality)
voidSetTextStylemanager(CFsTextStyleManager *)
Private Member Functions
CFsTextParser(CFsRichText &, CAlfEnv &, CFsTextureLoader *)
voidConstructL()
voidConvertBitmapL(CPicture *, CFbsBitmap *&)
voidFindBlokOfText()
voidFindNextBlokOfText()
TBool IsFieldInrange(TInt, TInt)
TInt IsNewLinePresent(TInt, TInt)
TBool IsPartOfHotSpot(TInt)
TBool IsTexturePosition(TInt, TInt &)
TInt IsWordPartOfExpandArea(TInt, TInt)
TInt IsWordPartOfHotSpotArea(TInt, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CEikonEnv *iEikon
CAlfEnv &iEnv
RArray< TRichTextExapandArea >iExpandArray
RArray< TInt >iFieldLocation
TCharFormat iGNOCharFormat
TCharFormat iGNOCharFormatOfNextBlock
TInt iGNONextPosition
TPtrC iGNOSomeText
TPtrC iGNOSomeTextOfNextBlock
TBool iGetCharsUsed
TBool iGetCharsUsedOfNextBlock
RArray< TRichTextHotSpotArea >iHotSpotArray
TBool iIsSetSizeOfSmiley
TBool iIsWordTooLong
TInt iLastGetCharsLength
TInt iLastGetCharsLengthOfNextBlock
TInt iLastGetCharsPos
TInt iLastGetCharsPosOfNextBlock
TInt iLastLength
TInt iLastNewLinePositionIndex
TInt iLastPosition
TInt iLastWordPosition
RArray< TBidiText::TDirectionality >iLineDirection
TInt iNewLengthOfWord
RArray< TInt >iNewLineArray
TInt iNewLineArrayIndex
TInt iPosition
TSize iSizeOfSmiley
CFsSmileyParser *iSmileyParser
CFsRichText &iText
CFsTextStyleManager *iTextStyleManager
RArray< TTextureIndex >iTextureIndex
CFsTextureLoader *iTextureLoader
TInt iTypeOfLastObject

Constructor & Destructor Documentation

CFsTextParser(CFsRichText &, CAlfEnv &, CFsTextureLoader *)

CFsTextParser(CFsRichText &aText,
CAlfEnv &aEnv,
CFsTextureLoader *aTextureLoader
)[private]

CFsTextParser( CFsRichText& aText, CHuiEnv& aEnv );

Parameters

CFsRichText & aText
CAlfEnv & aEnv
CFsTextureLoader * aTextureLoader

~CFsTextParser()

~CFsTextParser()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

ConvertBitmapL(CPicture *, CFbsBitmap *&)

voidConvertBitmapL(CPicture *aPicture,
CFbsBitmap *&aBitmap
)[private]

Parameters

CPicture * aPicture
CFbsBitmap *& aBitmap

CutWord(TInt, TInt)

voidCutWord(TIntaBeginOfWord,
TIntaNewLengthOfWord
)

Parameters

TInt aBeginOfWord
TInt aNewLengthOfWord

FindBlokOfText()

voidFindBlokOfText()[private]

FindNextBlokOfText()

voidFindNextBlokOfText()[private]

GetBodyIndexOfExpandAreaL(TInt)

TInt GetBodyIndexOfExpandAreaL(TIntaId)

Parameters

TInt aId

GetEndIndexOfExpandAreaL(TInt)

TInt GetEndIndexOfExpandAreaL(TIntaId)

Parameters

TInt aId

GetEndIndexOfHotSpotAreaL(TInt, TBool)

TInt GetEndIndexOfHotSpotAreaL(TIntaId,
TBoolaOriginal = EFalse
)

GetEndIndexOfHotSpotAreaL(TInt aId);

Parameters

TInt aId
TBool aOriginal = EFalse

GetNextObjectL()

MFsRichTextObject *GetNextObjectL()

GetParagraphDirection(TInt)

TBidiText::TDirectionality GetParagraphDirection(TIntaPosInText)

Parameters

TInt aPosInText

GetRichTextL(TInt, TInt)

CFsRichText *GetRichTextL(TIntaBeginIndex,
TIntaEndIndex
)

Parameters

TInt aBeginIndex
TInt aEndIndex

GetStartIndexOfExpandAreaL(TInt)

TInt GetStartIndexOfExpandAreaL(TIntaId)

Parameters

TInt aId

GetStartIndexOfHotSpotAreaL(TInt, TBool)

TInt GetStartIndexOfHotSpotAreaL(TIntaId,
TBoolaOriginal = EFalse
)

GetStartIndexOfHotSpotAreaL(TInt aId);

Parameters

TInt aId
TBool aOriginal = EFalse

GetTextL(TInt, TInt)

HBufC *GetTextL(TIntaStart,
TIntaEnd
)const

GetTextL(TInt aStart, TInt aEnd, TInt& aStyle);

Parameters

TInt aStart
TInt aEnd

GetTextureL(TInt)

CFsTexture &GetTextureL(TIntaPos)

Parameters

TInt aPos

IsFieldInrange(TInt, TInt)

TBool IsFieldInrange(TIntaStartPosition,
TIntaRange
)[private]

Parameters

TInt aStartPosition
TInt aRange

IsNewLinePresent(TInt, TInt)

TInt IsNewLinePresent(TIntaPosition,
TIntaLength
)[private]

Parameters

TInt aPosition
TInt aLength

IsNextObject()

TBool IsNextObject()const

IsPartOfHotSpot(TInt)

TBool IsPartOfHotSpot(TIntaIndex)[private]

Parameters

TInt aIndex

IsTexturePosition(TInt, TInt &)

TBool IsTexturePosition(TIntaPos,
TInt &aId
)[private]

Parameters

TInt aPos
TInt & aId

IsWordPartOfExpandArea(TInt, TInt)

TInt IsWordPartOfExpandArea(TIntaStartPosition,
TIntaEndPosition
)[private]

Parameters

TInt aStartPosition
TInt aEndPosition

IsWordPartOfHotSpotArea(TInt, TInt)

TInt IsWordPartOfHotSpotArea(TIntaStartPosition,
TIntaEndPosition
)[private]

Parameters

TInt aStartPosition
TInt aEndPosition

MoveBack()

voidMoveBack()

MoveParsingPosition(TInt)

TBool MoveParsingPosition(TIntaMoveParsingPositionBy)

Parameters

TInt aMoveParsingPositionBy

NewL(CFsRichText &, CAlfEnv &, CFsTextureLoader *)

CFsTextParser *NewL(CFsRichText &aText,
CAlfEnv &aEnv,
CFsTextureLoader *aTextureLoader
)[static]

NewL( CFsRichText& aText, CHuiEnv& aEnv );

Parameters

CFsRichText & aText
CAlfEnv & aEnv
CFsTextureLoader * aTextureLoader

ParseTextL()

TBool ParseTextL()

SetExpandStatusL(TInt, TBool)

TBool SetExpandStatusL(TIntaIdOfExpand,
TBoolaStatus
)

Parameters

TInt aIdOfExpand
TBool aStatus

SetParsingPosition(TInt)

TBool SetParsingPosition(TIntaPosition)

Parameters

TInt aPosition

SetSizeOfSmile(TSize)

voidSetSizeOfSmile(TSizeaSizeOfSmiley)

Parameters

TSize aSizeOfSmiley

SetSmileyParser(CFsSmileyParser *)

voidSetSmileyParser(CFsSmileyParser *aSmileyParser)

Parameters

CFsSmileyParser * aSmileyParser

SetTextDirection(TInt, TInt, TBidiText::TDirectionality)

TBool SetTextDirection(TIntaStartPosInText,
TIntaEndPosInText,
TBidiText::TDirectionalityaDirection
)

Parameters

TInt aStartPosInText
TInt aEndPosInText
TBidiText::TDirectionality aDirection

SetTextStylemanager(CFsTextStyleManager *)

voidSetTextStylemanager(CFsTextStyleManager *aTextStyleManager)

Parameters

CFsTextStyleManager * aTextStyleManager

Member Data Documentation

CEikonEnv * iEikon

CEikonEnv *iEikon[private]

CAlfEnv & iEnv

CAlfEnv &iEnv[private]

RArray< TRichTextExapandArea > iExpandArray

RArray< TRichTextExapandArea >iExpandArray[private]

RArray< TInt > iFieldLocation

RArray< TInt >iFieldLocation[private]

TCharFormat iGNOCharFormat

TCharFormat iGNOCharFormat[private]

TCharFormat iGNOCharFormatOfNextBlock

TCharFormat iGNOCharFormatOfNextBlock[private]

TInt iGNONextPosition

TInt iGNONextPosition[private]

TPtrC iGNOSomeText

TPtrC iGNOSomeText[private]

TPtrC iGNOSomeTextOfNextBlock

TPtrC iGNOSomeTextOfNextBlock[private]

TBool iGetCharsUsed

TBool iGetCharsUsed[private]

TBool iGetCharsUsedOfNextBlock

TBool iGetCharsUsedOfNextBlock[private]

RArray< TRichTextHotSpotArea > iHotSpotArray

RArray< TRichTextHotSpotArea >iHotSpotArray[private]

TBool iIsSetSizeOfSmiley

TBool iIsSetSizeOfSmiley[private]

TBool iIsWordTooLong

TBool iIsWordTooLong[private]

TInt iLastGetCharsLength

TInt iLastGetCharsLength[private]

TInt iLastGetCharsLengthOfNextBlock

TInt iLastGetCharsLengthOfNextBlock[private]

TInt iLastGetCharsPos

TInt iLastGetCharsPos[private]

TInt iLastGetCharsPosOfNextBlock

TInt iLastGetCharsPosOfNextBlock[private]

TInt iLastLength

TInt iLastLength[private]

TInt iLastNewLinePositionIndex

TInt iLastNewLinePositionIndex[private]

TInt iLastPosition

TInt iLastPosition[private]

TInt iLastWordPosition

TInt iLastWordPosition[private]

RArray< TBidiText::TDirectionality > iLineDirection

RArray< TBidiText::TDirectionality >iLineDirection[private]

TInt iNewLengthOfWord

TInt iNewLengthOfWord[private]

RArray< TInt > iNewLineArray

RArray< TInt >iNewLineArray[private]

TInt iNewLineArrayIndex

TInt iNewLineArrayIndex[private]

TInt iPosition

TInt iPosition[private]

TSize iSizeOfSmiley

TSize iSizeOfSmiley[private]

CFsSmileyParser * iSmileyParser

CFsSmileyParser *iSmileyParser[private]

CFsRichText & iText

CFsRichText &iText[private]

CFsTextStyleManager * iTextStyleManager

CFsTextStyleManager *iTextStyleManager[private]

RArray< TTextureIndex > iTextureIndex

RArray< TTextureIndex >iTextureIndex[private]

CFsTextureLoader * iTextureLoader

CFsTextureLoader *iTextureLoader[private]

TInt iTypeOfLastObject

TInt iTypeOfLastObject[private]