MContingentLineBreakerL Class Reference

#include <linebreak.h>

class MContingentLineBreakerL
Public Member Functions
pure virtual TBool IsLegalBreakAfterL(TInt, TInt, TBool)
pure virtual TBool IsLegalBreakBeforeL(TInt, TInt, TBool)

Detailed Description

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 Function Documentation

IsLegalBreakAfterL ( TInt, TInt, TBool )

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

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

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

Returns: ETrue if a line break is legal here.

IsLegalBreakBeforeL ( TInt, TInt, TBool )

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

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

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

Returns: ETrue if a line break is legal here.