opedit.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "font.h"
#include "mouse.h"
#include "quickdraw.h"
#include "strings.h"
#include "scrap.h"
#include "kb.h"
#include "op.h"
#include "opinternal.h"
#include "shell.rsrc.h"
#include "shellundo.h"
#include "wpengine.h"

Include dependency graph for opedit.c:

Go to the source code of this file.

Defines

#define opedittrackclickUPP   (&opedittrackclick)

Functions

boolean opeditsetglobals (void)
boolean opeditingtext (hdlheadrecord hnode)
boolean opdefaultgetedittextrect (hdlheadrecord hnode, const Rect *linerect, Rect *textrect)
boolean opdefaultsetwpedittext (hdlheadrecord hnode)
boolean opdefaultgetwpedittext (hdlheadrecord hnode, boolean flunload)
static boolean opgettextbufferrect (hdlheadrecord hnode, Rect *rclip, Rect *rtext)
boolean opseteditbufferrect (void)
static boolean oppreedit (void)
void oppostedit (void)
static pascal void opedittrackclick (hdlwprecord wp, Point pt)
boolean oploadeditbuffer (void)
boolean opwriteeditbuffer (void)
boolean opunloadeditbuffer (void)
boolean opsaveeditbuffer (void)
boolean oprestoreeditbuffer (void)
boolean opeditmeasuretext (hdlheadrecord hnode)
boolean opeditdrawtext (hdlheadrecord hnode, const Rect *rtext)
void opeditgetmaxpos (long *maxpos)
void opeditgetselection (long *startsel, long *endsel)
void opeditsetselection (long startsel, long endsel)
void opeditgetseltext (bigstring bs)
void opeditgetselrect (Rect *r)
void opeditgetselpoint (Point *pt)
void opeditresetselpoint (void)
void opeditsetselpoint (Point pt)
boolean opeditcango (tydirection dir)
static boolean opeditrecalcheadline (void)
boolean opeditkey (void)
boolean opeditcopy (void)
boolean opeditcut (void)
boolean opeditpaste (void)
boolean opeditclear (void)
boolean opeditinsert (bigstring bs)
boolean opeditclick (Point pt, tyclickflags flags)
void opeditselectall (void)
void opeditactivate (boolean flactivate)
void opeditupdate (void)
void opeditidle (void)
void opeditdispose (void)
boolean opeditgetundoglobals (long *globals)
boolean opeditsetundoglobals (long globals, boolean flundo)

Variables

static boolean fleditingnow = false


Define Documentation

#define opedittrackclickUPP   (&opedittrackclick)
 

Definition at line 332 of file opedit.c.

Referenced by oploadeditbuffer().


Function Documentation

boolean opdefaultgetedittextrect hdlheadrecord  hnode,
const Rect linerect,
Rect textrect
 

Definition at line 93 of file opedit.c.

References hnode, opdefaultgettextrect(), opisfatheadlines, outlinedata, and textvertinset.

Referenced by opinitcallbacks().

Here is the call graph for this function:

boolean opdefaultgetwpedittext hdlheadrecord  hnode,
boolean  flunload
 

Definition at line 121 of file opedit.c.

References hnode, opsetheadtext(), and wpgettexthandle().

Referenced by opinitcallbacks().

Here is the call graph for this function:

boolean opdefaultsetwpedittext hdlheadrecord  hnode  ) 
 

Definition at line 110 of file opedit.c.

References wpsettexthandle().

Referenced by opinitcallbacks().

Here is the call graph for this function:

void opeditactivate boolean  flactivate  ) 
 

Definition at line 905 of file opedit.c.

References opeditsetglobals(), oprestoreeditbuffer(), opwriteeditbuffer(), and wpactivate().

Referenced by opactivate().

Here is the call graph for this function:

boolean opeditcango tydirection  dir  ) 
 

Definition at line 730 of file opedit.c.

References down, fl, flatdown, flatup, insetrect(), left, opeditsetglobals(), opgettextbufferrect(), right, texthorizinset, textvertinset, up, wpgetmaxpos(), wpgetselection(), and wpgetselrect().

Referenced by opkeystroke().

Here is the call graph for this function:

boolean opeditclear void   ) 
 

Definition at line 867 of file opedit.c.

