TextP.h revision 749
299N/A* $XConsortium: TextP.h,v 1.54 95/06/14 15:07:27 kaleb Exp $ 851N/A/*********************************************************** 299N/ACopyright (c) 1987, 1988, 1994 X Consortium 299N/APermission is hereby granted, free of charge, to any person obtaining a copy 299N/Aof this software and associated documentation files (the "Software"), to deal 299N/Ain the Software without restriction, including without limitation the rights 299N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell 299N/Acopies of the Software, and to permit persons to whom the Software is 299N/Afurnished to do so, subject to the following conditions: 299N/AThe above copyright notice and this permission notice shall be included in 299N/Aall copies or substantial portions of the Software. 299N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 299N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 299N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 299N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 299N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 299N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 299N/AExcept as contained in this notice, the name of the X Consortium shall not be 299N/Aused in advertising or otherwise to promote the sale, use or other dealings 299N/Ain this Software without prior written authorization from the X Consortium. 299N/ACopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 493N/APermission to use, copy, modify, and distribute this software and its 299N/Adocumentation for any purpose and without fee is hereby granted, 299N/Aprovided that the above copyright notice appear in all copies and that 851N/Aboth that copyright notice and this permission notice appear in 299N/Asupporting documentation, and that the name of Digital not be 911N/Aused in advertising or publicity pertaining to distribution of the 911N/Asoftware without specific, written prior permission. 911N/ADIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 299N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 851N/ADIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 299N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 299N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 299N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 299N/A******************************************************************/ /**************************************************************** ****************************************************************/ #
define MAXCUT 30000 /* Maximum number of characters that can be cut. *//* constants that subclasses may want to know */ /* displayable text management data structures */ * The element "contents" stores the CT string which is gotten in the * function _XawTextSaltAwaySelection(). /* Line Tables are n+1 long - last position displayed is in last lt entry */ int lines;
/* How many lines in this table. */ * Search & Replace data structure. changed out from underneath query-replace.*/ Widget label1;
/* The label widgets for the search window. */ /* Private Text Definitions */ /* New fields for the Text widget class record */ /* Full class record declaration */ /* New fields for the Text widget record */ int options;
/* wordbreak, scroll, etc. */ Time time;
/* time of last key or button action */ int numranges;
/* How many update ranges there are. */ int maxranges;
/* How many ranges we have space for */ short mult;
/* Multiplier. */ /* private state, shared w/Source and Sink */ /************************************************************* * Resource types private to Text widget. *************************************************************/ /**************************************************************** * Full instance record declaration ****************************************************************/ /******************************************** * for use by other Xaw modules only *******************************************/