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