#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"#include "ut_wctomb.h"#include "pp_AttrProp.h"#include "xap_Dialog_Id.h"#include "xap_DialogFactory.h"#include "xap_Dlg_Language.h"Defines | |
| #define | ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
| #define | MY_MB_LEN_MAX 6 |
Functions | |
| static void | _ucsToUTF8 (UT_String &dest, const UT_UCSChar *src) |
| static bool | _getTranslationCode (FV_View *pView, UT_String &langCode) |
| static bool | BabelFish_invoke (AV_View *, EV_EditMethodCallData *) |
| static void | BabelFish_addToMenus () |
| static void | BabelFish_RemoveFromMenus () |
| 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 * | BabelFish_MenuLabel = "Use &Babelfish Translation" |
| static const char * | BabelFish_MenuTooltip = "Opens the on-line babelfish translator" |
| #define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
| #define MY_MB_LEN_MAX 6 |
Referenced by WordPerfect_Listener::_outputData().
References code, gchar, XAP_Dialog_Language::getAnswer(), XAP_Dialog_Language::getChangedLangProperty(), FV_View::getCharFormat(), XAP_Frame::getDialogFactory(), AV_View::getParentData(), PP_getAttribute(), XAP_Frame::raise(), XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), XAP_Dialog_Language::runModal(), s, XAP_Dialog_Language::setLanguageProperty(), and UT_return_val_if_fail.
Referenced by BabelFish_invoke().
| static void _ucsToUTF8 | ( | UT_String & | dest, | |
| const UT_UCSChar * | src | |||
| ) | [static] |
References UT_Wctomb::initialize(), UT_UCS4_strlen(), and UT_Wctomb::wctomb().
Referenced by BabelFish_invoke().
| ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
| ABI_BUILTIN_FAR_CALL int abi_plugin_unregister | ( | XAP_ModuleInfo * | mi | ) |
| static void BabelFish_addToMenus | ( | ) | [static] |
References EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), BabelFish_invoke(), 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 bool BabelFish_invoke | ( | AV_View * | , | |
| EV_EditMethodCallData * | ||||
| ) | [static] |
| static void BabelFish_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* BabelFish_MenuLabel = "Use &Babelfish Translation" [static] |
const char* BabelFish_MenuTooltip = "Opens the on-line babelfish translator" [static] |
1.7.1