#include <linebreak.h>
class MContingentLineBreakerL |
Public Member Functions | |
---|---|
pure virtual TBool | IsLegalBreakAfterL(TInt, TInt, TBool) |
pure virtual TBool | IsLegalBreakBeforeL(TInt, TInt, TBool) |
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.
Determines if a break is legal after the picture at aTextPosition.
Parameter | Description |
---|---|
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. |
aFollowingClass | The class of the character immediately following aTextPosition. |
aHasSpaces | ETrue if spaces separate the preceding class from this. |
Returns: ETrue if a line break is legal here.
Determines if a break is legal before the picture at aTextPosition.
Parameter | Description |
---|---|
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. |
aPrecedingClass | The class of the character preceding aTextPosition. |
aHasSpaces | ETrue if spaces separate the preceding class from this. |
Returns: ETrue if a line break is legal here.