1 | #ifndef _Xmp_h_ |
---|
2 | #define _Xmp_h_ |
---|
3 | #include <X11/Xmp/COPY.h> |
---|
4 | |
---|
5 | /* |
---|
6 | * SCCS_data: %Z% %M% %I% %E% %U% |
---|
7 | * |
---|
8 | * This module contains declarations useful to clients of the |
---|
9 | * Xmp library. |
---|
10 | * |
---|
11 | ******************************************************************************* |
---|
12 | */ |
---|
13 | |
---|
14 | #include <Xm/Xm.h> |
---|
15 | #include <X11/Wc/PortableC.h> |
---|
16 | |
---|
17 | BEGIN_NOT_Cxx |
---|
18 | |
---|
19 | /* XmpRegisterMotif registers all Motif and Xmp widgets. |
---|
20 | * XmpRegisterAll and MriRegisterMotif are aliases for XmpRegisterMotif |
---|
21 | * for backward compatibility. |
---|
22 | */ |
---|
23 | void XmpRegisterMotif _(( XtAppContext )); |
---|
24 | void XmpRegisterAll _(( XtAppContext )); |
---|
25 | void MriRegisterMotif _(( XtAppContext )); |
---|
26 | |
---|
27 | /* These are called by the above functions. If you want the callbacks |
---|
28 | * or converters but not the Widgets registered, then you can just call |
---|
29 | * these. The XmpAddMotifConverters() adds those converters provided by |
---|
30 | * Motif, while XmpAddConverters() adds those converters provided by libXmp. |
---|
31 | */ |
---|
32 | void XmpAddActionsAndCallbacks _(( XtAppContext )); |
---|
33 | void XmpAddMotifConverters _(( XtAppContext )); |
---|
34 | void XmpAddConverters _(( XtAppContext )); |
---|
35 | |
---|
36 | void XmpAddMwmCloseCallback _(( Widget, XtCallbackProc, XtPointer )); |
---|
37 | |
---|
38 | void XmpChangeNavigationType _(( Widget )); |
---|
39 | |
---|
40 | /* Support for sending WcPrint messages to an XmText widget. The |
---|
41 | * following resources can be specified on this XmText widget: |
---|
42 | */ |
---|
43 | #define XmpNmessageMaxLines "messageMaxLines" |
---|
44 | #define XmpCMessageMaxLines "MessageMaxLines" |
---|
45 | #define XmpNmessageColumns "messageColumns" |
---|
46 | #define XmpCMessageColumns "MessageColumns" |
---|
47 | #define XmpNmessageLinesLostMsg "messageLinesLostMsg" |
---|
48 | #define XmpCMessageLinesLostMsg "MessageLinesLostMsg" |
---|
49 | #define XmpNmessagePopup "messagePopup" |
---|
50 | #define XmpCMessagePopup "MessagePopup" |
---|
51 | #define XmpNmessageRaise "messageRaise" |
---|
52 | #define XmpCMessageRaise "MessageRaise" |
---|
53 | #define XmpNmessageBrokenXmTextShowPosition "messageBrokenXmTextShowPosition" |
---|
54 | #define XmpCMessageBrokenXmTextShowPosition "MessageBrokenXmTextShowPosition" |
---|
55 | |
---|
56 | /* resource default |
---|
57 | * messageMaxLines 100 number of lines to be put into the |
---|
58 | * XmText widget. Once this limit is |
---|
59 | * reached, then the first lines will |
---|
60 | * be removed and replaced by the |
---|
61 | * messageLinesLostMsg. |
---|
62 | * messageColumns 80 The messages will be broken into |
---|
63 | * multiple lines at whitespace, each |
---|
64 | * line with this maximum number of |
---|
65 | * characters. |
---|
66 | * messageLinesLostMsg ... some lines lost...\n |
---|
67 | * This message, which should be newline |
---|
68 | * terminated, becomes the first line(s) |
---|
69 | * when some earlier message(s) get |
---|
70 | * eliminated due to exceeding |
---|
71 | * messageMaxLines in the XmText widget. |
---|
72 | * messagePopup True The shell containing the XmText widget |
---|
73 | * will be popped up when a new message |
---|
74 | * arrives. |
---|
75 | * messageRaise False The shell will be raised to (try and) |
---|
76 | * become the top window when a new |
---|
77 | * message arrives. |
---|
78 | * messageBrokenXmTextShowPosition False You may be surprised to discover that |
---|
79 | * XmTextShowPosition() is a VERY |
---|
80 | * special case function, which often |
---|
81 | * does not work. XmpPrint would like |
---|
82 | * to scroll the message window when a |
---|
83 | * message comes in, and would like to |
---|
84 | * use XmTextShowPosition() to do so. |
---|
85 | * If it works, OK. If not, set this |
---|
86 | * resource... |
---|
87 | * |
---|
88 | * These resources are fetched from the XmText widget when the widget becomes |
---|
89 | * the message widget due to a call to XmpMessageWidget(), XmpMessageWidgetCB(), |
---|
90 | * or XmpMessageWidgetACT(). |
---|
91 | */ |
---|
92 | extern void XmpMessageWidget _(( Widget )); |
---|
93 | |
---|
94 | |
---|
95 | END_NOT_Cxx |
---|
96 | |
---|
97 | #endif /* _Xmp_h_ */ |
---|