#include <ap_App.h>
Public Member Functions | |
AP_App (const char *szAppName) | |
virtual | ~AP_App () |
virtual bool | initialize (void) |
virtual void | errorMsgBadArg (AP_Args *, int) |
virtual void | errorMsgBadFile (XAP_Frame *, const char *, UT_Error) |
virtual bool | doWindowlessArgs (const AP_Args *, bool &bSuccess) |
bool | openCmdLineFiles (const AP_Args *args) |
bool | openCmdLinePlugins (const AP_Args *args, bool &bSuccess) |
Protected Member Functions | |
void | saveRecoveryFiles () |
Generic application base class
AP_App::AP_App | ( | const char * | szAppName | ) |
AP_App::~AP_App | ( | ) | [virtual] |
bool AP_App::doWindowlessArgs | ( | const AP_Args * | , | |
bool & | bSuccess | |||
) | [virtual] |
Reimplemented in AP_CocoaApp, AP_UnixApp, AP_QtApp, and AP_Win32App.
Referenced by AP_Args::doWindowlessArgs().
void AP_App::errorMsgBadArg | ( | AP_Args * | , | |
int | ||||
) | [virtual] |
References UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Reimplemented in AP_CocoaApp, AP_UnixApp, and AP_Win32App.
References UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by openCmdLineFiles().
bool AP_App::initialize | ( | void | ) | [virtual] |
Reimplemented in AP_CocoaApp, and AP_Win32App.
References AP_PREF_DEFAULT_KeyBindings, and AP_PREF_KEY_KeyBindings.
Referenced by AP_Win32App::initialize(), AP_UnixApp::initialize(), AP_QtApp::initialize(), and AP_CocoaApp::initialize().
bool AP_App::openCmdLineFiles | ( | const AP_Args * | args | ) |
Open windows requested on commandline.
References XAP_Dialog_MessageBox::a_OK, XAP_Dialog_MessageBox::b_O, abicollab::service::error(), errorMsgBadFile(), file, XAP_Frame::getCurrentDoc(), IEFT_Unknown, XAP_Frame::loadDocument(), AP_Args::m_sFiles, AP_Args::m_sMerge, XAP_Frame::raise(), PD_Document::setMailMergeLink(), XAP_Frame::showMessageBox(), UT_go_shell_arg_to_uri(), UT_IE_TRY_RECOVER, and UT_IS_IE_SUCCESS.
Referenced by AP_UnixApp::main(), and AP_QtApp::main().
bool AP_App::openCmdLinePlugins | ( | const AP_Args * | args, | |
bool & | bSuccess | |||
) |
References ev_EditMethod_invoke(), EV_EditMethodContainer::findEditMethodByName(), AP_Args::getApp(), UT_GenericVector< T >::getItemCount(), XAP_Module::getModuleInfo(), UT_GenericVector< T >::getNthItem(), AP_Args::getPluginOptions(), instance, AP_Args::m_sPluginArgs, XAP_ModuleInfo::name, UT_GenericVector< T >::size(), szName, XAP_ModuleInfo::usage, and UT_DEBUGMSG.
Referenced by AP_UnixApp::doWindowlessArgs(), and AP_CocoaApp::doWindowlessArgs().
void AP_App::saveRecoveryFiles | ( | ) | [protected] |
References XAP_Frame::backup(), IE_Imp::fileTypeForSuffix(), and XAP_Frame::getFilename().
Referenced by AP_UnixApp::catchSignals(), AP_QtApp::catchSignals(), AP_CocoaApp::catchSignals(), and AP_Win32App::WinMain().