applettextedit.c File Reference

#include "frontier.h"
#include "standard.h"
#include "shelltypes.h"
#include "appletdefs.h"
#include "appletmemory.h"
#include "appletfont.h"
#include "appletstrings.h"
#include "appletquickdraw.h"
#include "applettextedit.h"

Include dependency graph for applettextedit.c:

Go to the source code of this file.

Data Structures

struct  tyscrolldata

Functions

static boolean getmacbuffer (hdleditrecord hbuffer, TEHandle *macbuffer)
static void editprescroll (hdleditrecord hbuffer)
static void editsetscrollvalues (hdleditrecord hbuffer)
static short getTEjustification (tyjustification justification)
boolean editnewbuffer (Rect r, boolean flwordwrap, bigstring bs, hdleditrecord *hrecord)
static boolean rectneedsupdate (Rect r)
void editupdate (hdleditrecord hbuffer)
void editupdateport (hdleditrecord hbuffer, Rect rport, WindowPtr w)
void editactivate (hdleditrecord hbuffer, boolean flactive)
void editsetrect (hdleditrecord hbuffer, Rect r)
void editsetfont (hdleditrecord hbuffer, short fontnum, short fontsize)
void editautoscroll (hdleditrecord hbuffer)
void editsetwordwrap (hdleditrecord hbuffer, boolean fl)
void editrewrap (hdleditrecord hbuffer)
void editdispose (hdleditrecord hbuffer)
void editdrawtext (bigstring bs, Rect r, tyjustification justification)
void editdrawtexthandle (Handle htext, Rect r, tyjustification justification)
void editcut (hdleditrecord hbuffer)
void editcopy (hdleditrecord hbuffer)
void editpaste (hdleditrecord hbuffer)
boolean editgettext (hdleditrecord hbuffer, bigstring bs)
void editkeystroke (char chkb, hdleditrecord hbuffer)
void editclick (Point pt, boolean flshiftkey, hdleditrecord hbuffer)
boolean editsetselection (hdleditrecord hbuffer, short selstart, short selend)
boolean editvisiselection (hdleditrecord hbuffer)
void editselectall (hdleditrecord hbuffer)
void editidle (hdleditrecord hbuffer)
boolean editgetselection (hdleditrecord hbuffer, short *selstart, short *selend)
boolean editpointinrect (Point pt, hdleditrecord hbuffer)
boolean editreplace (bigstring bs, hdleditrecord hbuffer)
void editsetjustification (tyjustification justification, hdleditrecord hbuffer)
void editgetsize (Handle htext, short *height, short *width)
void editgetbuffersize (hdleditrecord hbuffer, short *height, short *width)
boolean editgettexthandle (hdleditrecord hbuffer, Handle *htext)
boolean editnewbufferfromhandle (Rect r, boolean flwordwrap, Handle htext, hdleditrecord *hrecord)
boolean editsettexthandle (hdleditrecord hrecord, Handle htext, boolean flselectall)
boolean editgettexthandlecopy (hdleditrecord hbuffer, Handle *htext)
boolean edithaveselection (hdleditrecord hbuffer)
boolean editscroll (hdleditrecord hbuffer, short dh, short dv)
void editscrollto (hdleditrecord hbuffer, short h, short v)
boolean editreplacehandle (Handle htext, hdleditrecord hbuffer)
boolean editgetselectedtexthandle (hdleditrecord hbuffer, Handle *htext)

Variables

tyscrolldata scrolldata


Function Documentation

void editactivate hdleditrecord  hbuffer,
boolean  flactive
 

Definition at line 270 of file applettextedit.c.

References getmacbuffer().

Referenced by runmodeactivate().

Here is the call graph for this function:

void editautoscroll hdleditrecord  hbuffer  ) 
 

Definition at line 333 of file applettextedit.c.

References getmacbuffer().

Here is the call graph for this function:

void editclick Point  pt,
boolean  flshiftkey,
hdleditrecord  hbuffer
 

Definition at line 571 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), getmacbuffer(), popclip(), pt, and pushclip().

Referenced by editclickbottleneck().

Here is the call graph for this function:

void editcopy hdleditrecord  hbuffer  ) 
 

Definition at line 460 of file applettextedit.c.

References DisposeHandle, editgetselectedtexthandle(), GetHandleSize, getmacbuffer(), HLock, HUnlock, and noErr.

Referenced by cardEditCommand().

Here is the call graph for this function:

void editcut hdleditrecord  hbuffer  ) 
 

Definition at line 416 of file applettextedit.c.

References DisposeHandle, editgetselectedtexthandle(), editprescroll(), editsetscrollvalues(), GetHandleSize, and getmacbuffer().

Referenced by cardEditCommand().

Here is the call graph for this function:

void editdispose hdleditrecord  hbuffer  ) 
 

Definition at line 378 of file applettextedit.c.

References disposehandle(), and getmacbuffer().

