Translator::OnWordWrapping

Translator::OnWordWrapping
virtual bool OnWordWrapping(LineFormatDesc* pdesc);
Description

OnWordWrapping is a virtual method, a callback, which is invoked once a necessity of word-wrapping for any text field is determined. This method is invoked only if custom word-wrapping is turned on by using the Translator(wwMode) constructor. 

GFx has built-in default implementation of this method that handles some Asian language rules, such as Chinese, Japanese and Korean (see WordWrappingTypes). Users may implement their own OnWordWrapping method to handle other word-wrapping rules. 

If no custom word-wrapping is used, then GFx uses very simple word-wrapping rule that works fine for most of the languages: it word wraps at space symbols (space, tabs, etc).

Parameters
Parameters 
Description 
LineFormatDesc* pdesc 
Pointer to the LineFormatDesc structure for calculating the word wrap position. 
Return Value

A Boolean value of true if the method has handled word-wrapping. If the return value is false, then the default word-wrapping will be used.