#include "AbiGeneric.h"#include "ap_Menu_Id.h"Defines | |
| #define | ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
Functions | |
| 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) |
| UT_Error | addToMenus (AbiMenuOptions amo[], UT_uint32 num_menuitems, XAP_Menu_Id prevMM, XAP_Menu_Id prevCM) |
| UT_Error | removeFromMenus (const AbiMenuOptions amo[], UT_uint32 num_menuitems) |
| bool | getFileName (std::string &szFile, XAP_Frame *pFrame, XAP_Dialog_Id id, const char **szDescList, const char **szSuffixList, int *ft) |
| bool | isImageSelected (void) |
| void | plugin_imp_lockGUI (EV_EditMethodCallData *d) |
| void | plugin_imp_unlockGUI (EV_EditMethodCallData *d) |
Variables | |
| XAP_Prefs * | prefs = NULL |
| UT_uint32 | _lockGUI_counter = 0 |
| const EV_EditMethod * | lockGUI = NULL |
| const EV_EditMethod * | unlockGUI = NULL |
| #define ABI_BUILTIN_FAR_CALL ABI_FAR_CALL |
| ABI_BUILTIN_FAR_CALL int abi_plugin_register | ( | XAP_ModuleInfo * | mi | ) |
Register the OpenDocument plugin.
References XAP_ModuleInfo::author, XAP_ModuleInfo::desc, doRegistration(), XAP_App::getApp(), getModuleInfo(), XAP_App::getPrefs(), XAP_ModuleInfo::name, XAP_ModuleInfo::usage, UT_ASSERT, UT_return_val_if_fail, 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, doUnregistration(), XAP_ModuleInfo::name, XAP_ModuleInfo::usage, UT_ASSERT, and XAP_ModuleInfo::version.
| UT_Error addToMenus | ( | AbiMenuOptions | amo[], | |
| UT_uint32 | num_menuitems, | |||
| XAP_Menu_Id | prevMM, | |||
| XAP_Menu_Id | prevCM | |||
| ) |
References EV_Menu_ActionSet::addAction(), EV_EditMethodContainer::addEditMethod(), XAP_Menu_Factory::addNewLabel(), XAP_Menu_Factory::addNewMenuAfter(), description, flags, XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuActionSet(), XAP_App::getMenuFactory(), XAP_Menu_Factory::getNewID(), AbiMenuOptions::id, label, method, methodName, and XAP_Frame::rebuildMenus().
Referenced by doRegistration().
| bool getFileName | ( | std::string & | szFile, | |
| XAP_Frame * | pFrame, | |||
| XAP_Dialog_Id | id, | |||
| const char ** | szDescList, | |||
| const char ** | szSuffixList, | |||
| int * | ft | |||
| ) |
References XAP_Dialog_FileOpenSaveAs::getAnswer(), XAP_Frame::getDialogFactory(), XAP_Dialog_FileOpenSaveAs::getPathname(), XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), XAP_Dialog_FileOpenSaveAs::runModal(), XAP_Dialog_FileOpenSaveAs::setCurrentPathname(), XAP_Dialog_FileOpenSaveAs::setFileTypeList(), XAP_Dialog_FileOpenSaveAs::setSuggestFilename(), and UT_ASSERT.
Referenced by DECLARE_ABI_PLUGIN_METHOD().
| bool isImageSelected | ( | void | ) |
| void plugin_imp_lockGUI | ( | EV_EditMethodCallData * | d | ) |
| void plugin_imp_unlockGUI | ( | EV_EditMethodCallData * | d | ) |
References ev_EditMethod_invoke(), and UT_ASSERT.
| UT_Error removeFromMenus | ( | const AbiMenuOptions | amo[], | |
| UT_uint32 | num_menuitems | |||
| ) |
References DELETEP, ev_EditMethod_lookup(), XAP_App::getApp(), XAP_App::getEditMethodContainer(), XAP_App::getFrame(), XAP_App::getFrameCount(), XAP_App::getMenuFactory(), methodName, XAP_Frame::rebuildMenus(), EV_EditMethodContainer::removeEditMethod(), and XAP_Menu_Factory::removeMenuItem().
Referenced by doUnregistration().
| const EV_EditMethod* lockGUI = NULL |
Referenced by AbiGimp_invoke(), and DECLARE_ABI_PLUGIN_METHOD().
Referenced by doRegistration(), XAP_App::getGeometry(), and XAP_App::setGeometry().
| const EV_EditMethod* unlockGUI = NULL |
Referenced by AbiGimp_invoke(), and DECLARE_ABI_PLUGIN_METHOD().
1.7.1