MContingentLineBreaker Class Reference

class MContingentLineBreaker

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

Member Functions Documentation

IsLegalBreakAfter(TInt, TInt, TBool)

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

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

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 following class from this.

IsLegalBreakBefore(TInt, TInt, TBool)

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

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

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.