CFsTextParser Class Reference

class CFsTextParser : public CBase

Inherits from

Public Member Functions
~CFsTextParser ()
void CutWord ( 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 ()
void MoveBack ()
TBool MoveParsingPosition ( TInt )
CFsTextParser * NewL ( CFsRichText &, CAlfEnv &, CFsTextureLoader *)
TBool ParseTextL ()
TBool SetExpandStatusL ( TInt , TBool )
TBool SetParsingPosition ( TInt )
void SetSizeOfSmile ( TSize )
void SetSmileyParser ( CFsSmileyParser *)
TBool SetTextDirection ( TInt , TInt , TBidiText::TDirectionality )
void SetTextStylemanager ( CFsTextStyleManager *)
Private Member Functions
CFsTextParser ( CFsRichText &, CAlfEnv &, CFsTextureLoader *)
void ConstructL ()
void ConvertBitmapL ( CPicture *, CFbsBitmap *&)
void FindBlokOfText ()
void FindNextBlokOfText ()
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()

void ConstructL ( ) [private]

ConvertBitmapL(CPicture *, CFbsBitmap *&)

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

Parameters

CPicture * aPicture
CFbsBitmap *& aBitmap

CutWord(TInt, TInt)

void CutWord ( TInt aBeginOfWord,
TInt aNewLengthOfWord
)

Parameters

TInt aBeginOfWord
TInt aNewLengthOfWord

FindBlokOfText()

void FindBlokOfText ( ) [private]

FindNextBlokOfText()

void FindNextBlokOfText ( ) [private]

GetBodyIndexOfExpandAreaL(TInt)

TInt GetBodyIndexOfExpandAreaL ( TInt aId )

Parameters

TInt aId

GetEndIndexOfExpandAreaL(TInt)

TInt GetEndIndexOfExpandAreaL ( TInt aId )

Parameters

TInt aId

GetEndIndexOfHotSpotAreaL(TInt, TBool)

TInt GetEndIndexOfHotSpotAreaL ( TInt aId,
TBool aOriginal = EFalse
)

GetEndIndexOfHotSpotAreaL(TInt aId);

Parameters

TInt aId
TBool aOriginal = EFalse

GetNextObjectL()

MFsRichTextObject * GetNextObjectL ( )

GetParagraphDirection(TInt)

TBidiText::TDirectionality GetParagraphDirection ( TInt aPosInText )

Parameters

TInt aPosInText

GetRichTextL(TInt, TInt)

CFsRichText * GetRichTextL ( TInt aBeginIndex,
TInt aEndIndex
)

Parameters

TInt aBeginIndex
TInt aEndIndex

GetStartIndexOfExpandAreaL(TInt)

TInt GetStartIndexOfExpandAreaL ( TInt aId )

Parameters

TInt aId

GetStartIndexOfHotSpotAreaL(TInt, TBool)

TInt GetStartIndexOfHotSpotAreaL ( TInt aId,
TBool aOriginal = EFalse
)

GetStartIndexOfHotSpotAreaL(TInt aId);

Parameters

TInt aId
TBool aOriginal = EFalse

GetTextL(TInt, TInt)

HBufC * GetTextL ( TInt aStart,
TInt aEnd
) const

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

Parameters

TInt aStart
TInt aEnd

GetTextureL(TInt)

CFsTexture & GetTextureL ( TInt aPos )

Parameters

TInt aPos

IsFieldInrange(TInt, TInt)

TBool IsFieldInrange ( TInt aStartPosition,
TInt aRange
) [private]

Parameters

TInt aStartPosition
TInt aRange

IsNewLinePresent(TInt, TInt)

TInt IsNewLinePresent ( TInt aPosition,
TInt aLength
) [private]

Parameters

TInt aPosition
TInt aLength

IsNextObject()

TBool IsNextObject ( ) const

IsPartOfHotSpot(TInt)

TBool IsPartOfHotSpot ( TInt aIndex ) [private]

Parameters

TInt aIndex

IsTexturePosition(TInt, TInt &)

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

Parameters

TInt aPos
TInt & aId

IsWordPartOfExpandArea(TInt, TInt)

TInt IsWordPartOfExpandArea ( TInt aStartPosition,
TInt aEndPosition
) [private]

Parameters

TInt aStartPosition
TInt aEndPosition

IsWordPartOfHotSpotArea(TInt, TInt)

TInt IsWordPartOfHotSpotArea ( TInt aStartPosition,
TInt aEndPosition
) [private]

Parameters

TInt aStartPosition
TInt aEndPosition

MoveBack()

void MoveBack ( )

MoveParsingPosition(TInt)

TBool MoveParsingPosition ( TInt aMoveParsingPositionBy )

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 ( TInt aIdOfExpand,
TBool aStatus
)

Parameters

TInt aIdOfExpand
TBool aStatus

SetParsingPosition(TInt)

TBool SetParsingPosition ( TInt aPosition )

Parameters

TInt aPosition

SetSizeOfSmile(TSize)

void SetSizeOfSmile ( TSize aSizeOfSmiley )

Parameters

TSize aSizeOfSmiley

SetSmileyParser(CFsSmileyParser *)

void SetSmileyParser ( CFsSmileyParser * aSmileyParser )

Parameters

CFsSmileyParser * aSmileyParser

SetTextDirection(TInt, TInt, TBidiText::TDirectionality)

TBool SetTextDirection ( TInt aStartPosInText,
TInt aEndPosInText,
TBidiText::TDirectionality aDirection
)

Parameters

TInt aStartPosInText
TInt aEndPosInText
TBidiText::TDirectionality aDirection

SetTextStylemanager(CFsTextStyleManager *)

void SetTextStylemanager ( 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]