-
Notifications
You must be signed in to change notification settings - Fork 3
/
olga.h
136 lines (115 loc) · 3.69 KB
/
olga.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* based on: */
/* OLGA Rev 1.5 (98-06-08) */
/* [email protected] */
/* http://www.uni-karlsruhe.de/~Thomas.Much/OLGA */
#ifndef OLGA_H
#define OLGA_H
#include <gem.h>
#define OLE_INIT 0x4950
#define OLE_EXIT 0x4951
#define OLE_NEW 0x4952
#define OLGA_INIT 0x1236
#define OLGA_UPDATE 0x1238
#define OLGA_ACK 0x1239
#define OLGA_RENAME 0x123a
#define OLGA_OPENDOC 0x123b
#define OLGA_CLOSEDOC 0x123c
#define OLGA_LINK 0x123d
#define OLGA_UNLINK 0x123e
#define OLGA_UPDATED 0x123f
#define OLGA_RENAMELINK 0x1240
#define OLGA_LINKRENAMED 0x1241
#define OLGA_GETOBJECTS 0x1242
#define OLGA_OBJECTS 0x1243
#define OLGA_BREAKLINK 0x1244
#define OLGA_LINKBROKEN 0x1245
#define OLGA_START 0x1246
#define OLGA_GETINFO 0x1247
#define OLGA_INFO 0x1248
#define OLGA_IDLE 0x1249
#define OLGA_ACTIVATE 0x124a
#define OLGA_EMBED 0x124b
#define OLGA_EMBEDDED 0x124c
#define OLGA_UNEMBED 0x124d
#define OLGA_GETSETTINGS 0x124e
#define OLGA_SETTINGS 0x124f
#define OLGA_REQUESTNOTIFICATION 0x1250
#define OLGA_RELEASENOTIFICATION 0x1251
#define OLGA_NOTIFY 0x1252
#define OLGA_NOTIFIED 0x1253
#define OLGA_SERVERTERMINATED 0x1254
#define OLGA_CLIENTTERMINATED 0x1255
#define OLGA_INPLACEUPDATE 0x1256
#define OLGA_ID4UPDATE 0x1257
#define OLGA_GETEXTENSION 0x1258
#define OLGA_EXTENSION 0x1259
#define OLGA_GETSERVERPATH 0x125a
#define OLGA_SERVERPATH 0x125b
#define OLGA_IE_BUTTON 0x125c
#define OLGA_IE_KEY 0x125d
#define OL_SERVER 0x0001
#define OL_CLIENT 0x0002
#define OL_PEER (OL_SERVER | OL_CLIENT)
#define OL_CONF 0x0400
#define OL_IDLE 0x0800
#define OL_PIPES 0x1000
#define OL_START 0x2000
#define OL_MANAGER 0x4000
#define OL_OEP 0x0001
#define OLS_TYPE 1
#define OLS_EXTENSION 2
#define OLS_NAME 3
#define OL_SRV_ID4 0x0001
typedef struct
{
int x,y,w,h;
int x1,y1,x2,y2;
} OLGARect;
typedef struct
{
long magic;
unsigned int version;
unsigned int skip;
} OLGAInfHeader;
typedef struct
{
long id;
long length;
} OLGABlockHeader;
typedef struct
{
int Red;
int Green;
int Blue;
} OLGARGB;
/* not used at the moment ---------------
typedef struct
{
int Count;
OLGARGB Colors[];
} OLGAColorTable;
typedef struct _OLGAObjectInfo
{
char *Filename;
AESPB *ClientGEMPB;
long ClientData;
long ServerData;
int CBLock;
int CBCount;
void __CDECL (*CBDraw) (struct _OLGAObjectInfo *objectinfo, int outScreen, int outHandle, int outDevID, OLGARect *Size, OLGARect *Clip);
void __CDECL (*CBUnembed) (struct _OLGAObjectInfo *objectinfo);
void __CDECL (*CBXDraw) (struct _OLGAObjectInfo *objectinfo, int outScreen, int outHandle, int outDevID, OLGARect *Size, OLGARect *Clip, long Width_mm1000, long Height_mm1000, long Scale);
OLGAColorTable *cbColorTable;
int cbClientID;
int cbServerID;
} OLGAObjectInfo;
typedef struct
{
long len;
int wHandle;
int kShift;
OLGARect *Size;
OLGAObjectInfo *objectinfo;
} OLGAIEInfo;
---------------- */
#endif