home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser 2002 January / STC_CD_01_2002.iso / APP / TRAIL_PG / GEMJING / GEMJ136.LZH / Develop / OLGA.H < prev    next >
C/C++ Source or Header  |  1998-06-08  |  4KB  |  137 lines

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