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

Public Member Functions | |
| HypHyphenatedWord (const TextCharBuffer &originalWord, const uint16 nMinTail, const uint16 nMinHead, const Hyp::HyphenationPoints &hyphenationPoints) | |
| virtual | ~HypHyphenatedWord () |
| 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 () |
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 } |
Protected Attributes inherited from grRefCountedObj | |
| int32 | fRefCount |
The word with its hyphenation points used by the application to find the index and the quality of each hyphen and the text that surrounds it.
| HypHyphenatedWord::HypHyphenatedWord | ( | const TextCharBuffer & | originalWord, |
| const uint16 | nMinTail, | ||
| const uint16 | nMinHead, | ||
| const Hyp::HyphenationPoints & | hyphenationPoints | ||
| ) |
Constructor. Hyphenation points that are outside the range given by nMinHead..wordLength-nMinTail are discarded. Duplicate hyphenation points are discarded.
| originalWord | passed when IHyphenationService::Hyphenate was called. |
| nMinTail | the minimum number of characters at the end of a word after a hyphen break. |
| nMinHead | the minimum number of characters at the start of a word before a hyphen break. |
| hyphenationPoints | giving index and quality of each hyphenation point. |
| virtual |
Destructor.
| virtual |
Get string with text before the Nth hyphen point.
| nNthPoint | |
| pPart | of the word before the Nth hyphen e.g. ser for ser-vice. |
Implements IHyphenatedWord.
| virtual |
| nNthPoint | The Nth hyphenation point. |
Implements IHyphenatedWord.
| virtual |
Get string with text after the Nth hyphen point.
| nNthPoint | |
| pPart | of the word before the Nth hyphen e.g. vice for ser-vice. |
Implements IHyphenatedWord.
| virtual |
Get strings with text before/after the Nth hyphen point.
| nNthPoint | |
| pFirstPart | of the word before the Nth hyphen e.g. ser for ser-vice. |
| pLastPart | of the word after the Nth hyphen e.g. vice for ser-vice. |
Implements IHyphenatedWord.
| virtual |
Implements IHyphenatedWord.
| virtual |
| nNthPoint | The Nth hyphenation point. |
Implements IHyphenatedWord.
| virtual |
Implements IHyphenatedWord.
| virtual |
Add the hyphenation points in pToMergeWith to this word.
| pToMergeWith | The hyphenated word to merge with. |
Implements IHyphenatedWord.
| virtual |
Empty implementation. All hyphenation points are checked to be in a valid range before being accepted. See nMinTail and nMinHead description in HypAdapter.
Implements IHyphenatedWord.