MContingentLineBreaker Class Reference
class MContingentLineBreaker |
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.
Member Functions Documentation
IsLegalBreakAfter(TInt, TInt, TBool)
TBool
| IsLegalBreakAfter | ( | TInt | aTextPosition, |
| TInt | aFollowingClass, |
| TBool | aHasSpaces |
| ) | [pure virtual] |
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. |
IsLegalBreakBefore(TInt, TInt, TBool)
TBool
| IsLegalBreakBefore | ( | TInt | aTextPosition, |
| TInt | aPrecedingClass, |
| TBool | aHasSpaces |
| ) | [pure virtual] |
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. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.