ap_CocoaApp.cpp File Reference

#import <Cocoa/Cocoa.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <popt.h>
#include "ut_bytebuf.h"
#include "ut_debugmsg.h"
#include "ut_string.h"
#include "ut_string_class.h"
#include "ut_math.h"
#include "ut_misc.h"
#include "ut_png.h"
#include "ut_Script.h"
#include "ev_CocoaMenuBar.h"
#include "ev_EditMethod.h"
#include "xap_Args.h"
#include "xap_CocoaAppController.h"
#include "xap_CocoaFrame.h"
#include "xap_DialogFactory.h"
#include "xap_Dialog_Id.h"
#include "xap_Dlg_MessageBox.h"
#include "xap_EditMethods.h"
#include "xap_EncodingManager.h"
#include "xap_Menu_ActionSet.h"
#include "xap_Menu_Layouts.h"
#include "xap_Module.h"
#include "xap_ModuleManager.h"
#include "xap_Prefs.h"
#include "xap_Toolbar_ActionSet.h"
#include "xap_Toolbar_Layouts.h"
#include "abi-builtin-plugins.h"
#include "xav_View.h"
#include "gr_CocoaGraphics.h"
#include "gr_CocoaImage.h"
#include "gr_Graphics.h"
#include "gr_Image.h"
#include "fp_Run.h"
#include "fv_View.h"
#include "ap_Args.h"
#include "ap_CocoaApp.h"
#include "ap_CocoaClipboard.h"
#include "ap_CocoaFrame.h"
#include "ap_CocoaFrameImpl.h"
#include "ap_CocoaPrefs.h"
#include "ap_Convert.h"
#include "ap_LoadBindings.h"
#include "ap_Prefs_SchemeIds.h"
#include "ap_Strings.h"
#include "ie_impexp_Register.h"
#include "ie_exp.h"
#include "ie_exp_RTF.h"
#include "ie_exp_Text.h"
#include "ie_imp.h"
#include "ie_imp_RTF.h"
#include "ie_imp_Text.h"
#include "ie_impGraphic.h"
#include "spell_manager.h"

Functions

XAP_Dialog_MessageBox::tAnswer s_CouldNotLoadFileMessage (XAP_Frame *pFrame, const char *pNewFile, UT_Error errorCode)
static bool s_createDirectoryIfNecessary (const char *szDir, bool publicdir=false)
void signalWrapper (int sig_num)

Variables

static const char * aszFormatsAccepted []
static int s_signal_count = 0

Function Documentation

XAP_Dialog_MessageBox::tAnswer s_CouldNotLoadFileMessage ( XAP_Frame pFrame,
const char *  pNewFile,
UT_Error  errorCode 
)

static bool s_createDirectoryIfNecessary ( const char *  szDir,
bool  publicdir = false 
) [static]

Creates a directory if the specified one does not yet exist. /param A character string representing the to-be-created directory. /return True, if the directory already existed, or was successfully created. False, if the input path was already a file, not a directory, or if the directory was unable to be created. /todo Do domething with error status if the directory couldn't be created?

References UT_DEBUGMSG.

void signalWrapper ( int  sig_num  ) 

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)

Referenced by AP_UnixApp::catchSignals(), AP_CocoaApp::catchSignals(), AP_UnixApp::main(), and AP_CocoaApp::main().


Variable Documentation

const char* aszFormatsAccepted[] [static]

int s_signal_count = 0 [static]


Generated on Thu Aug 28 00:06:29 2008 for AbiWord by  doxygen 1.5.5