ap_UnixApp.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <glib.h>
#include "ut_debugmsg.h"
#include "ut_path.h"
#include "ut_string.h"
#include "ut_misc.h"
#include "ut_locale.h"
#include "ut_sleep.h"
#include "xap_Args.h"
#include "ap_Args.h"
#include "ap_Convert.h"
#include "ap_UnixFrame.h"
#include "ap_UnixApp.h"
#include "ap_Strings.h"
#include "xap_EditMethods.h"
#include "ap_LoadBindings.h"
#include "ap_UnixStockIcons.h"
#include "xap_DialogFactory.h"
#include "xap_Dlg_MessageBox.h"
#include "xap_Dialog_Id.h"
#include "xap_Menu_ActionSet.h"
#include "xap_Menu_Layouts.h"
#include "xap_Toolbar_ActionSet.h"
#include "xap_Toolbar_Layouts.h"
#include "xav_View.h"
#include <gdk/gdk.h>
#include "gr_Graphics.h"
#include "gr_Image.h"
#include "gr_UnixImage.h"
#include "ut_bytebuf.h"
#include "ut_png.h"
#include "xap_UnixDialogHelper.h"
#include "ut_iconv.h"
#include "fv_View.h"
#include "fp_Run.h"
#include "ut_string_class.h"
#include "xap_EncodingManager.h"
#include "ie_types.h"
#include "ie_impexp_Register.h"
#include "ev_EditMethod.h"
#include "xap_ModuleManager.h"
#include "xap_Module.h"
#include "ie_exp.h"
#include "ie_exp_RTF.h"
#include "ie_exp_Text.h"
#include "ie_exp_HTML.h"
#include "ie_imp.h"
#include "ie_imp_RTF.h"
#include "ie_imp_Text.h"
#include "ie_imp_XHTML.h"
#include "gr_DrawArgs.h"
#include "xap_Prefs.h"
#include "ap_Prefs_SchemeIds.h"
#include "abiwidget.h"
#include "gr_Painter.h"
#include "ap_Preview_Abi.h"
#include "gr_UnixPangoGraphics.h"
#include "gr_UnixPangoPixmapGraphics.h"
#include "ie_impGraphic.h"
#include "ut_math.h"
#include "abi-builtin-plugins.h"

Defines

#define ABIWORD_INTERNAL
#define WIN_POS   GTK_WIN_POS_CENTER
#define CLIPBOARD_IS_HTML4   true
#define PMSCALE   0.5
#define PMW   (PMSCALE * P_WIDTH)
#define PMH   (PMSCALE * P_HEIGHT)

Functions

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

Variables

static gint s_signal_count = 0

Define Documentation

#define ABIWORD_INTERNAL

#define CLIPBOARD_IS_HTML4   true

#define PMH   (PMSCALE * P_HEIGHT)

#define PMSCALE   0.5

#define PMW   (PMSCALE * P_WIDTH)

#define WIN_POS   GTK_WIN_POS_CENTER


Function Documentation

static bool is_so ( const char *  file  )  [static]

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

static bool s_createDirectoryIfNecessary ( const char *  szDir  )  [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.)

References AP_UnixApp::catchSignals(), AP_CocoaApp::catchSignals(), and XAP_App::getApp().


Variable Documentation

gint s_signal_count = 0 [static]


Generated on Fri Sep 5 00:06:34 2008 for AbiWord by  doxygen 1.5.5