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
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
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
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