Referenced by clearactivetextobject().

Here is the call graph for this function:

void editdrawtext bigstring  bs,
Rect  r,
tyjustification  justification
 

Definition at line 393 of file applettextedit.c.

References getTEjustification(), stringlength, texthorizinset, and textvertinset.

Here is the call graph for this function:

void editdrawtexthandle Handle  htext,
Rect  r,
tyjustification  justification
 

Definition at line 401 of file applettextedit.c.

References GetHandleSize, getTEjustification(), lockhandle(), nil, texthorizinset, textvertinset, and unlockhandle().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

void editgetbuffersize hdleditrecord  hbuffer,
short height,
short width
 

Definition at line 776 of file applettextedit.c.

References chreturn, tyFontInfo::descent, editgetsize(), getmacbuffer(), globalfontinfo, r, texthorizinset, and textvertinset.

Here is the call graph for this function:

boolean editgetselectedtexthandle hdleditrecord  hbuffer,
Handle htext
 

Definition at line 1004 of file applettextedit.c.

References fl, getmacbuffer(), h, lockhandle(), newfilledhandle(), and unlockhandle().

Referenced by editclickbottleneck(), editcopy(), and editcut().

Here is the call graph for this function:

boolean editgetselection hdleditrecord  hbuffer,
short selstart,
short selend
 

Definition at line 648 of file applettextedit.c.

References getmacbuffer().

Here is the call graph for this function:

void editgetsize Handle  htext,
short height,
short width
 

Definition at line 706 of file applettextedit.c.

References chreturn, GetHandleSize, HLock, HUnlock, and i.

Referenced by editgetbuffersize(), and getobjectsize().

boolean editgettext hdleditrecord  hbuffer,
bigstring  bs
 

Definition at line 533 of file applettextedit.c.

References getmacbuffer(), lenbigstring, moveleft(), and setstringlength.

Here is the call graph for this function:

boolean editgettexthandle hdleditrecord  hbuffer,
Handle htext
 

Definition at line 814 of file applettextedit.c.

References getmacbuffer().

Referenced by getobjectvalue().

Here is the call graph for this function:

boolean editgettexthandlecopy hdleditrecord  hbuffer,
Handle htext
 

Definition at line 909 of file applettextedit.c.

References copyhandle(), GetHandleSize, getmacbuffer(), h, and nil.

Referenced by clearactivetextobject().

Here is the call graph for this function:

boolean edithaveselection hdleditrecord  hbuffer  ) 
 

Definition at line 936 of file applettextedit.c.

References getmacbuffer().

Here is the call graph for this function:

void editidle hdleditrecord  hbuffer  ) 
 

Definition at line 630 of file applettextedit.c.

References editselectall(), and getmacbuffer().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

void editkeystroke char  chkb,
hdleditrecord  hbuffer
 

Definition at line 556 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

boolean editnewbuffer Rect  r,
boolean  flwordwrap,
bigstring  bs,
hdleditrecord hrecord
 

Definition at line 101 of file applettextedit.c.

References disposehandle(), h, longsizeof, newclearhandle(), nil, stringlength, texthorizinset, and textvertinset.

Here is the call graph for this function:

boolean editnewbufferfromhandle Rect  r,
boolean  flwordwrap,
Handle  htext,
hdleditrecord hrecord
 

Definition at line 832 of file applettextedit.c.

References disposehandle(), GetHandleSize, h, lockhandle(), longsizeof, newclearhandle(), nil, texthorizinset, textvertinset, and unlockhandle().

Referenced by setactivetextobject().

Here is the call graph for this function:

void editpaste hdleditrecord  hbuffer  ) 
 

Definition at line 516 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Referenced by cardEditCommand().

Here is the call graph for this function:

boolean editpointinrect Point  pt,
hdleditrecord  hbuffer
 

Definition at line 663 of file applettextedit.c.

References getmacbuffer(), and pt.

Here is the call graph for this function:

static void editprescroll hdleditrecord  hbuffer  )  [static]
 

Definition at line 42 of file applettextedit.c.

References getmacbuffer(), tyscrolldata::origdestrect, tyscrolldata::origlen, and scrolldata.

Referenced by editclick(), editcut(), editkeystroke(), editpaste(), editreplace(), editreplacehandle(), editrewrap(), editscroll(), editsetfont(), editsetselection(), and editvisiselection().

Here is the call graph for this function:

boolean editreplace bigstring  bs,
hdleditrecord  hbuffer
 

Definition at line 674 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), getmacbuffer(), and stringlength.

Referenced by cardEditCommand().

Here is the call graph for this function:

boolean editreplacehandle Handle  htext,
hdleditrecord  hbuffer
 

Definition at line 980 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), GetHandleSize, getmacbuffer(), lockhandle(), and unlockhandle().

Referenced by editsettexthandle().

Here is the call graph for this function:

void editrewrap hdleditrecord  hbuffer  ) 
 

