The smart text helper contains a function that can handle the back end of a smart text handler callback. See the ALP_MAX_SMART_TEXT documentation for more information about the smart text engine.
Functions | |
| alp_status_t | alp_smart_text_helper_create_request_for_mime_type (char *text, char *mimeType, GtkWidget *widget, char **verbsToRemove, int numVerbsToRemove, char **verbsToInclude, int numVerbsToInclude, AlpExg2Request *request) |
| Create an exchange request in response to the user activating a smart text link. | |
| alp_status_t | alp_smart_text_helper_handle_mime_type (char *text, char *mimeType, GtkWidget *widget, char **verbsToRemove, int numVerbsToRemove, char **verbsToInclude, int numVerbsToInclude) |
| Create and execute an exchange request to respond to the user activating a smart text link. | |
|
||||||||||||||||||||||||||||||||||||
|
Create an exchange request in response to the user activating a smart text link.
If the final list of verbs is empty, this function immediately returns ALP_EXG_MGR_ERR_HANDLER_NOT_FOUND_ERROR. If the final list of verbs has exactly one verb, this function creates an exchange request for the verb and returns it. If the final list of verbs has two or more verbs, this function displays a menu allowing the user choose a verb. Based on the choice, an Exchange Request is created and returned. The default smart text tag handler calls this function with numVerbsToRemove set to 0 and numVerbsToInclude set to 0. In this case, the final list of verbs is exactly the same as the list that exchange manager returns for the mime type. |
|
||||||||||||||||||||||||||||||||
|
Create and execute an exchange request to respond to the user activating a smart text link.
If the final list of verbs is empty, this function immediately returns ALP_EXG_MGR_ERR_HANDLER_NOT_FOUND_ERROR. If the final list of verbs has exactly one verb, this function creates an exchange request for the verb and executes it. If the final list of verbs has two or more verbs, this function displays a menu allowing the user choose a verb. Based on the choice, an exchange request is created and executed. The default smart text tag handler calls this function with numVerbsToRemove set to 0 and numVerbsToInclude set to 0. In this case, the final list of verbs is exactly the same as the list that exchange manager returns for the mime type. |
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.