References opeditsetglobals(), and wpclear().

Referenced by opclear().

Here is the call graph for this function:

boolean opeditclick Point  pt,
tyclickflags  flags
 

Definition at line 883 of file opedit.c.

References opeditresetselpoint(), opeditsetglobals(), pt, and wpclick().

Referenced by mouseinline().

Here is the call graph for this function:

boolean opeditcopy void   ) 
 

Definition at line 843 of file opedit.c.

References opeditsetglobals(), and wpcopy().

Referenced by opcopy().

Here is the call graph for this function:

boolean opeditcut void   ) 
 

Definition at line 851 of file opedit.c.

References opeditsetglobals(), and wpcut().

Referenced by opcut().

Here is the call graph for this function:

void opeditdispose void   ) 
 

Definition at line 942 of file opedit.c.

References opeditsetglobals(), wpdata, wpdispose(), wpwindow, and wpwindowinfo.

Referenced by opdisposeoutline().

Here is the call graph for this function:

boolean opeditdrawtext hdlheadrecord  hnode,
const Rect rtext
 

Definition at line 596 of file opedit.c.

References hnode, intersectrect(), opeditingtext(), opeditupdate(), oppushheadstyle(), outlinedata, popstyle(), r, wpdrawtext(), wponeline, and wpprinting.

Referenced by opdefaultdrawtext().

Here is the call graph for this function:

void opeditgetmaxpos long maxpos  ) 
 

Definition at line 640 of file opedit.c.

References opeditsetglobals(), and wpgetmaxpos().

Here is the call graph for this function:

void opeditgetselection long startsel,
long endsel
 

Definition at line 648 of file opedit.c.

References opeditsetglobals(), and wpgetselection().

Referenced by opflatfind(), and optrytextcommand().

Here is the call graph for this function:

void opeditgetselpoint Point pt  ) 
 

Definition at line 696 of file opedit.c.

References opeditsetglobals(), pt, and wpgetselpoint().

Referenced by opgetlinestoscrolldownforvisi(), and opmotionkey().

Here is the call graph for this function:

void opeditgetselrect Rect r  ) 
 

Definition at line 688 of file opedit.c.

References opeditsetglobals(), and wpgetselrect().

Referenced by opneedvisiscroll().

Here is the call graph for this function:

void opeditgetseltext bigstring  bs  ) 
 

Definition at line 680 of file opedit.c.

References opeditsetglobals(), and wpgetseltext().

Referenced by scriptlocalsbutton().

Here is the call graph for this function:

boolean opeditgetundoglobals long globals  ) 
 

Definition at line 972 of file opedit.c.

References fleditingnow, tyoutlinerecord::heditcursor, long, outlinedata, and return().

Referenced by browserstart(), main(), megetundoglobals(), opstart(), scriptgetundoglobals(), and tableeditgetundoglobals().

Here is the call graph for this function:

void opeditidle void   ) 
 

Definition at line 934 of file opedit.c.

References opeditsetglobals(), and wpidle().

Referenced by opidle().

Here is the call graph for this function:

boolean opeditingtext hdlheadrecord  hnode  ) 
 

Definition at line 72 of file opedit.c.

References assert, hnode, and outlinedata.

Referenced by claydrawtext(), drawline(), opdefaultdrawtext(), opeditdrawtext(), opeditmeasuretext(), opflatfind(), opgetlinestoscrolldownforvisi(), opneedvisiscroll(), tabledefaultdrawcell(), and tabledive().

boolean opeditinsert bigstring  bs  ) 
 

Definition at line 875 of file opedit.c.

References opeditsetglobals(), and wpinsert().

Referenced by opflatfind().

Here is the call graph for this function:

boolean opeditkey void   ) 
 

Definition at line 822 of file opedit.c.

References tykeystrokerecord::chkb, keyboardstatus, opeditrecalcheadline(), opeditresetselpoint(), opeditsetglobals(), opschedulevisi(), and wpkeystroke().

Referenced by opkeystroke().

Here is the call graph for this function:

boolean opeditmeasuretext hdlheadrecord  hnode  ) 
 

Definition at line 539 of file opedit.c.