Definition at line 361 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Here is the call graph for this function:

boolean editscroll hdleditrecord  hbuffer,
short  dh,
short  dv
 

Definition at line 947 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Referenced by editscrollto().

Here is the call graph for this function:

void editscrollto hdleditrecord  hbuffer,
short  h,
short  v
 

Definition at line 967 of file applettextedit.c.

References editscroll(), editsetscrollvalues(), and getmacbuffer().

Here is the call graph for this function:

void editselectall hdleditrecord  hbuffer  ) 
 

Definition at line 624 of file applettextedit.c.

References editsetselection().

Referenced by cardEditCommand(), editidle(), and initIOAcallbacks().

Here is the call graph for this function:

void editsetfont hdleditrecord  hbuffer,
short  fontnum,
short  fontsize
 

Definition at line 304 of file applettextedit.c.

References tyFontInfo::ascent, tyFontInfo::descent, editprescroll(), editsetscrollvalues(), getmacbuffer(), globalfontinfo, tyFontInfo::leading, popstyle(), and pushstyle().

Here is the call graph for this function:

void editsetjustification tyjustification  justification,
hdleditrecord  hbuffer
 

Definition at line 695 of file applettextedit.c.

References getmacbuffer(), and getTEjustification().

Referenced by setactivetextobject().

Here is the call graph for this function:

void editsetrect hdleditrecord  hbuffer,
Rect  r
 

Definition at line 284 of file applettextedit.c.

References getmacbuffer(), texthorizinset, and textvertinset.

Here is the call graph for this function:

static void editsetscrollvalues hdleditrecord  hbuffer  )  [static]
 

Definition at line 55 of file applettextedit.c.

References equalrects(), getmacbuffer(), tyscrolldata::origdestrect, tyscrolldata::origlen, and scrolldata.

Referenced by editclick(), editcut(), editkeystroke(), editpaste(), editreplace(), editreplacehandle(), editrewrap(), editscroll(), editscrollto(), editsetfont(), editsetselection(), and editvisiselection().

Here is the call graph for this function:

boolean editsetselection hdleditrecord  hbuffer,
short  selstart,
short  selend
 

Definition at line 590 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Referenced by editselectall(), and editsettexthandle().

Here is the call graph for this function:

boolean editsettexthandle hdleditrecord  hrecord,
Handle  htext,
boolean  flselectall
 

Definition at line 874 of file applettextedit.c.

References editreplacehandle(), editsetselection(), and infinity.

Referenced by setobjectvalue().

Here is the call graph for this function:

void editsetwordwrap hdleditrecord  hbuffer,
boolean  fl
 

Definition at line 344 of file applettextedit.c.

References getmacbuffer().

Here is the call graph for this function:

void editupdate hdleditrecord  hbuffer  ) 
 

Definition at line 161 of file applettextedit.c.

References eraserect(), getmacbuffer(), r, rectneedsupdate(), texthorizinset, and textvertinset.

Referenced by drawobject(), and iowaupdate().

Here is the call graph for this function:

void editupdateport hdleditrecord  hbuffer,
Rect  rport,
WindowPtr  w
 

Definition at line 231 of file applettextedit.c.

References getmacbuffer().

Here is the call graph for this function:

boolean editvisiselection hdleditrecord  hbuffer  ) 
 

Definition at line 607 of file applettextedit.c.

References editprescroll(), editsetscrollvalues(), and getmacbuffer().

Here is the call graph for this function:

static boolean getmacbuffer hdleditrecord  hbuffer,
TEHandle *  macbuffer
[static]
 

Definition at line 31 of file applettextedit.c.

References nil.

Referenced by editactivate(), editautoscroll(), editclick(), editcopy(), editcut(), editdispose(), editgetbuffersize(), editgetselectedtexthandle(), editgetselection(), editgettext(), editgettexthandle(), editgettexthandlecopy(), edithaveselection(), editidle(), editkeystroke(), editpaste(), editpointinrect(), editprescroll(), editreplace(), editreplacehandle(), editrewrap(), editscroll(), editscrollto(), editsetfont(), editsetjustification(), editsetrect(), editsetscrollvalues(), editsetselection(), editsetwordwrap(), editupdate(), editupdateport(), and editvisiselection().

static short getTEjustification tyjustification  justification  )  [static]
 

Definition at line 82 of file applettextedit.c.

References centerjustified, leftjustified, and rightjustified.

Referenced by editdrawtext(), editdrawtexthandle(), and editsetjustification().

static boolean rectneedsupdate Rect  r  )  [static]
 

Definition at line 139 of file applettextedit.c.

References DisposeRgn, NewRgn, and quickdrawglobal.

Referenced by editupdate().


Variable Documentation

tyscrolldata scrolldata
 

Definition at line 26 of file applettextedit.c.

Referenced by editprescroll(), and editsetscrollvalues().


Generated on Wed May 31 21:44:35 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6