Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: LineBreak.h

Class MContingentLineBreaker

class MContingentLineBreaker;

Description

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.

Members

Defined in MContingentLineBreaker:
IsLegalBreakAfter(), IsLegalBreakBefore()


Member functions


IsLegalBreakBefore()

virtual TBool IsLegalBreakBefore(TInt aTextPosition, TInt aPrecedingClass, TBool aHasSpaces)=0;

Description

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

Parameters

TInt aTextPosition

The position of a character of line breaking class ECbLineBreakClass in the text as supplied to MLineBreaker::GetLineBreak(), which may refer to a picture.

TInt aPrecedingClass

The class of the character preceding aTextPosition.

TBool aHasSpaces

ETrue if spaces separate the preceding class from this.

Return value

TBool

ETrue if a line break is legal here.


IsLegalBreakAfter()

virtual TBool IsLegalBreakAfter(TInt aTextPosition, TInt aFollowingClass, TBool aHasSpaces)=0;

Description

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

Parameters

TInt aTextPosition

The position of a character of line breaking class ECbLineBreakClass in the text as supplied to MLineBreaker::GetLineBreak, which may refer to a picture.

TInt aFollowingClass

The class of the character immediately following aTextPosition.

TBool aHasSpaces

ETrue if spaces separate the following class from this.

Return value

TBool

ETrue if a line break is legal here.