#include <linebreak.h>
class MContingentLineBreaker |
Public Member Functions | |
---|---|
pure virtual TBool | IsLegalBreakAfter(TInt, TInt, TBool) |
pure virtual TBool | IsLegalBreakBefore(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 cannot 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 following 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.