MContingentLineBreakerL Class Reference

class MContingentLineBreakerL

Used to determine the line breaks around pictures and other characters with the CB (contingent line break) class in situations where this operation may leave.

Member Functions Documentation

IsLegalBreakAfterL(TInt, TInt, TBool)

TBool IsLegalBreakAfterL(TIntaTextPosition,
TIntaFollowingClass,
TBoolaHasSpaces
)[pure virtual]

Determines if a break is legal after the picture at aTextPosition.

ETrue if a line break is legal here.

Parameters

TInt aTextPositionThe position of a character of line breaking class ECbLineBreakClass in the text as supplied to MLineBreaker::GetLineBreak(), which may refer to a picture.
TInt aFollowingClassThe class of the character immediately following aTextPosition.
TBool aHasSpacesETrue if spaces separate the preceding class from this.

IsLegalBreakBeforeL(TInt, TInt, TBool)

TBool IsLegalBreakBeforeL(TIntaTextPosition,
TIntaPrecedingClass,
TBoolaHasSpaces
)[pure virtual]

Determines if a break is legal before the picture at aTextPosition.

ETrue if a line break is legal here.

Parameters

TInt aTextPositionThe position of a character of line breaking class ECbLineBreakClass in the text as supplied to MLineBreaker::GetLineBreak(), which may refer to a picture.
TInt aPrecedingClassThe class of the character preceding aTextPosition.
TBool aHasSpacesETrue if spaces separate the preceding class from this.