References hnode, opeditingtext(), opeditsetglobals(), opgettextrect(), oppushheadstyle(), outlinedata, popstyle(), wpgetcontentsize(), wpmeasuretext(), wponeline, and wpprinting.

Referenced by opdefaultgetlineheight(), opdefaultgetlinewidth(), and oppostedit().

Here is the call graph for this function:

boolean opeditpaste void   ) 
 

Definition at line 859 of file opedit.c.

References opeditsetglobals(), and wppaste().

Referenced by oppaste(), and tablepasteroutine().

Here is the call graph for this function:

static boolean opeditrecalcheadline void   )  [static]
 

Definition at line 785 of file opedit.c.

References NULL, opinvalafter(), oploadeditbuffer(), opunloadeditbuffer(), outlinedata, wpgetselection(), and wpsetselection().

Referenced by opeditkey().

Here is the call graph for this function:

void opeditresetselpoint void   ) 
 

Definition at line 704 of file opedit.c.

Referenced by opeditclick(), opeditkey(), and opsettextmode().

void opeditselectall void   ) 
 

Definition at line 897 of file opedit.c.

References opeditsetglobals(), and wpselectall().

Referenced by mouseinline(), opinsertheadline(), opkeystroke(), opselectall(), and tableedittabkey().

Here is the call graph for this function:

boolean opeditsetglobals void   ) 
 

Definition at line 51 of file opedit.c.

References nil, outlinedata, outlinewindow, outlinewindowinfo, return(), wpdata, wpwindow, and wpwindowinfo.

Referenced by browsergettargetdata(), browsersetglobals(), menuverbgettargetdata(), mesetglobals(), opdisabledisplay(), opeditactivate(), opeditcango(), opeditclear(), opeditclick(), opeditcopy(), opeditcut(), opeditdispose(), opeditgetmaxpos(), opeditgetselection(), opeditgetselpoint(), opeditgetselrect(), opeditgetseltext(), opeditidle(), opeditinsert(), opeditkey(), opeditmeasuretext(), opeditpaste(), opeditselectall(), opeditsetselection(), opeditsetselpoint(), opeditsetundoglobals(), opeditupdate(), openabledisplay(), oploadeditbuffer(), oprestoreeditbuffer(), opsaveeditbuffer(), opseteditbufferrect(), opstart(), opunloadeditbuffer(), opverbgettargetdata(), opverbsetglobals(), opwriteeditbuffer(), scriptsetglobals(), setglobals(), tablepasteroutine(), tableverbgettargetdata(), and tableverbsetglobals().

Here is the call graph for this function:

void opeditsetselection long  startsel,
long  endsel
 

Definition at line 656 of file opedit.c.

References tytextinfo::flvalid, opeditsetglobals(), tytextinfo::selEnd, tytextinfo::selStart, and wpsetselection().

Referenced by initializetableoutline(), opflatfind(), opmotionkey(), oppaste(), tablepastevalue(), and tablezoomfound().

Here is the call graph for this function:

void opeditsetselpoint Point  pt  ) 
 

Definition at line 715 of file opedit.c.

References opeditsetglobals(), opschedulevisi(), outlinedata, pt, and wpsetselpoint().

Referenced by opmotionkey().

Here is the call graph for this function:

boolean opeditsetundoglobals long  globals,
boolean  flundo
 

Definition at line 985 of file opedit.c.

References hnode, opclearallmarks(), opeditsetglobals(), opexpandto(), opsettextmode(), opvisinode(), and outlinedata.

Referenced by browserstart(), main(), mesetundoglobals(), opstart(), scriptsetundoglobals(), and tableeditsetundoglobals().

Here is the call graph for this function:

static pascal void opedittrackclick hdlwprecord  wp,
Point  pt
[static]
 

Definition at line 308 of file opedit.c.

References mousecheckautoscroll(), opscroll(), and pt.

Here is the call graph for this function:

void opeditupdate void   ) 
 

Definition at line 926 of file opedit.c.

References opeditsetglobals(), and wpupdate().

Referenced by claydrawtext(), drawline(), opdefaultdrawtext(), opeditdrawtext(), and tabledefaultdrawcell().

Here is the call graph for this function:

static boolean opgettextbufferrect hdlheadrecord  hnode,
Rect rclip,
Rect rtext
[static]
 

Definition at line 157 of file opedit.c.

