Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes

AP_Args Class Reference

#include <ap_Args.h>

List of all members.

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_StringgetPluginOptions () const
AP_AppgetApp () const
bool doWindowlessArgs (bool &bSuccessful)

Public Attributes

XAP_ArgsXArgs

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_Appm_pApp
GOptionContext * m_context

Constructor & Destructor Documentation

AP_Args::AP_Args ( XAP_Args pArgs,
const char *  szAppName,
AP_App pApp 
)

References _entries, and m_context.

AP_Args::~AP_Args ( void   ) 

References m_context.


Member Function Documentation

void AP_Args::addOptions ( GOptionGroup *  options  ) 

References m_context.

Referenced by AP_UnixApp::main(), and AP_QtApp::main().

bool AP_Args::doWindowlessArgs ( bool &  bSuccessful  ) 
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().


Member Data Documentation

GOptionContext* AP_Args::m_context [private]
const char * AP_Args::m_expProps = NULL [static]
int AP_Args::m_iHelp = 0 [static]
const char * AP_Args::m_impProps = NULL [static]
int AP_Args::m_iShow [static]
int AP_Args::m_iToThumb = 0 [static]
int AP_Args::m_iVerbose = 1 [static]
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]
const char ** AP_Args::m_sFiles = NULL [static]
const char * AP_Args::m_sGeometry = NULL [static]
const char * AP_Args::m_sMerge = NULL [static]
const char * AP_Args::m_sName = NULL [static]

Referenced by doWindowlessArgs(), and parseOptions().

const char ** AP_Args::m_sPluginArgs = NULL [static]
const char * AP_Args::m_sPrintTo = NULL [static]
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 parseOptions().


The documentation for this class was generated from the following files: