#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 bool | AbiGoogle_invoke (AV_View *, EV_EditMethodCallData *) |
static void | Google_removeFromMenus () |
static void | Google_addToMenus () |
ABI_BUILTIN_FAR_CALL int | abi_plugin_register (XAP_ModuleInfo *mi) |
ABI_BUILTIN_FAR_CALL int | abi_plugin_unregister (XAP_ModuleInfo *mi) |
ABI_BUILTIN_FAR_CALL int | abi_plugin_supports_version (UT_uint32, UT_uint32, UT_uint32) |
Variables | |
static const char * | Google_MenuLabel = "&Google Search" |
static const char * | Google_MenuTooltip = "Search the web with Google" |
#define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
ABI_BUILTIN_FAR_CALL int abi_plugin_unregister | ( | XAP_ModuleInfo * | mi | ) |
static bool AbiGoogle_invoke | ( | AV_View * | , | |
EV_EditMethodCallData * | ||||
) | [static] |
References UT_UTF8String::appendUCS4(), 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(), UT_UCS4String::length(), FV_View::moveInsPtTo(), XAP_App::openURL(), UT_UCS4_isspace(), and UT_UTF8String::utf8_str().
Referenced by Google_addToMenus().
static void Google_addToMenus | ( | ) | [static] |
References AbiGoogle_invoke(), 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(), and XAP_Frame::rebuildMenus().
Referenced by abi_plugin_register().
static void Google_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* Google_MenuLabel = "&Google Search" [static] |
const char* Google_MenuTooltip = "Search the web with Google" [static] |