#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 "xap_UnixFrameImpl.h"
#include "xap_UnixDialogHelper.h"
#include <gnome.h>
#include <libgdict/gdict-defbox.h>
Functions | |
static void | lookup_button_cb (GtkButton *button, GtkWidget *defbox) |
static void | entry_activate_cb (GtkEditable *editable, GtkWidget *defbox) |
static void | close_cb (GtkWidget *w, gpointer data) |
static void | GDict_dlg_create (const char *search) |
static void | GDict_exec (const char *search) |
static bool | GDict_invoke (AV_View *, EV_EditMethodCallData *) |
static void | GDict_removeFromMenus () |
static void | GDict_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 GtkWidget * | gdict_dlg = 0 |
static GtkWidget * | gdict_entry = 0 |
static GtkWidget * | gdict_defbox = 0 |
static const char * | GDict_MenuLabel = "G&Dict Dictionary" |
static const char * | GDict_MenuTooltip = "Opens the dictionary" |
ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
ABI_BUILTIN_FAR_CALL int abi_plugin_unregister | ( | XAP_ModuleInfo * | mi | ) |
static void close_cb | ( | GtkWidget * | w, | |
gpointer | data | |||
) | [static] |
Referenced by GDict_dlg_create().
static void entry_activate_cb | ( | GtkEditable * | editable, | |
GtkWidget * | defbox | |||
) | [static] |
Referenced by GDict_dlg_create().
static void GDict_addToMenus | ( | ) | [static] |
References EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), EV_MLF_Normal, GDict_invoke(), 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 GDict_dlg_create | ( | const char * | search | ) | [static] |
References centerDialog(), close_cb(), entry_activate_cb(), XAP_App::getApp(), XAP_App::getLastFocussedFrame(), and lookup_button_cb().
Referenced by GDict_exec().
static void GDict_exec | ( | const char * | search | ) | [static] |
References GDict_dlg_create().
Referenced by GDict_invoke().
static bool GDict_invoke | ( | AV_View * | , | |
EV_EditMethodCallData * | ||||
) | [static] |
References FV_View::extSelTo(), FREEP, FV_DOCPOS_BOW, FV_DOCPOS_EOW_MOVE, FV_DOCPOS_EOW_SELECT, GDict_exec(), XAP_App::getApp(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), FV_View::getSelectionText(), FV_View::moveInsPtTo(), and UT_UTF8String::utf8_str().
Referenced by GDict_addToMenus().
static void GDict_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().
static void lookup_button_cb | ( | GtkButton * | button, | |
GtkWidget * | defbox | |||
) | [static] |
Referenced by GDict_dlg_create().
GtkWidget* gdict_defbox = 0 [static] |
GtkWidget* gdict_dlg = 0 [static] |
GtkWidget* gdict_entry = 0 [static] |
const char* GDict_MenuLabel = "G&Dict Dictionary" [static] |
const char* GDict_MenuTooltip = "Opens the dictionary" [static] |