Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

main_win32.cpp File Reference

#include <iostream>
#include <signal.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include <QApplication>
#include <exception>
#include "scribusapp.h"
#include "scribuscore.h"
#include "scribus.h"
#include "scconfig.h"
#include <wincon.h>
#include <windows.h>

Include dependency graph for main_win32.cpp:

Go to the source code of this file.

Defines

#define BASE_QM   "scribus"
#define MAX_LINES   500

Functions

int mainApp (ScribusQApp &app)
 Launches the Gui.
static LONG exceptionFilter (DWORD exceptionCode)
 describe the behavior to be adopted against specific exception
static QString exceptionDescription (DWORD exceptionCode)
 return a string describing a specific exception
static void defaultCrashHandler (DWORD exceptionCode)
void messageHandler (QtMsgType type, const char *msg)
bool consoleOptionEnabled (int argc, char *argv[])
void redirectIOToConsole (void)
int main (int argc, char *argv[])

Variables

const char ARG_CONSOLE []
const char ARG_CONSOLE_SHORT []
ScribusCore SCRIBUS_API * ScCore
ScribusMainWindow SCRIBUS_API * ScMW
ScribusQApp SCRIBUS_API * ScQApp
bool emergencyActivated


Define Documentation

#define BASE_QM   "scribus"

Definition at line 43 of file main_win32.cpp.

#define MAX_LINES   500

Definition at line 44 of file main_win32.cpp.

Referenced by redirectIOToConsole().


Function Documentation

bool consoleOptionEnabled ( int  argc,
char *  argv[] 
)

Definition at line 261 of file main_win32.cpp.

References ARG_CONSOLE, ARG_CONSOLE_SHORT, and value.

Referenced by main().

void defaultCrashHandler ( DWORD  exceptionCode  )  [static]

static QString exceptionDescription ( DWORD  exceptionCode  )  [static]

return a string describing a specific exception

Author:
Jean Ghali
Date:
Sun Oct 30 14:30:30 CET 2005
Parameters:
DWORD exceptionCode the value returned by GetExceptionCode()
Return values:
string describing the specified exception

Definition at line 177 of file main_win32.cpp.

Referenced by defaultCrashHandler().

LONG exceptionFilter ( DWORD  exceptionCode  )  [static]

describe the behavior to be adopted against specific exception

Author:
Jean Ghali
Date:
Sun Oct 30 14:30:30 CET 2005
Parameters:
DWORD exceptionCode the value returned by GetExceptionCode()
Return values:
EXCEPTION_EXECUTE_HANDLER if handler is to be executed or EXCEPTION_CONTINUE_EXECUTION if not

Definition at line 135 of file main_win32.cpp.

Referenced by mainApp().

int main ( int  argc,
char *  argv[] 
)

int mainApp ( ScribusQApp app  ) 

Launches the Gui.

Author:
Franz Schmid

Alessandro Rimoldi

Craig Bradney

Jean Ghali

Date:
Mon Feb 9 14:07:46 CET 2004
Parameters:
app a Scribus QApplication object
Return values:
int Error code from the execution of Scribus

Definition at line 103 of file main_win32.cpp.

References defaultCrashHandler(), exceptionFilter(), ScribusQApp::init(), ScribusQApp::parseCommandLine(), and ScribusQApp::useGUI.

void messageHandler ( QtMsgType  type,
const char *  msg 
)

void redirectIOToConsole ( void   ) 

Definition at line 276 of file main_win32.cpp.

References MAX_LINES.

Referenced by main().


Variable Documentation

const char ARG_CONSOLE[]

const char ARG_CONSOLE_SHORT[]

Definition at line 74 of file main_win32.cpp.

ScribusCore SCRIBUS_API* ScCore

Definition at line 71 of file main_win32.cpp.

ScribusMainWindow SCRIBUS_API* ScMW

Definition at line 72 of file main_win32.cpp.

ScribusQApp SCRIBUS_API* ScQApp

Definition at line 73 of file main_win32.cpp.

Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.