applettextedit.h

Go to the documentation of this file.
00001 
00002 /*  $Id: applettextedit.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #ifndef texteditinclude
00008 #define texteditinclude /*so other includes can tell if we've been loaded*/
00009 
00010 
00011 #ifndef appletdefsinclude
00012 
00013     #include <appletdefs.h>
00014     
00015 #endif
00016 
00017 
00018 
00019 #define textvertinset 2
00020 #define texthorizinset 2
00021 #define mintextwidth 25
00022 
00023 
00024 typedef struct tyeditrecord {
00025     
00026     TEHandle macbuffer;
00027     
00028     boolean flwindowbased; /*set this true if the text is displayed in its own window*/
00029     
00030     boolean flscrolled; /*true if a clicking operation resulted in a scroll*/
00031     
00032     boolean flselectall; /*on idle, select all the text*/
00033     
00034     short vertcurrent, horizcurrent; /*allows app to maintain scrollbars*/
00035     } tyeditrecord, *ptreditrecord, **hdleditrecord;
00036     
00037 
00038 
00039 void editrewrap (hdleditrecord);
00040 
00041 boolean editvisiselection (hdleditrecord);
00042 
00043 void editgetsize (Handle, short *, short *);
00044 
00045 boolean editnewbuffer (Rect, boolean, bigstring, hdleditrecord *);
00046 
00047 void editsetrect (hdleditrecord, Rect);
00048 
00049 void editdispose (hdleditrecord);
00050     
00051 void editidle (hdleditrecord);
00052     
00053 void editautoscroll (hdleditrecord);
00054 
00055 void editpaste (hdleditrecord);
00056 
00057 void editcut (hdleditrecord);
00058 
00059 void editcopy (hdleditrecord);
00060 
00061 boolean editgettext (hdleditrecord, bigstring);
00062 
00063 void editkeystroke (char, hdleditrecord);
00064 
00065 void editclick (Point, boolean, hdleditrecord);
00066 
00067 void editcleartextchanged (hdleditrecord);
00068 
00069 void editupdate (hdleditrecord hbuffer);
00070 
00071 void editupdateport (hdleditrecord, Rect, WindowPtr);
00072 
00073 void editactivate (hdleditrecord, boolean);
00074 
00075 void editsetwordwrap (hdleditrecord, boolean);
00076 
00077 void editselectall (hdleditrecord);
00078 
00079 boolean editpointinrect (Point, hdleditrecord);
00080 
00081 boolean editreplace (bigstring, hdleditrecord);
00082 
00083 void editsetjustification (tyjustification, hdleditrecord);
00084 
00085 void editdrawtext (bigstring, Rect, tyjustification);
00086 
00087 boolean editgettexthandle (hdleditrecord, Handle *);
00088 
00089 void editdrawtexthandle (Handle, Rect, tyjustification);
00090 
00091 boolean editnewbufferfromhandle (Rect, boolean, Handle, hdleditrecord *);
00092 
00093 boolean editsettexthandle (hdleditrecord, Handle, boolean);
00094 
00095 boolean editgettexthandlecopy (hdleditrecord, Handle *);
00096 
00097 boolean editreplacehandle (Handle, hdleditrecord);
00098 
00099 boolean editgetselectedtexthandle (hdleditrecord, Handle *);
00100 
00101 void editgetbuffersize (hdleditrecord, short *, short *);
00102 
00103 boolean edithaveselection (hdleditrecord);
00104 
00105 boolean editscroll (hdleditrecord, short, short);
00106 
00107 void editscrollto (hdleditrecord, short, short);
00108 
00109 boolean editgetselection (hdleditrecord, short *, short *);
00110 
00111 boolean editsetselection (hdleditrecord, short, short);
00112 
00113 void editsetfont (hdleditrecord, short, short);
00114 
00115 #endif /*texteditinclude*/
00116 

Generated on Wed May 31 18:19:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6