2 * $XConsortium: TextSrcP.h,v 1.17 89/10/04 13:56:16 kit Exp $
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28 ******************************************************************/
31 * TextSrcP.h - Private definitions for TextSrc object
35 #ifndef _XawTextSrcP_h
36 #define _XawTextSrcP_h
38 /***********************************************************************
40 * TextSrc Object Private Data
42 ***********************************************************************/
44 #include <X11/ObjectP.h>
45 #include <./Xaw3_1TextSrc.h>
46 #include <./Xaw3_1TextP.h> /* This source works with the Text widget. */
48 /************************************************************
50 * New fields for the TextSrc object class record.
52 ************************************************************/
54 typedef struct _TextSrcClassPart
{
55 XawTextPosition (*Read
)();
57 XawTextPosition (*Scan
)();
58 XawTextPosition (*Search
)();
59 void (*SetSelection
)();
60 Boolean (*ConvertSelection
)();
63 /* Full class record declaration */
64 typedef struct _TextSrcClassRec
{
65 ObjectClassPart object_class
;
66 TextSrcClassPart textSrc_class
;
69 extern TextSrcClassRec textSrcClassRec
;
71 /* New fields for the TextSrc object record */
74 XawTextEditType edit_mode
;
77 /****************************************************************
79 * Full instance record declaration
81 ****************************************************************/
83 typedef struct _TextSrcRec
{
88 /************************************************************
90 * Private declarations.
92 ************************************************************/
94 typedef Boolean (*_XawBooleanFunc
)();
95 typedef int (*_XawIntFunc
)();
96 typedef XawTextPosition (*_XawTextPositionFunc
)();
97 typedef void (*_XawTextVoidFunc
)();
99 #define XtInheritRead ((_XawTextPositionFunc) _XtInherit)
100 #define XtInheritReplace ((_XawIntFunc) _XtInherit)
101 #define XtInheritScan ((_XawTextPositionFunc) _XtInherit)
102 #define XtInheritSearch ((_XawTextPositionFunc) _XtInherit)
103 #define XtInheritSetSelection ((_XawTextVoidFunc) _XtInherit)
104 #define XtInheritConvertSelection ((_XawBooleanFunc) _XtInherit)
106 #endif /* _XawTextSrcP_h */