• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_App.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2002 Dom Lachowicz and others
00003  * Copyright (C) 2004, 2009 Hubert Figuiere
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
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 // this ugliness is needed for proper inheritence
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     /* Command line stuff. */
00064 
00065     /* Print an error message.  eg printf on UNIX, MessageBox on Windows. */
00066     virtual void errorMsgBadArg (AP_Args *, int);
00067     virtual void errorMsgBadFile(XAP_Frame *, const char *, UT_Error);
00068 
00069     /* Allow additional platform-specific windowless args. */
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

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1