#include <string>#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 "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 |
Functions | |
| static char * | _ucs4ToLatin1 (const UT_UCS4Char *text) |
| static bool | _getTranslationCode (FV_View *pView, std::string &langCode) |
| static bool | FreeTranslation_invoke (AV_View *, EV_EditMethodCallData *) |
| static void | FreeTranslation_RemoveFromMenus () |
| static void | FreeTranslation_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 * | FreeTranslation_MenuLabel = "Use &Free Translation" |
| static const char * | FreeTranslation_MenuTooltip = "Opens the gratis on-line translator" |
| #define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
| static bool _getTranslationCode | ( | FV_View * | pView, | |
| std::string & | langCode | |||
| ) | [static] |
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 FreeTranslation_invoke().
| static char* _ucs4ToLatin1 | ( | const UT_UCS4Char * | text | ) | [inline, static] |
References UT_UCS4_strlen().
Referenced by FreeTranslation_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 FreeTranslation_addToMenus | ( | ) | [static] |
References EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), EV_MLF_Normal, FreeTranslation_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 bool FreeTranslation_invoke | ( | AV_View * | , | |
| EV_EditMethodCallData * | ||||
| ) | [static] |
| static void FreeTranslation_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* FreeTranslation_MenuLabel = "Use &Free Translation" [static] |
const char* FreeTranslation_MenuTooltip = "Opens the gratis on-line translator" [static] |
1.7.1