References hnode, intersectrect(), opgetlineheight(), opgetnoderect(), and outlinedata.

Referenced by opeditcango(), oploadeditbuffer(), and opseteditbufferrect().

Here is the call graph for this function:

boolean oploadeditbuffer void   ) 
 

Definition at line 345 of file opedit.c.

References tyoutlinerecord::hbarcursor, intersectrect(), longinfinity, nil, opdirtyoutline(), opeditsetglobals(), opedittrackclickUPP, opgettextbufferrect(), oppostedit(), oppreedit(), oppushheadstyle(), outlinedata, popstyle(), wpactivate(), wpalwaysmeasure, wpdispose(), wpdisposerecord(), wpneverscroll, wpnewbuffer(), wponeline, and wpsetselection().

Referenced by opafterstrucchange(), opeditrecalcheadline(), opfunctionvalue(), ophoistdisplay(), opinsertheadline(), opmoveto(), oprestoreeditbuffer(), tableedittabkey(), and wpinserthandle().

Here is the call graph for this function:

void oppostedit void   ) 
 

Definition at line 223 of file opedit.c.

References fleditingnow, opdirtymeasurevalue, opdisplayenabled(), opeditmeasuretext(), opgetnodelinecount(), opgetnoderect(), opgetscreenline(), opresetscrollbars(), opschedulevisi(), opscrollrect(), opseteditbufferrect(), opupdatenow(), opvisibarcursor(), outlinedata, r, wpdata, and wphidecursor().

Referenced by oploadeditbuffer(), and opupdateafterresize().

Here is the call graph for this function:

static boolean oppreedit void   )  [static]
 

Definition at line 215 of file opedit.c.

References fleditingnow.

Referenced by oploadeditbuffer().

boolean oprestoreeditbuffer void   ) 
 

Definition at line 510 of file opedit.c.

References tytextinfo::flvalid, nil, opeditsetglobals(), oploadeditbuffer(), outlinedata, tytextinfo::selEnd, tytextinfo::selStart, and wpsetselection().

Referenced by mesavemenurecord(), opafterstrucchange(), opeditactivate(), opflatfind(), opopenoutline(), and oppoststylechange().

Here is the call graph for this function:

boolean opsaveeditbuffer void   ) 
 

Definition at line 490 of file opedit.c.

References tytextinfo::flvalid, nil, opeditsetglobals(), opunloadeditbuffer(), outlinedata, tytextinfo::selEnd, tytextinfo::selStart, and wpgetselection().

Referenced by mesavemenurecord(), opbeforestrucchange(), opcloseoutline(), and oppoststylechange().

Here is the call graph for this function:

boolean opseteditbufferrect void   ) 
 

Definition at line 191 of file opedit.c.

References tyoutlinerecord::heditcursor, intersectrect(), opeditsetglobals(), opgettextbufferrect(), outlinedata, r, and wpsetbufferrect().

Referenced by opdovisiscroll(), opexpand(), ophorizscroll(), oppostedit(), oppostfontchange(), opscrollto(), and opvertscroll().

Here is the call graph for this function:

boolean opunloadeditbuffer void   ) 
 

Definition at line 466 of file opedit.c.

References tyoutlinerecord::hbuffer, nil, opeditsetglobals(), outlinedata, wpactivate(), and wpdispose().

Referenced by opbeforestrucchange(), opeditrecalcheadline(), opfunctionvalue(), opinsertheadline(), opmoveto(), oppophoist(), oppushhoist(), opsaveeditbuffer(), tableedittabkey(), and wpinserthandle().

Here is the call graph for this function:

boolean opwriteeditbuffer void   ) 
 

Definition at line 444 of file opedit.c.

References tyoutlinerecord::heditcursor, nil, opeditsetglobals(), and outlinedata.

Referenced by opcopy(), opeditactivate(), opflatfind(), opfunctionvalue(), opgetlangtext(), opoutlinetotextstream(), oppack(), and opverbnew().

Here is the call graph for this function:


Variable Documentation

boolean fleditingnow = false [static]
 

Definition at line 47 of file opedit.c.

Referenced by opeditgetundoglobals(), oppostedit(), and oppreedit().


Generated on Thu Jun 8 04:28:47 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6