#include "xap_Module.h"#include "xap_App.h"#include "xap_Frame.h"#include "fv_View.h"#include "ap_Menu_Id.h"#include "ev_Menu_Actions.h"#include "ev_Menu.h"#include "ev_Menu_Layouts.h"#include "ev_Menu_Labels.h"#include "ev_EditMethod.h"#include "xap_Menu_Layouts.h"#include "ut_string_class.h"Defines | |
| #define | ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
Functions | |
| static char * | _ucsToAscii (const UT_UCSChar *text) |
| static bool | URLDict_invoke (AV_View *, EV_EditMethodCallData *) |
| static void | URLDict_removeFromMenus () |
| static void | URLDict_addToMenus () |
| ABI_BUILTIN_FAR_CALL int | abi_plugin_register (XAP_ModuleInfo *mi) |
| Register the OpenDocument plugin. | |
| ABI_BUILTIN_FAR_CALL int | abi_plugin_unregister (XAP_ModuleInfo *mi) |
| Unregister the OpenDocument plugin. | |
| ABI_BUILTIN_FAR_CALL int | abi_plugin_supports_version (UT_uint32, UT_uint32, UT_uint32) |
Variables | |
| static const char * | URLDict_MenuLabel = "&URL Dictionary" |
| static const char * | URLDict_MenuTooltip = "Opens the on-line dictionary" |
| #define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
| static char* _ucsToAscii | ( | const UT_UCSChar * | text | ) | [inline, static] |
References UT_return_val_if_fail, and UT_UCS4_strlen().
Referenced by URLDict_invoke().
| ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
Register the OpenDocument plugin.
References XAP_ModuleInfo::author, XAP_ModuleInfo::desc, XAP_ModuleInfo::name, URLDict_addToMenus(), XAP_ModuleInfo::usage, and XAP_ModuleInfo::version.
| ABI_BUILTIN_FAR_CALL int abi_plugin_unregister | ( | XAP_ModuleInfo * | mi | ) |
Unregister the OpenDocument plugin.
References XAP_ModuleInfo::author, XAP_ModuleInfo::desc, XAP_ModuleInfo::name, URLDict_removeFromMenus(), XAP_ModuleInfo::usage, and XAP_ModuleInfo::version.
| static void URLDict_addToMenus | ( | ) | [static] |
References EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), EV_MLF_Normal, XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuActionSet(), XAP_App::getMenuFactory(), XAP_Frame::rebuildMenus(), and URLDict_invoke().
Referenced by abi_plugin_register().
| static bool URLDict_invoke | ( | AV_View * | , | |
| EV_EditMethodCallData * | ||||
| ) | [static] |
References _ucsToAscii(), UT_String::c_str(), DELETEPV, FV_View::extSelTo(), FREEP, FV_DOCPOS_BOW, FV_DOCPOS_EOW_MOVE, FV_DOCPOS_EOW_SELECT, XAP_App::getApp(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), FV_View::getSelectionText(), FV_View::isSelectionEmpty(), FV_View::moveInsPtTo(), and XAP_App::openURL().
Referenced by URLDict_addToMenus().
| static void URLDict_removeFromMenus | ( | ) | [static] |
References DELETEP, ev_EditMethod_lookup(), XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuFactory(), XAP_Frame::rebuildMenus(), EV_EditMethodContainer::removeEditMethod(), and XAP_Menu_Factory::removeMenuItem().
Referenced by abi_plugin_unregister().
const char* URLDict_MenuLabel = "&URL Dictionary" [static] |
const char* URLDict_MenuTooltip = "Opens the on-line dictionary" [static] |
1.7.1