Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AP_APP_H
00022 #define AP_APP_H
00023
00024 #ifdef HAVE_CONFIG_H
00025 #include "config.h"
00026 #endif
00027
00028 class AP_Args;
00029 class AP_Frame;
00030 class XAP_Frame;
00031
00032
00033
00034 #if defined(TOOLKIT_WIN)
00035 #include "xap_Win32App.h"
00036 #define XAP_App_BaseClass XAP_Win32App
00037 #elif defined(TOOLKIT_COCOA)
00038 #include "xap_CocoaApp.h"
00039 #define XAP_App_BaseClass XAP_CocoaApp
00040 #elif defined(TOOLKIT_QT)
00041 #include "xap_QtApp.h"
00042 #define XAP_App_BaseClass XAP_QtApp
00043 #else
00044 #include "xap_UnixApp.h"
00045 #define XAP_App_BaseClass XAP_UnixApp
00046 #endif
00047
00051 class ABI_EXPORT AP_App : public XAP_App_BaseClass
00052 {
00053 public:
00054
00055 #if defined(TOOLKIT_WIN)
00056 AP_App (HINSTANCE hInstance, const char * szAppName);
00057 #else
00058 AP_App (const char * szAppName);
00059 #endif
00060 virtual ~AP_App ();
00061 virtual bool initialize(void);
00062
00063
00064
00065
00066 virtual void errorMsgBadArg (AP_Args *, int);
00067 virtual void errorMsgBadFile(XAP_Frame *, const char *, UT_Error);
00068
00069
00070 virtual bool doWindowlessArgs (const AP_Args *, bool & bSuccess);
00071
00072 bool openCmdLineFiles(const AP_Args * args);
00073 bool openCmdLinePlugins(const AP_Args * args, bool & bSuccess);
00074 protected:
00075 void saveRecoveryFiles();
00076 private:
00077
00078 };
00079
00080 #endif // AP_APP_H