1 /**********************************************************
3 ** $VER: ClipLoc.h 1.2 (10 dec 1999) **
4 ** Datatypes for highlighting text with mouse. **
6 ** © T.Pierron, C.Guilaume. Free software under **
7 ** terms of GNU public license. **
9 **********************************************************/
16 ULONG startsel
; /* Extreme position of selection */
18 ULONG xp
,yp
; /* Position of first char selected */
19 void *line
; /* Line starting the selection */
20 ULONG xc
,yc
; /* Current selection point */
21 void *cline
; /* Last line selected */
22 UBYTE select
; /* See below */
25 /** Clipboard unit for copy/paste operations **/
26 #define STD_CLIP_UNIT PRIMARY_CLIP
28 /** Type of selection **/
29 #define STREAM_TYPE 1 /* Standard line selection */
30 #define COLUMN_TYPE 2 /* Columnar-type of selection */
31 #define LINE_TYPE 3 /* Whole line selection */
32 #define WORD_TYPE 4 /* Selection by words */
34 /** To access global messages table **/
35 #define ErrMsg(num) JanoMessages[ num-ERR_BADOS ]
36 extern STRPTR JanoMessages
[];
40 void CBClose ( void );
41 BOOL
CBWriteFTXT ( LINE
*, struct cutcopypast
* );
42 BOOL
CBReadCHRS ( void *, LINE
*, ULONG
, LONG
* );
45 void InitLocale ( void );
46 void CleanupLocale ( void );