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

ap_Args.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 2002 Patrick Lam
00005  * Copyright (C) 2008 Robert Staudinger
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 #ifndef AP_ARGS_H
00024 #define AP_ARGS_H
00025 
00026 #include <glib.h>
00027 #include "ut_types.h"
00028 #include "xap_Args.h"
00029 
00030 class AP_Args;
00031 class AP_App;
00032 class UT_String;
00033 class XAP_App;
00034 
00035 // warning: options array is static.
00036 class ABI_EXPORT AP_Args
00037 {
00038 public:
00039     AP_Args(XAP_Args * pArgs, const char * szAppName, AP_App * pApp);
00040     ~AP_Args(void);
00041 
00042     XAP_Args *XArgs;
00043 
00044     GOptionContext * getContext() const { return m_context; }
00045     void addOptions(GOptionGroup *options);
00046 
00047     /* Parse options. */
00048     void parseOptions();
00049     UT_String * getPluginOptions() const;
00050 
00051     AP_App* getApp() const { return m_pApp; }
00052     bool doWindowlessArgs(bool & bSuccessful);
00053 #ifdef DEBUG
00054     static int    m_iDumpstrings;
00055 #endif
00056     static const char * m_sGeometry;
00057     static const char * m_sToFormat;
00058     static const char * m_sPrintTo;
00059     static const char * m_sName;
00060     static int    m_iToThumb;
00061     static const char * m_sThumbXY;
00062     static int    m_iVerbose;
00063     static int    m_iShow;
00064     static const char ** m_sPluginArgs;
00065     static const char ** m_sFiles;
00066     static int    m_iVersion;
00067     static int    m_iHelp;
00068     static const char * m_sMerge;
00069 
00070     static const char * m_impProps;
00071     static const char * m_expProps;
00072     static const char * m_sUserProfile;
00073 
00074     static const char * m_sFileExtension;
00075 private:
00076     AP_App*       m_pApp;
00077     GOptionContext *m_context;
00078 };
00079 
00080 #endif /* AP_ARGS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1