Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: LineBreak.h

Class MContingentLineBreakerL

class MContingentLineBreakerL;

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.

Members

Defined in MContingentLineBreakerL:
IsLegalBreakAfterL(), IsLegalBreakBeforeL()


Member functions


IsLegalBreakBeforeL()

virtual TBool IsLegalBreakBeforeL(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.


IsLegalBreakAfterL()

virtual TBool IsLegalBreakAfterL(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 preceding class from this.

Return value

TBool

ETrue if a line break is legal here.