00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef INC_MI32_XMHTML_H
00034 #define INC_MI32_XMHTML_H
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166 #ifndef _XmHTML_h_
00167 #define _XmHTML_h_
00168
00169 #define XmHTMLVERSION 1
00170 #define XmHTMLREVISION 1
00171 #define XmHTMLUPDATE_LEVEL 5
00172 #define XmHTMLVersion \
00173 (XmHTMLVERSION * 1000 + XmHTMLREVISION * 100 + XmHTMLUPDATE_LEVEL)
00174
00175
00176 #ifndef _LIBRARY
00177
00178 #define XmHTMLVERSION_STRING \
00179 "XmHTML Beta Version 1.1.5 (C)Ripley Software Development"
00180
00181
00182 #include <X11/Intrinsic.h>
00183 #include <Xm/Xm.h>
00184 #include <mi32/html.h>
00185
00186
00187 #if defined(WIN32) || defined(USEDLLS)
00188 #ifdef XMHTML_DLL
00189 #if !defined(MAC_OSX)
00190 #define XMHTMLEXPORT __declspec(dllexport)
00191 #endif
00192 #else
00193
00194 #if defined(MAC_OSX)
00195 #define XMHTMLEXPORT extern
00196 #else
00197 #define XMHTMLEXPORT extern __declspec(dllimport)
00198 #endif
00199 #endif
00200 #else
00201 #define XMHTMLEXPORT extern
00202 #endif
00203
00204 #ifndef XMHTMLEXPORT
00205 #define XMHTMLEXPORT
00206 #endif
00207
00208
00209 #ifndef CHAR_ALREADY_TYPEDEFED
00210 #define CHAR_ALREADY_TYPEDEFED
00211 #ifdef CHAR
00212 #undef CHAR
00213 #endif
00214 #ifdef MIUNICODE
00215 typedef unsigned short CHAR;
00216 #else
00217 typedef unsigned char CHAR;
00218 #endif
00219 #endif
00220
00221 _XFUNCPROTOBEGIN
00222
00223 #ifdef __cplusplus
00224 extern "C" {
00225 #endif
00226
00227
00228 typedef struct _XmHTMLClassRec *XmHTMLWidgetClass;
00229 typedef struct _XmHTMLRec *XmHTMLWidget;
00230
00231
00232
00233
00234
00235 #ifdef VMS
00236 externalref WidgetClass xmHTMLWidgetClass;
00237 #else
00238 XMHTMLEXPORT WidgetClass xmHTMLWidgetClass;
00239 #endif
00240
00241
00242 #ifndef XmIsHTML
00243 #define XmIsHTML(w) XtIsSubclass(w, xmHTMLWidgetClass)
00244 #endif
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00266 XMHTMLEXPORT XmImageInfo *XmHTMLImageDefaultProc (
00267 Widget w,
00268 String file,
00269 unsigned char *buf,
00270 int size
00271 );
00272
00276 XMHTMLEXPORT unsigned char XmHTMLImageGetType (
00277 String file,
00278 unsigned char *buf,
00279 int size
00280 );
00281
00285 XMHTMLEXPORT Boolean XmHTMLImageJPEGSupported (
00286 void
00287 );
00288
00292 XMHTMLEXPORT Boolean XmHTMLImagePNGSupported (
00293 void
00294 );
00295
00299 XMHTMLEXPORT Boolean XmHTMLImageGZFSupported (
00300 void
00301 );
00302
00307 XMHTMLEXPORT XmImageStatus XmHTMLImageReplace (
00308 Widget w,
00309 XmImageInfo *image,
00310 XmImageInfo *new_image
00311 );
00312
00317 XMHTMLEXPORT XmImageStatus XmHTMLImageUpdate (
00318 Widget w,
00319 XmImageInfo *image
00320 );
00321
00325 XMHTMLEXPORT void XmHTMLImageFreeAllImages (
00326 Widget w
00327 );
00328
00332 XMHTMLEXPORT void XmHTMLImageAddImageMap (
00333 Widget w,
00334 String image_map
00335 );
00336
00340 XMHTMLEXPORT void XmHTMLImageFreeImageInfo (
00341 Widget w,
00342 XmImageInfo *info
00343 );
00344
00349 XMHTMLEXPORT int XmHTMLImageGetImageInfoSize (
00350 XmImageInfo *info
00351 );
00352
00356 XMHTMLEXPORT void XmHTMLImageProgressiveSuspend (
00357 Widget w
00358 );
00359
00363 XMHTMLEXPORT void XmHTMLImageProgressiveContinue (
00364 Widget w
00365 );
00366
00370 XMHTMLEXPORT void XmHTMLImageProgressiveKill (
00371 Widget w
00372 );
00373
00374
00375
00376
00377
00384 XMHTMLEXPORT XmImage *XmImageCreate (
00385 Widget w,
00386 String file,
00387 Dimension width,
00388 Dimension height,
00389 XmImageConfig *config
00390 );
00391
00400 XMHTMLEXPORT XmImage *XmImageCreateFromInfo (
00401 Widget w,
00402 XmImageInfo *info,
00403 Dimension width,
00404 Dimension height,
00405 XmImageConfig *config
00406 );
00407
00411 XMHTMLEXPORT void XmImageDestroy (
00412 XmImage *image
00413 );
00414
00424 XMHTMLEXPORT int XmImageSetBackgroundImage (
00425 XmImage *src,
00426 Drawable dest,
00427 int src_x,
00428 int src_y,
00429 int width,
00430 int height,
00431 int dest_x,
00432 int dest_y
00433 );
00434
00441 XMHTMLEXPORT int XmImageDrawImage (
00442 XmImage *image,
00443 Drawable dest,
00444 int src_x,
00445 int src_y,
00446 int dest_x,
00447 int dest_y
00448 );
00449
00457 XMHTMLEXPORT Boolean XmImageExport (
00458 XmImageInfo *info,
00459 String file,
00460 Dimension width,
00461 Dimension height,
00462 unsigned char type
00463 );
00464
00468 XMHTMLEXPORT Boolean XmHTMLGIFtoGZF (
00469 String infile,
00470 unsigned char *buf,
00471 int size,
00472 String outfile
00473 );
00479 XMHTMLEXPORT int XmHTMLAnchorGetId (
00480 Widget w,
00481 String anchor
00482 );
00483
00487 XMHTMLEXPORT void XmHTMLAnchorScrollToId (
00488 Widget w,
00489 int anchor_id
00490 );
00491
00495 XMHTMLEXPORT void XmHTMLAnchorScrollToName (
00496 Widget w,
00497 String anchor
00498 );
00499
00503 XMHTMLEXPORT Boolean XmHTMLAnchorVisibleByName (
00504 Widget w,
00505 String anchor
00506 );
00507
00511 XMHTMLEXPORT Boolean XmHTMLAnchorVisibleById (
00512 Widget w,
00513 int anchor_id
00514 );
00515
00523 XMHTMLEXPORT void XmHTMLAnchorReEval (
00524 Widget w,
00525 String href,
00526 Boolean visited
00527 );
00528
00529
00530
00531
00532
00533
00534 #define XmHTMLTextSet (WIDGET,TEXT) XtVaSetValues((WIDGET), \
00535 XmNvalue, (TEXT), NULL)
00536
00540 XMHTMLEXPORT void XmHTMLTextScrollToLine (
00541 Widget w,
00542 int line
00543 );
00544
00549 XMHTMLEXPORT void XmHTMLTextSetString (
00550 Widget w,
00551 String text
00552 );
00553
00565 XMHTMLEXPORT void XmHTMLTextSetStringWithLength (
00566 Widget w,
00567 String text,
00568 size_t len
00569 );
00570
00574 XMHTMLEXPORT String XmHTMLTextGetSource (
00575 Widget w
00576 );
00577
00589 XMHTMLEXPORT String XmHTMLTextGetString (
00590 Widget w
00591 );
00592
00596 XMHTMLEXPORT String XmHTMLTextGetFormatted (
00597 Widget w,
00598 unsigned char papertype,
00599 XmHTMLPaperSize *paperdef,
00600 unsigned char type,
00601 unsigned char PSoptions
00602 );
00603
00608 XMHTMLEXPORT String XmHTMLTextGetSelection (
00609 Widget w
00610 );
00611
00616 XMHTMLEXPORT void XmHTMLTextClearSelection (
00617 Widget w,
00618 Time time
00619 );
00620
00625 XMHTMLEXPORT Boolean XmHTMLTextSetSelection (
00626 Widget w,
00627 XmHTMLTextPosition first,
00628 XmHTMLTextPosition last,
00629 Time time
00630 );
00631
00635 XMHTMLEXPORT void XmHTMLTextSetHighlight (
00636 Widget w,
00637 XmHTMLTextPosition first,
00638 XmHTMLTextPosition last,
00639 XmHighlightMode mode
00640 );
00641
00646 XMHTMLEXPORT Boolean XmHTMLTextCopy (
00647 Widget w,
00648 Time time
00649 );
00650
00655 XMHTMLEXPORT Boolean XmHTMLTextShowPosition (
00656 Widget w,
00657 XmHTMLTextPosition position
00658 );
00659
00663 XMHTMLEXPORT XmHTMLTextFinder XmHTMLTextFinderCreate (
00664 Widget w
00665 );
00666
00670 XMHTMLEXPORT void XmHTMLTextFinderDestroy (
00671 XmHTMLTextFinder finder
00672 );
00673
00677 XMHTMLEXPORT Boolean XmHTMLTextFinderSetPattern (
00678 XmHTMLTextFinder finder,
00679 String to_find
00680 );
00681
00688 XMHTMLEXPORT Boolean XmHTMLTextFinderSetPatternFlags (
00689 XmHTMLTextFinder finder,
00690 int flags,
00691 Boolean ignore_case,
00692 XmHTMLDirection direction
00693 );
00694
00698 XMHTMLEXPORT int XmHTMLTextFinderGetError (
00699 XmHTMLTextFinder finder
00700 );
00701
00705 XMHTMLEXPORT String XmHTMLTextFinderGetErrorString (
00706 XmHTMLTextFinder finder
00707 );
00708
00712 XMHTMLEXPORT XmHTMLRegexStatus XmHTMLTextFindString (
00713 Widget w,
00714 XmHTMLTextFinder finder
00715 );
00716
00720 XMHTMLEXPORT void XmHTMLTextFinderReset (
00721 XmHTMLTextFinder finder
00722 );
00723
00727 XMHTMLEXPORT Boolean XmHTMLTextFindToPosition (
00728 Widget w,
00729 XmHTMLTextFinder finder,
00730 XmHTMLTextPosition *start,
00731 XmHTMLTextPosition *end
00732 );
00733
00734
00735
00736
00737
00738
00739
00743 XMHTMLEXPORT int XmHTMLTagGetNumber (
00744 String attributes,
00745 String tag,
00746 int default_value
00747 );
00748
00754 XMHTMLEXPORT int XmHTMLTagCheckNumber (
00755 String attributes,
00756 String tag,
00757 int default_value
00758 );
00759
00764 XMHTMLEXPORT String XmHTMLTagGetValue (
00765 String attributes,
00766 String tag
00767 );
00768
00772 XMHTMLEXPORT Boolean XmHTMLTagCheck (
00773 String attributes,
00774 String tag
00775 );
00776
00780 XMHTMLEXPORT Boolean XmHTMLTagCheckValue (
00781 String attributes,
00782 String tag,
00783 String check
00784 );
00785
00786 #ifndef GENERATING_DOXYGEN_OUTPUT
00787
00788
00789
00790
00791
00792
00793
00794 XMHTMLEXPORT XmHTMLElementId XmHTMLObjectDefine (
00795 String element,
00796 Boolean terminated,
00797 unsigned long attribute_flags,
00798 XtPointer user_data
00799 );
00800
00801
00802 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectUndefine (
00803 XmHTMLElementId element_id
00804 );
00805
00806
00807 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectReconfigure (
00808 Widget w,
00809 XmHTMLObjectId object_id,
00810 int x,
00811 int y,
00812 Dimension width,
00813 Dimension height
00814 );
00815
00816
00817 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectShow (
00818 Widget w,
00819 XmHTMLObjectId object_id,
00820 Boolean show
00821 );
00822
00823
00824 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectRaise (
00825 Widget w,
00826 XmHTMLObjectId object_id
00827 );
00828
00829
00830 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectLower (
00831 Widget w,
00832 XmHTMLObjectId object_id
00833 );
00834
00835
00836 XMHTMLEXPORT XmHTMLObjectId XmHTMLObjectCreate (
00837 XmHTMLElementId element_id
00838 );
00839
00840
00841 XMHTMLEXPORT void XmHTMLObjectDestroy (
00842 XmHTMLObjectId object_id
00843 );
00844
00845
00846 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectRegister (
00847 Widget w,
00848 XmHTMLObjectId object_id
00849 );
00850
00851
00852 XMHTMLEXPORT XmHTMLObjectStatus XmHTMLObjectUnregister (
00853 Widget w,
00854 XmHTMLObjectId object_id
00855 );
00856
00857
00858 XMHTMLEXPORT XmHTMLElementId XmHTMLObjectGetElement (
00859 Widget w,
00860 XmHTMLObjectId object_id
00861 );
00862
00863 #endif
00864
00865
00866
00867
00868
00872 XMHTMLEXPORT int XmHTMLGetVersion (
00873 void
00874 );
00875
00879 XMHTMLEXPORT URLType XmHTMLGetURLType (
00880 String href
00881 );
00882
00886 XMHTMLEXPORT String XmHTMLGetTitle (
00887 Widget w
00888 );
00889
00894 XMHTMLEXPORT XmHTMLInfoStructure *XmHTMLXYToInfo (
00895 Widget w,
00896 int x,
00897 int y
00898 );
00899
00903 XMHTMLEXPORT XmHTMLDocumentInfo *XmHTMLGetDocumentInfo (
00904 Widget w
00905 );
00906
00910 XMHTMLEXPORT void XmHTMLFreeDocumentInfo (
00911 XmHTMLDocumentInfo *doc_info
00912 );
00913
00923 XMHTMLEXPORT Boolean XmHTMLGetHeadAttributes (
00924 Widget w,
00925 XmHTMLHeadAttributes *head,
00926 unsigned char mask_bits
00927 );
00928
00932 XMHTMLEXPORT Widget XmHTMLFrameGetChild (
00933 Widget w,
00934 String name
00935 );
00936
00941 XMHTMLEXPORT Widget XmCreateHTML (
00942 Widget parent,
00943 String name,
00944 ArgList arglist,
00945 Cardinal argcount
00946 );
00947
00953 XMHTMLEXPORT void XmHTMLRedisplay (
00954 Widget w
00955 );
00956
00960 XMHTMLEXPORT XmHTMLFontCacheInfo *XmHTMLGetFontCacheInfo (
00961 Widget w
00962 );
00963
00967 XMHTMLEXPORT void XmHTMLFreeFontCacheInfo (
00968 XmHTMLFontCacheInfo *info
00969 );
00970
00974 XMHTMLEXPORT Pixel XmHTMLAllocColor (
00975 Widget w,
00976 String color,
00977 Pixel def_pixel
00978 );
00979
00983 XMHTMLEXPORT void XmHTMLFreeColor (
00984 Widget w,
00985 Pixel pixel
00986 );
00987
00991 XMHTMLEXPORT void _XmHTMLSetTkaOverrideFunc (
00992 void(*)(void*,void*),
00993 void*
00994 );
00995
00996 #ifdef __cplusplus
00997 }
00998 #endif
00999
01000 _XFUNCPROTOEND
01001
01002 #endif
01003
01004
01005 #endif
01006
01007 #endif // INC_MI32_XMHTML_H