![]() | InDesign SDK 20.5 |
#include <ExceptionHyphenWord.h>

Public Member Functions | |
| ExceptionHyphenWord (const WideString &word, const HyphenPoints &points, const int32 nMinTail, const int32 nMinHead) | |
| virtual int32 | GetPointCount () const |
| virtual int32 | GetIndexOfPoint (int32 nNthPoint) const |
| virtual int32 | GetQualityOfPoint (int32 nNthPoint) const |
| virtual WideString | GetWord () const |
| virtual void | GetPartsOfPoint (int32 nNthPoint, WideString *pFirstPart, WideString *pLastPart) const |
| virtual void | GetFirstPartOfPoint (int32 nNthPoint, WideString *pPart) const |
| virtual void | GetLastPartOfPoint (int32 nNthPoint, WideString *pPart) const |
| virtual void | Merge (const IHyphenatedWord *pToMergeWith) |
| virtual void | ValidatePointRanges (void) |
Protected Attributes | |
| HyphenPoints | fPoints |
| WideString | fWord |
Additional Inherited Members | |
Public Types inherited from IHyphenatedWord | |
| enum | { kNoHyphenPoint = 0, kVeryUnpreferredHyphenPoint = 10, kUnpreferredHyphenPoint = 25, kRegularHyphenPoint = 50, kPreferredHyphenPoint = 75, kDiscretionaryHyphenPoint = 80, kHardHyphenPoint = 90, kBestHyphenPoint = 100, kWorstHyphenPoint = 0, kForcedHyphenPoint = kBestHyphenPoint, kRefusedHyphenPoint = kWorstHyphenPoint, kInvalidHyphenPoint = -1 } |
Stores information about the hyphenation points within a particular word.
| ExceptionHyphenWord::ExceptionHyphenWord | ( | const WideString & | word, |
| const HyphenPoints & | points, | ||
| const int32 | nMinTail, | ||
| const int32 | nMinHead | ||
| ) |
Constructor. pWord and pPoints will be copied.
| virtual |
Fills the WideString without hyphen, i.e.: "service" to "ser". Will do spelling changes but doesn't add the hyphen (if it wasn't already there).
| nNthPoint | is which break point. |
| pPart | is a pointer (not nil) to a blank WideString, is filled out with the pre-break point part. |
Implements IHyphenatedWord.
| virtual |
The index is the position before the hyphen: i.e. ser-vice returns 2 (zero-based).
| nNthPoint | is which point to ask about. |
Implements IHyphenatedWord.
| virtual |
Fills the WideString, i.e.: "service" to "vice". Can do spelling changes.
| nNthPoint | is which break point. |
| pPart | is a pointer (not nil) to a blank WideString, is filled out with the post-break point part. |
Implements IHyphenatedWord.
| virtual |
Fills the WideStrings without hyphen, i.e.: "service" to "ser" and "vice". Will do spelling changes but doesn't add the hyphen (if it wasn't already there).
| nNthPoint | is which break point. |
| pFirstPart | is a pointer (not nil) to a blank WideString, is filled out with the pre-break point part. |
| pLastPart | is a pointer (not nil) to a blank WideString, is filled out with the post-break point part. |
Implements IHyphenatedWord.
| virtual |
How many hyphenation points?
Implements IHyphenatedWord.
| virtual |
The quality value of the Nth hyphenation point.
| nNthPoint | is which point to ask about. |
Implements IHyphenatedWord.
| virtual |
Copies the word (might be different because the linguisitc systems do their own character translations).
Implements IHyphenatedWord.
| virtual |
Merge 2 lists of break points. Used to combine dictionary breakpoints with other types of breaking Used only for to combine hard dash breaking since Discretionary hyphens always take precidence.
| pToMergeWith | is another hyphenated word to merge into this one. |
Implements IHyphenatedWord.
| virtual |
after merging, this routine is called as a post-method clean up
Implements IHyphenatedWord.