MFormCustomWrap Class Reference

class MFormCustomWrap

An interface class that can be derived from to implement custom line breaking.

Custom line breaking allows the Text Views line wrapping algorithm to break lines in any way. For instance, it may be used to avoid the jagged white space at the right edge of text windows caused by normal line wrapping on a small screen.

All of these functions have a default implementation. To change the default behaviour, a pointer to an object that overrides any or all of the functions in the interface needs to be passed to the function CTextLayout::SetCustomWrap(). 6.2

CTextLayout::SetCustomWrap()

Public Member Functions
IMPORT_C TBoolGetLineBreakInContext(const TDesC &, TInt, TInt, TBool, TInt &)
IMPORT_C TBoolIsHangingCharacter(TUint)
IMPORT_C TUintLineBreakClass(TUint, TUint &, TUint &)
IMPORT_C TBoolLineBreakPossible(TUint, TUint, TBool)
Private Member Functions
IMPORT_C voidMFormCustomWrap_Reserved_1()
IMPORT_C voidMFormCustomWrap_Reserved_2()

Member Functions Documentation

GetLineBreakInContext(const TDesC &, TInt, TInt, TBool, TInt &)

IMPORT_C TBoolGetLineBreakInContext(const TDesC &aText,
TIntaMinBreakPos,
TIntaMaxBreakPos,
TBoolaForwards,
TInt &aBreakPos
)const [virtual]

Parameters

const TDesC & aText
TInt aMinBreakPos
TInt aMaxBreakPos
TBool aForwards
TInt & aBreakPos

IsHangingCharacter(TUint)

IMPORT_C TBoolIsHangingCharacter(TUintaChar)const [virtual]

Parameters

TUint aChar

LineBreakClass(TUint, TUint &, TUint &)

IMPORT_C TUintLineBreakClass(TUintaCode,
TUint &aRangeStart,
TUint &aRangeEnd
)const [virtual]

Parameters

TUint aCode
TUint & aRangeStart
TUint & aRangeEnd

LineBreakPossible(TUint, TUint, TBool)

IMPORT_C TBoolLineBreakPossible(TUintaPrevClass,
TUintaNextClass,
TBoolaHaveSpaces
)const [virtual]

Parameters

TUint aPrevClass
TUint aNextClass
TBool aHaveSpaces

MFormCustomWrap_Reserved_1()

IMPORT_C voidMFormCustomWrap_Reserved_1()[private, virtual]

MFormCustomWrap_Reserved_2()

IMPORT_C voidMFormCustomWrap_Reserved_2()[private, virtual]