version 1.319, 2007/06/05 09:32:26
|
version 1.320, 2007/06/08 09:53:28
|
Line 28
|
Line 28
|
#include "view.h" |
#include "view.h" |
#include "uconvert.h" |
#include "uconvert.h" |
#include "undo.h" |
#include "undo.h" |
|
|
/* Included headerfiles */ |
/* Included headerfiles */ |
#include "EDITOR.h" |
#include "EDITOR.h" |
#include "HTML.h" |
#include "HTML.h" |
Line 37
|
Line 38
|
#include "XML.h" |
#include "XML.h" |
#include "amayamsg.h" |
#include "amayamsg.h" |
#include "parser.h" |
#include "parser.h" |
|
|
#define NAME_LENGTH 32 |
#define NAME_LENGTH 32 |
|
|
#define URL_STR "/" |
#define URL_STR "/" |
Line 57 typedef enum _ConvertionType
|
Line 57 typedef enum _ConvertionType
|
} |
} |
ConvertionType; |
ConvertionType; |
|
|
/* the HTTP header name we want to make visible to the application */ |
|
typedef enum _AHTHeaderName |
|
{ |
|
AM_HTTP_CONTENT_TYPE = 0, |
|
AM_HTTP_CHARSET = 1, |
|
AM_HTTP_CONTENT_LENGTH = 2, |
|
AM_HTTP_REASON = 3, |
|
AM_HTTP_CONTENT_LOCATION = 4, |
|
AM_HTTP_FULL_CONTENT_LOCATION = 5 |
|
} |
|
AHTHeaderName; |
|
|
|
/* the structure used for exchanging HTTP header info between the net library |
/* the structure used for exchanging HTTP header info between the net library |
and amaya */ |
and amaya */ |
typedef struct _AHTHeaders |
typedef struct _AHTHeaders |
Line 83 typedef struct _AHTHeaders
|
Line 71 typedef struct _AHTHeaders
|
} |
} |
AHTHeaders; |
AHTHeaders; |
|
|
|
/* the HTTP header name we want to make visible to the application */ |
|
typedef enum _AHTHeaderName |
|
{ |
|
AM_HTTP_CONTENT_TYPE = 0, |
|
AM_HTTP_CHARSET = 1, |
|
AM_HTTP_CONTENT_LENGTH = 2, |
|
AM_HTTP_REASON = 3, |
|
AM_HTTP_CONTENT_LOCATION = 4, |
|
AM_HTTP_FULL_CONTENT_LOCATION = 5 |
|
} |
|
AHTHeaderName; |
|
|
/* The structures used for request callbacks */ |
/* The structures used for request callbacks */ |
typedef void TIcbf (Document doc, int status, char *urlName, |
typedef void TIcbf (Document doc, int status, char *urlName, |
char *outputfile, const AHTHeaders *http_headers, |
char *outputfile, const AHTHeaders *http_headers, |
Line 93 typedef void TTcbf (Document doc, int s
|
Line 93 typedef void TTcbf (Document doc, int s
|
char *outputfile, char *proxyName, |
char *outputfile, char *proxyName, |
const AHTHeaders *http_headers, void *context); |
const AHTHeaders *http_headers, void *context); |
|
|
|
/* the structure used for storing the context of the |
|
GetAmayaDoc_callback function */ |
|
typedef struct _AmayaDoc_context |
|
{ |
|
Document doc; |
|
Document baseDoc; |
|
ThotBool history; |
|
ThotBool local_link; |
|
char *target; |
|
char *documentname; /* the document name */ |
|
char *initial_url; /* initial loaded URL */ |
|
char *form_data; |
|
int method; |
|
ThotBool inNewWindow; |
|
TTcbf *cbf; |
|
void *ctx_cbf; |
|
} AmayaDoc_context; |
|
|
|
/* the structure used for storing the context of the |
|
Reload_callback function */ |
|
typedef struct _RELOAD_context |
|
{ |
|
Document newdoc; |
|
char *documentname; |
|
char *form_data; |
|
int method; |
|
int position; /* volume preceding the the first element to be shown */ |
|
int distance; /* distance from the top of the window to the top of this |
|
element (% of the window height) */ |
|
int visibility; /* register the current visibility */ |
|
ThotBool maparea; /* register the current maparea */ |
|
} RELOAD_context; |
|
|
/* How are Network accesses provided ? */ |
/* How are Network accesses provided ? */ |
#include "libwww.h" |
#include "libwww.h" |
|
|
Line 100 typedef void TTcbf (Document doc, int s
|
Line 133 typedef void TTcbf (Document doc, int s
|
typedef enum _ClickEvent { |
typedef enum _ClickEvent { |
CE_ABSOLUTE, CE_RELATIVE, CE_FORM_POST, CE_FORM_GET, |
CE_ABSOLUTE, CE_RELATIVE, CE_FORM_POST, CE_FORM_GET, |
CE_HELP, CE_MAKEBOOK, CE_LOG , CE_TEMPLATE, CE_INIT, |
CE_HELP, CE_MAKEBOOK, CE_LOG , CE_TEMPLATE, CE_INIT, |
CE_CSS, CE_ANNOT |
CE_CSS, CE_ANNOT, CE_INSTANCE |
} ClickEvent; |
} ClickEvent; |
|
|
#define NO 0 |
#define NO 0 |