Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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


Member functions


IsLegalBreakBefore(TInt,TInt,TBool)

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(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.


IsLegalBreakAfter(TInt,TInt,TBool)

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

Return value

TBool

ETrue if a line break is legal here.