#include <ap_Args.h>
Public Member Functions | |
AP_Args (XAP_Args *pArgs, const char *szAppName, AP_App *pApp) | |
~AP_Args (void) | |
GOptionContext * | getContext () const |
void | addOptions (GOptionGroup *options) |
void | parseOptions () |
UT_String * | getPluginOptions () const |
AP_App * | getApp () const |
bool | doWindowlessArgs (bool &bSuccessful) |
Public Attributes | |
XAP_Args * | XArgs |
Static Public Attributes | |
static const char * | m_sGeometry = NULL |
static const char * | m_sToFormat = NULL |
static const char * | m_sPrintTo = NULL |
static const char * | m_sName = NULL |
static int | m_iToThumb = 0 |
static const char * | m_sThumbXY = "100x120" |
static int | m_iVerbose = 1 |
static int | m_iShow |
static const char ** | m_sPluginArgs = NULL |
static const char ** | m_sFiles = NULL |
static int | m_iVersion = 0 |
static int | m_iHelp = 0 |
static const char * | m_sMerge = NULL |
static const char * | m_impProps = NULL |
static const char * | m_expProps = NULL |
static const char * | m_sUserProfile = NULL |
static const char * | m_sFileExtension = NULL |
Private Attributes | |
AP_App * | m_pApp |
GOptionContext * | m_context |
AP_Args::~AP_Args | ( | void | ) |
References m_context.
void AP_Args::addOptions | ( | GOptionGroup * | options | ) |
References m_context.
Referenced by AP_UnixApp::main(), and AP_QtApp::main().
bool AP_Args::doWindowlessArgs | ( | bool & | bSuccessful | ) |
Handles arguments which require an XAP_App but no windows. It has a callback to getApp()doWindowlessArgs().
References ABI_WIDE_STRING, AP_PREF_DEFAULT_StringSet, AP_Convert::convertTo(), AP_App::doWindowlessArgs(), getApp(), m_expProps, m_impProps, m_iVerbose, m_iVersion, m_pApp, m_sFileExtension, m_sFiles, m_sMerge, m_sName, m_sToFormat, PACKAGE_VERSION, printf, AP_Convert::setExpProps(), AP_Convert::setImpProps(), AP_Convert::setMergeSource(), AP_Convert::setVerbose(), and UT_DEBUGMSG.
Referenced by AP_UnixApp::main(), AP_QtApp::main(), AP_CocoaApp::main(), and AP_Win32App::WinMain().
AP_App* AP_Args::getApp | ( | void | ) | const [inline] |
GOptionContext* AP_Args::getContext | ( | ) | const [inline] |
UT_String * AP_Args::getPluginOptions | ( | ) | const |
References m_sPluginArgs, and UT_ASSERT.
Referenced by AP_App::openCmdLinePlugins().
void AP_Args::parseOptions | ( | ) |
Processes all the command line options and puts them in AP_Args.
Note that GNOME does this for us... but fails.
References XAP_Args::m_argc, XAP_Args::m_argv, m_context, m_expProps, m_impProps, m_sFileExtension, m_sFiles, m_sMerge, m_sName, m_sPluginArgs, m_sUserProfile, and XArgs.
Referenced by libabiword_init(), libabiword_init_noargs(), AP_UnixApp::main(), AP_QtApp::main(), AP_CocoaApp::main(), and AP_Win32App::WinMain().
GOptionContext* AP_Args::m_context [private] |
Referenced by addOptions(), AP_Args(), parseOptions(), and ~AP_Args().
const char * AP_Args::m_expProps = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), doWindowlessArgs(), and parseOptions().
int AP_Args::m_iHelp = 0 [static] |
const char * AP_Args::m_impProps = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), doWindowlessArgs(), IE_Imp_MSWrite::IE_Imp_MSWrite(), and parseOptions().
int AP_Args::m_iShow [static] |
int AP_Args::m_iToThumb = 0 [static] |
Referenced by AP_UnixApp::doWindowlessArgs().
int AP_Args::m_iVerbose = 1 [static] |
Referenced by AP_Win32App::doWindowlessArgs(), and doWindowlessArgs().
int AP_Args::m_iVersion = 0 [static] |
Referenced by doWindowlessArgs().
AP_App* AP_Args::m_pApp [private] |
Referenced by doWindowlessArgs().
const char * AP_Args::m_sFileExtension = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), doWindowlessArgs(), and parseOptions().
const char ** AP_Args::m_sFiles = NULL [static] |
const char * AP_Args::m_sGeometry = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), and AP_UnixApp::doWindowlessArgs().
const char * AP_Args::m_sMerge = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), doWindowlessArgs(), AP_App::openCmdLineFiles(), and parseOptions().
const char * AP_Args::m_sName = NULL [static] |
Referenced by doWindowlessArgs(), and parseOptions().
const char ** AP_Args::m_sPluginArgs = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), Garble_invoke(), getPluginOptions(), AP_App::openCmdLinePlugins(), and parseOptions().
const char * AP_Args::m_sPrintTo = NULL [static] |
Referenced by AP_Win32App::doWindowlessArgs(), and AP_UnixApp::doWindowlessArgs().
const char * AP_Args::m_sThumbXY = "100x120" [static] |
const char * AP_Args::m_sToFormat = NULL [static] |
Referenced by doWindowlessArgs().
const char * AP_Args::m_sUserProfile = NULL [static] |
Referenced by AP_Prefs::getPrefsPathname(), and parseOptions().
Referenced by parseOptions().