Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Member functions


IsLegalBreakBeforeL(TInt,TInt,TBool)

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(const TDesC16 &,TInt,TInt,TBool,MContingentLineBreaker *,TInt &,TInt &)const, 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(TInt,TInt,TBool)

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(const TDesC16 &,TInt,TInt,TBool,MContingentLineBreaker *,TInt &,TInt &)const, 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.