wpengine.c File Reference

#include "frontier.h"
#include "PAIGE.H"
#include "PGTRAPS.H"
#include "PGEXCEPS.H"
#include "DEFPROCS.H"
#include "MACHINE.H"
#include "pgHLevel.h"
#include "standard.h"
#include "bitmaps.h"
#include "byteorder.h"
#include "cursor.h"
#include "error.h"
#include "font.h"
#include "kb.h"
#include "memory.h"
#include "mouse.h"
#include "quickdraw.h"
#include "strings.h"
#include "ops.h"
#include "file.h"
#include "resources.h"
#include "scrap.h"
#include "search.h"
#include "timedate.h"
#include "shell.h"
#include "shell.rsrc.h"
#include "shellprint.h"
#include "shellundo.h"
#include "wpengine.h"
#include "wpinternal.h"
#include "op.h"
#include "opinternal.h"

Include dependency graph for wpengine.c:

Go to the source code of this file.

Data Structures

struct  tywpheader
struct  tyOLD42wpheader
struct  tyselectinfo

Defines

#define flrulers   false
#define lenfontname   32
#define scrollquantum   16
#define i2fix(i)   FixRatio (i, 1)
#define fix2i(f)   FixRound (f)
#define defaultpgflags   (NO_SMART_CUT_BIT | NO_LF_BIT | NO_HIDDEN_TEXT_BIT)
#define wpdisplay_way   (wpdisplayenabled ()? best_way : draw_none)
#define ctwpstack   5
#define autoscrollticks   5
#define wptrackclickUPP   (&wptrackclick)
#define rulerheaderlen   (sizeof (rulerRecord) + sizeof (rulerInfo) + 2 * sizeof (Handle))
#define PGINSERT_BLOCKSIZE   2048
#define null_caret   ((pg_short_t) -1)

Typedefs

typedef tyselectinfoptrselectinfo
typedef tyselectinfo ** hdlselectinfo

Functions

static boolean wpinserttexthandle (pg_ref, Handle, short, boolean)
static PG_PASCAL (long)
boolean wpinit (void)
void wpshutdown (void)
static void setdefaultstyles (boolean flprinting)
boolean wpsetglobals (void)
static boolean wpdisplayenabled (void)
static undo_ref getundo (void)
static void setundo (undo_ref undo)
static void wpdisposeundo (hdlwprecord hwp)
void wpresettyping (void)
static boolean wpownwindowinfo (void)
static void wpdirty (boolean flchangedtext)
static void wpdirtyselectioninfo (void)
boolean wppushdata (hdlwprecord hwp)
boolean wppopdata (void)
static shape_ref newshape (const Rect *r)
static void wppushdraw (void)
static void wppopdraw (void)
short wpavailwidth (void)
static void wpsetautoscroll (pg_ref hbuf, boolean flauto)
static void wpvisicursor (void)
static boolean wpisactive ()
boolean wpgetdisplay (void)
boolean wpsetdisplay (boolean fldisplay)
boolean wpsetruler (register boolean flruler)
boolean wpgetruler (void)
static short wpgetrulerheight (void)
static void wpsetavailbounds (pg_ref pg)
void wpsetupwindow (void)
static boolean wpadjustboundstofit (void)
boolean wpsetbufferrect (Rect rclip, Rect r)
boolean wphidecursor (void)
static void wpframedisplay (void)
static void wpframeselection (void)
static boolean wpgetscrollbarinfo (void)
static void wpcheckscrollpos (void)
static void wpredrawscrollbars (void)
void wpresetscrollbars (void)
boolean wpgetcontentsize (long *width, long *height)
static pg_ref wpnewpg (Handle htext, const Rect *rclip, const Rect *rbounds, tywpflags wpflags, boolean fldisplay)
static boolean wpapplyhtmlstyles (Handle htext, pg_ref pg, boolean flredraw)
boolean wpmeasuretext (Handle htext, Rect *r, tywpflags wpflags)
boolean wpdrawtext (Handle htext, const Rect *rclip, const Rect *rtext, tywpflags wpflags)
boolean wpgetselrect (Rect *r)
boolean wpgetselpoint (Point *pt)
boolean wpsetselpoint (Point pt)
boolean wpscroll (register tydirection dir, boolean flpage, long ctscroll)
void wpactivate (boolean flactivate)
void wpupdate (void)
boolean wppagesetup (void)
boolean wpsetprintinfo (void)
boolean wpbeginprint (void)
boolean wpendprint (void)
boolean wpprint (short pagenumber)
static pascal void wptrackclick (hdlwprecord wp, Point pt)
static shape_ref newlongshape (const LongRect *r)
static boolean unpackwordsolutionenginefile (Handle hpacked, pg_ref *pg)
static boolean wpunpacktext (Handle hpacked, pg_ref *pg)
static boolean wppackheader (long buffersize, Handle *hpacked)
static boolean wppacktext (pg_ref pg, Handle *hpacked)
boolean wppack (Handle *hpacked)
boolean wpunpack (Handle hpacked, hdlwprecord *hwp)
boolean wpgetpackedmaxpos (Handle hpacked, long *maxpos)
static long gettextlength (pg_ref pg)
static boolean wpnormalizelineendings (Handle htext)
boolean wpgettexthandle (Handle *htext)
boolean wpgettext (bigstring bs, long *cttotal)
boolean wpgetseltexthandle (Handle *htext)
boolean wpgetseltext (bigstring bs)
boolean wppreedit (void)
void wppostruleredit (boolean, boolean)
boolean wppushundo (long, void *)
boolean wpsettexthandle (Handle htext)
boolean wpsettext (bigstring bs)
static void wpnoop (void)
hdlwprecord wpnewbuffer (Handle hpacked, const Rect *rclip, const Rect *rbounds, tywpflags wpflags, boolean flinwindow)
boolean wpnewrecord (Rect r, hdlwprecord *hwprecord)
void wpdisposerecord (hdlwprecord hwp)
void wpdispose (void)
void wppostedit (boolean flrecalc)
static void setupundo (long undocode, void *insertref)
static boolean wppushundostep (void)
static boolean wpundoroutine (Handle hdata, boolean flundo)
static boolean wppushrulerundo (void)
boolean wppushformatundo (void)
static boolean wpsetcaretpos (pg_short_t caretverb)
boolean wptraversehiddentext (tydirection dir, long *newstartsel)
boolean wptrimhiddentext (void)
boolean wpkeystroke (void)
boolean wpgo (tydirection dir, long dist)
static boolean wprulerclick (Point pt)
void wpclick (Point pt, tyclickflags flags)
static boolean wpinserttext (byte *ptext, long ctchars)
boolean wpinserthandle (Handle htext)
boolean wpinsert (bigstring bs)
boolean wpdelete (boolean flinserting)
static void wpdisposescrap (void *hwp)
static boolean wpexportscrap (void *scrap, tyscraptype totype, Handle *htext, boolean *fltempscrap)
static boolean wpsetscrap (pg_ref hwp)
boolean wpscraphook (Handle hscrap)
boolean wpcut (void)
boolean wpcopy (void)
boolean wppaste (boolean flcanusestyle)
boolean wpclear (void)
boolean wpselectall (void)
boolean wpselectword (void)
boolean wpselectline (void)
boolean wpselectpara (void)
boolean wpsetname (bigstring bsname)
void wpresize (void)
boolean wptotalrecalc (void)
boolean wpgetmaxpos (long *maxpos)
boolean wpgetselection (long *startsel, long *endsel)
boolean wpsetselection (long startsel, long endsel)
boolean wpundo (void)
boolean wpsearch (boolean flfromtop, boolean flcase, boolean flwords, boolean flwrap)
boolean wpadjustcursor (Point pt)
void wpidle (void)
boolean wpsetfont (void)
boolean wpsetsize (void)
boolean wpsetstyle (void)
boolean wpsetleading (void)
boolean wpsetjustify (void)
boolean wpsetselectioninfo (void)
static boolean wpsetverbindent (pg_indents *indents, pg_indents *mask)
boolean wpgetindent (short *indent)
boolean wpsetindent (short indent)
boolean wpgetleftmargin (short *leftmargin)
boolean wpsetleftmargin (short leftmargin)
boolean wpgetrightmargin (short *rightmargin)
boolean wpsetrightmargin (short rightmargin)
boolean wpsettab (short pos, short tabjust, byte chfill)
boolean wpcleartabs (void)

Variables

WindowPtr wpwindow = nil
hdlwprecord wpdata = nil
hdlwindowinfo wpwindowinfo = nil
pg_ref wpbuffer = MEM_NULL
static hdlregion wpselectionrgn = nil
static pgm_globals mem_globals
static pg_globals ws_globals
static short topwpstack = 0
static hdlwprecord wpstack [ctwpstack]
static graf_device wpprintdevice


Define Documentation

#define autoscrollticks   5
 

Referenced by wptrackclick().

#define ctwpstack   5
 

Definition at line 103 of file wpengine.c.

Referenced by wppushdata().

#define defaultpgflags   (NO_SMART_CUT_BIT | NO_LF_BIT | NO_HIDDEN_TEXT_BIT)
 

Definition at line 75 of file wpengine.c.

Referenced by unpackwordsolutionenginefile(), wpdrawtext(), wpnewbuffer(), and wpnewpg().

#define fix2i  )     FixRound (f)
 

Definition at line 73 of file wpengine.c.

#define flrulers   false
 

Definition at line 65 of file wpengine.c.

#define i2fix  )     FixRatio (i, 1)
 

Definition at line 71 of file wpengine.c.

#define lenfontname   32
 

Definition at line 67 of file wpengine.c.

#define null_caret   ((pg_short_t) -1)
 

Referenced by wpkeystroke().

#define PGINSERT_BLOCKSIZE   2048
 

Definition at line 2726 of file wpengine.c.

Referenced by wpinserttexthandle().

#define rulerheaderlen   (sizeof (rulerRecord) + sizeof (rulerInfo) + 2 * sizeof (Handle))
 

Definition at line 2061 of file wpengine.c.

#define scrollquantum   16
 

Definition at line 69 of file wpengine.c.

Referenced by opgetmaxwidthvisit(), opneedvisiscroll(), and opscroll().

#define wpdisplay_way   (wpdisplayenabled ()? best_way : draw_none)
 

Definition at line 77 of file wpengine.c.

Referenced by wpcheckscrollpos(), wpcleartabs(), wpcut(), wpdelete(), wpgo(), wpinserthandle(), wpinserttext(), wpkeystroke(), wppaste(), wpscroll(), wpsetjustify(), wpsetleading(), wpsettab(), wpsettexthandle(), wpsetverbindent(), wpundo(), and wpvisicursor().

#define wptrackclickUPP   (&wptrackclick)
 

Definition at line 2045 of file wpengine.c.

Referenced by wpnewbuffer().


Typedef Documentation

typedef struct tyselectinfo ** hdlselectinfo
 

typedef struct tyselectinfo * ptrselectinfo
 


Function Documentation

static long gettextlength pg_ref  pg  )  [static]
 

Definition at line 2540 of file wpengine.c.

Referenced by wpgetmaxpos(), wpsetselection(), and wpsettexthandle().

static undo_ref getundo void   )  [static]
 

Definition at line 344 of file wpengine.c.

Referenced by setupundo(), wppushundostep(), wpundo(), and wpundoroutine().

static shape_ref newlongshape const LongRect r  )  [static]
 

Definition at line 2064 of file wpengine.c.

References bounds, and mem_globals.

Referenced by unpackwordsolutionenginefile().

static shape_ref newshape const Rect r  )  [static]
 

Definition at line 494 of file wpengine.c.

References bounds, and mem_globals.

Referenced by unpackwordsolutionenginefile(), wpnewbuffer(), wpnewpg(), and wpsetbufferrect().

static PG_PASCAL long   )  [static]
 

Definition at line 218 of file wpengine.c.

References INCLUDE_SEL_BIT, and WORD_SEL_BIT.

static void setdefaultstyles boolean  flprinting  )  [static]
 

Definition at line 285 of file wpengine.c.

References bigstring, style_info::char_width, pg_globals::def_font, pg_globals::def_style, font, FONT_SIZE, fontgetname(), getfontsizestyle(), long, font_info::name, style_info::point, typrintinfo::scaleDiv, typrintinfo::scaleMult, shellprintinfo, style, and ws_globals.

Referenced by wpnewbuffer(), and wpnewpg().

Here is the call graph for this function:

static void setundo undo_ref  undo  )  [static]
 

Definition at line 350 of file wpengine.c.

Referenced by setupundo(), wppushundostep(), wpundo(), and wpundoroutine().

static void setupundo long  undocode,
void *  insertref
[static]
 

Definition at line 3158 of file wpengine.c.

References getundo(), MEM_NULL, setundo(), undo_backspace, undo_fwd_delete, undo_none, undo_typing, and wpbuffer.

Referenced by wpkeystroke(), and wppushundo().

Here is the call graph for this function:

static boolean unpackwordsolutionenginefile Handle  hpacked,
pg_ref pg
[static]
 

Definition at line 2080 of file wpengine.c.

References block, ctblocks, CURRENT_POSITION, data_insert_mode, defaultpgflags, diskrecttorect(), draw_none, format, lockhandle(), mem_globals, MEM_NULL, memoryerror(), newlongshape(), newshape(), PG_CATCH, PG_ENDTRY, PG_TRY, r, USE_NO_DEVICE, and ws_globals.

Referenced by wpunpacktext().

Here is the call graph for this function:

void wpactivate boolean  flactivate  ) 
 

Definition at line 1731 of file wpengine.c.

References activate_verb, deactivate_verb, hide_cursor, no_change_verb, popclip(), pushvalidrgnclip(), TRUE, wpbuffer, wpdisplayenabled(), wpframeselection(), wpisactive(), wppopdraw(), wppushdraw(), wpsetglobals(), and wpvisicursor().

Referenced by miniactivate(), miniactivatemessage(), minimousedown(), opeditactivate(), oploadeditbuffer(), opunloadeditbuffer(), wpgo(), and wpstart().

Here is the call graph for this function:

static boolean wpadjustboundstofit void   )  [static]
 

Definition at line 793 of file wpengine.c.

References rectangle::bot_right, co_ordinate::h, max, NULL, rectangle::top_left, co_ordinate::v, wpbuffer, and wpdata.

Referenced by wppostruleredit(), and wpsetbufferrect().

boolean wpadjustcursor Point  pt  ) 
 

Definition at line 4509 of file wpengine.c.

References cursorisarrow, cursorisibeam, NULL, point, pt, setcursortype(), WITHIN_VIS_AREA, wpbuffer, and wpsetglobals().

Referenced by wpstart().

Here is the call graph for this function:

static boolean wpapplyhtmlstyles Handle  htext,
pg_ref  pg,
boolean  flredraw
[static]
 

Definition at line 1170 of file wpengine.c.

References select_pair::begin, bold, darkbluecolor, darkgreencolor, select_pair::end, gethandlesize(), i, italic, NULL, range, and underline.

Referenced by wpinserttexthandle().

Here is the call graph for this function:

short wpavailwidth void   ) 
 

Definition at line 567 of file wpengine.c.

References typrintinfo::paperrect, and shellprintinfo.

Referenced by wpfunctionvalue(), and wpsetavailbounds().

boolean wpbeginprint void   ) 
 

Definition at line 1928 of file wpengine.c.

References MEM_NULL, nil, shellprintinfo, wpdata, wpprintdevice, and ws_globals.

Referenced by opbeginprint(), and wpstart().

static void wpcheckscrollpos void   )  [static]
 

Definition at line 1021 of file wpengine.c.

References wpbuffer, and wpdisplay_way.

Referenced by wppostruleredit(), and wpscroll().

boolean wpclear void   ) 
 

Definition at line 4159 of file wpengine.c.

References pushundoaction(), undoclearstring, wpdelete(), wppostedit(), wppreedit(), and wpresettyping().

Referenced by miniclear(), opeditclear(), tableclearroutine(), and wpstart().

Here is the call graph for this function:

boolean wpcleartabs void   ) 
 

Definition at line 4933 of file wpengine.c.

References mem_globals, MEM_NULL, MemoryAlloc, no_tab, NULL, pushundoaction(), screen_offset, tab, undoformatstring, wpbuffer, wpdirtyselectioninfo(), wpdisplay_way, wppreedit(), and wppushrulerundo().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

void wpclick Point  pt,
tyclickflags  flags
 

Definition at line 3762 of file wpengine.c.

References CallTrackClickProc, FALSE, getmousepoint(), mouse_down, mouse_moved, mouse_up, mousestilldown(), NULL, point, pointinrect(), pt, r, shellsetselectioninfo(), TRUE, WITHIN_VIS_AREA, wpbuffer, wpdata, wppostruleredit(), wppreedit(), wpresettyping(), and wprulerclick().

Referenced by minimousedown(), opeditclick(), and wpverbclick().

Here is the call graph for this function:

boolean wpcopy void   ) 
 

Definition at line 4066 of file wpengine.c.

References NULL, wpbuffer, wpsetglobals(), and wpsetscrap().

Referenced by minicopy(), opeditcopy(), tablecopyroutine(), and wpstart().

Here is the call graph for this function:

boolean wpcut void   ) 
 

Definition at line 4047 of file wpengine.c.

References NULL, pushundoaction(), undo_delete, undocutstring, wpbuffer, wpdisplay_way, wppostedit(), wppreedit(), wppushundo(), wpresettyping(), and wpsetscrap().

Referenced by minicut(), opeditcut(), tablecutroutine(), and wpstart().

Here is the call graph for this function:

boolean wpdelete boolean  flinserting  ) 
 

Definition at line 3936 of file wpengine.c.

References NULL, undo_delete, wpbuffer, wpdisplay_way, and wppushundo().

Referenced by wpclear().

Here is the call graph for this function:

static void wpdirty boolean  flchangedtext  )  [static]
 

Definition at line 416 of file wpengine.c.

References tywprecord::fldirtyview, timenow(), windowsetchanges(), wpdata, wpownwindowinfo(), and wpwindow.

Referenced by wppostruleredit(), wpresize(), wpsetname(), and wpsetruler().

Here is the call graph for this function:

static void wpdirtyselectioninfo void   )  [static]
 

Definition at line 445 of file wpengine.c.

References nil, wpdisplayenabled(), and wpwindowinfo.

Referenced by wpcleartabs(), wpsetjustify(), wpsetselection(), wpsettab(), wpsettexthandle(), and wpsetverbindent().

Here is the call graph for this function:

static boolean wpdisplayenabled void   )  [static]
 

Definition at line 333 of file wpengine.c.

References nil, NULL, wpdata, and wpwindow.

Referenced by wpactivate(), wpdirtyselectioninfo(), wpframeselection(), wpinserthandle(), wppopdraw(), wppostruleredit(), wppushdraw(), wpsetfont(), wpsetselection(), wpsetselpoint(), wpsetsize(), wpsetstyle(), and wpvisicursor().

void wpdispose void   ) 
 

Definition at line 3045 of file wpengine.c.

References nil, wpdata, wpdisposerecord(), wpresettyping(), and wpsetglobals().

Referenced by opeditdispose(), oploadeditbuffer(), and opunloadeditbuffer().

Here is the call graph for this function:

void wpdisposerecord hdlwprecord  hwp  ) 
 

Definition at line 3030 of file wpengine.c.

References disposehandle(), nil, and wpdisposeundo().

Referenced by minidisposerecord(), oploadeditbuffer(), wpdispose(), wpdisposevariable(), wpverbpack(), and wpverbunload().

Here is the call graph for this function:

static void wpdisposescrap void *  hwp  )  [static]
 

Definition at line 3959 of file wpengine.c.

Referenced by wpsetscrap().

static void wpdisposeundo hdlwprecord  hwp  )  [static]
 

Definition at line 361 of file wpengine.c.

References nil.

Referenced by wpdisposerecord(), wpkeystroke(), and wpundo().

boolean wpdrawtext Handle  htext,
const Rect rclip,
const Rect rtext,
tywpflags  wpflags
 

Definition at line 1436 of file wpengine.c.

References defaultpgflags, direct_copy, graf_device::machine_ref3, graf_device::machine_var, mem_globals, MEM_NULL, nil, NULL, PG_CATCH, PG_ENDTRY, PG_TRY, shellprintinfo, shellwindowinfo, wpnewpg(), wpprinting, and ws_globals.

Referenced by opeditdrawtext().

Here is the call graph for this function:

boolean wpendprint void   ) 
 

Definition at line 1950 of file wpengine.c.

References wpprintdevice, and ws_globals.

Referenced by opendprint(), and wpstart().

static boolean wpexportscrap void *  scrap,
tyscraptype  totype,
Handle htext,
boolean fltempscrap
[static]
 

Definition at line 3965 of file wpengine.c.

References all_text_chars, MEM_NULL, newfilledhandle(), nil, pictscraptype, range, text, textscraptype, wppacktext(), and wpscraptype.

Referenced by wpsetscrap().

Here is the call graph for this function:

static void wpframedisplay void   )  [static]
 

Definition at line 909 of file wpengine.c.

Referenced by wpscroll(), and wpupdate().

static void wpframeselection void   )  [static]
 

Definition at line 914 of file wpengine.c.

References bounds, CURRENT_POSITION, grayframerrgn(), mem_globals, MEM_NULL, NULL, r, rgn, wpbuffer, wpdisplayenabled(), and wpselectionrgn.

Referenced by wpactivate(), wpsetselection(), and wpupdate().

Here is the call graph for this function:

boolean wpgetcontentsize long width,
long height
 

Definition at line 1057 of file wpengine.c.

References bounds, wpbuffer, wpgetrulerheight(), and wpsetglobals().

Referenced by opeditmeasuretext(), and wpstart().

Here is the call graph for this function:

boolean wpgetdisplay void   ) 
 

Definition at line 654 of file wpengine.c.

References wpdata, and wpsetglobals().

Here is the call graph for this function:

boolean wpgetindent short indent  ) 
 

Definition at line 4822 of file wpengine.c.

References indents, mask, NULL, and wpbuffer.

Referenced by wpfunctionvalue().

boolean wpgetleftmargin short leftmargin  ) 
 

Definition at line 4844 of file wpengine.c.

References indents, mask, NULL, and wpbuffer.

Referenced by wpfunctionvalue().

boolean wpgetmaxpos long maxpos  ) 
 

Definition at line 4308 of file wpengine.c.

References gettextlength(), wpbuffer, and wpsetglobals().

Referenced by opeditcango(), opeditgetmaxpos(), wppackheader(), and wpverbgetsize().

Here is the call graph for this function:

boolean wpgetpackedmaxpos Handle  hpacked,
long maxpos
 

Definition at line 2517 of file wpengine.c.

References assert, gethandlesize(), h, and loadfromhandle().

Referenced by wpverbgetsize().

Here is the call graph for this function:

boolean wpgetrightmargin short rightmargin  ) 
 

Definition at line 4866 of file wpengine.c.

References indents, mask, NULL, and wpbuffer.

Referenced by wpfunctionvalue().

boolean wpgetruler void   ) 
 

Definition at line 726 of file wpengine.c.

References wpsetglobals().

Referenced by wpfunctionvalue(), and wpupdate().

Here is the call graph for this function:

static short wpgetrulerheight void   )  [static]
 

Definition at line 739 of file wpengine.c.

Referenced by wpgetcontentsize(), and wpsetbufferrect().

static boolean wpgetscrollbarinfo void   )  [static]
 

Definition at line 973 of file wpengine.c.

References append_h, append_v, rectangle::bot_right, tyscrollinfo::cur, co_ordinate::h, tyscrollinfo::max, tyscrollinfo::min, NULL, tyscrollinfo::pag, rectangle::top_left, unit_h, unit_v, co_ordinate::v, wpbuffer, wpdata, and wpsetglobals().

Referenced by wpresetscrollbars().

Here is the call graph for this function:

boolean wpgetselection long startsel,
long endsel
 

Definition at line 4319 of file wpengine.c.

References left, wpbuffer, wpsetglobals(), wpsetselection(), and wptraversehiddentext().

Referenced by dosearch(), opeditcango(), opeditgetselection(), opeditrecalcheadline(), opfunctionvalue(), opsaveeditbuffer(), wpfunctionvalue(), wpgo(), wpinserthandle(), wpselectpara(), wptrimhiddentext(), and wpverbruncursor().

Here is the call graph for this function:

boolean wpgetselpoint Point pt  ) 
 

Definition at line 1546 of file wpengine.c.

References r, TRUE, wpbuffer, and wpsetglobals().

Referenced by opeditgetselpoint(), and wpkeystroke().

Here is the call graph for this function:

boolean wpgetselrect Rect r  ) 
 

Definition at line 1514 of file wpengine.c.

References bounds, CURRENT_POSITION, mem_globals, MEM_NULL, rgn, wpbuffer, and wpsetglobals().

Referenced by opeditcango(), opeditgetselrect(), and wpselectline().

Here is the call graph for this function:

boolean wpgetseltext bigstring  bs  ) 
 

Definition at line 2702 of file wpengine.c.

References disposehandle(), setemptystring, texthandletostring(), and wpgetseltexthandle().

Referenced by doreplaceallfunc(), minigetselstring(), opeditgetseltext(), and wpverbclick().

Here is the call graph for this function:

boolean wpgetseltexthandle Handle htext  ) 
 

Definition at line 2665 of file wpengine.c.

References all_visible_text_chars, MEM_NULL, newemptyhandle(), newfilledhandle(), nil, NULL, text, wpbuffer, and wpsetglobals().

Referenced by wpfunctionvalue(), wpgetseltext(), and wpverbruncursor().

Here is the call graph for this function:

boolean wpgettext bigstring  bs,
long cttotal
 

Definition at line 2641 of file wpengine.c.

References disposehandle(), gethandlesize(), setemptystring, texthandletostring(), and wpgettexthandle().

Here is the call graph for this function:

boolean wpgettexthandle Handle htext  ) 
 

Definition at line 2579 of file wpengine.c.

References block, disposehandle(), enlargehandle(), fl, h, newemptyhandle(), text, wpbuffer, and wpsetglobals().

Referenced by minigetstring(), opdefaultgetwpedittext(), tablegetwpedittext(), wpfunctionvalue(), wpgettext(), and wpverbpacktotext().

Here is the call graph for this function:

boolean wpgo tydirection  dir,
long  dist
 

Definition at line 3637 of file wpengine.c.

References chdownarrow, chleftarrow, chrightarrow, chuparrow, compute_cursor, CURRENT_POSITION, down, flatdown, flatup, key_insert_mode, left, nil, right, up, wpactivate(), wpbuffer, wpdata, wpdisplay_way, wpgetselection(), wpisactive(), wppostedit(), wppreedit(), and wpresettyping().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wphidecursor void   ) 
 

Definition at line 893 of file wpengine.c.

References hide_cursor, wpbuffer, and wpsetglobals().

Referenced by oppostedit().

Here is the call graph for this function:

void wpidle void   ) 
 

Definition at line 4528 of file wpengine.c.

References hide_cursor, wpbuffer, wppopdraw(), wppushdraw(), and wpsetglobals().

Referenced by miniidle(), opeditidle(), and wpstart().

Here is the call graph for this function:

boolean wpinit void   ) 
 

Definition at line 261 of file wpengine.c.

References pg_style_hooks::char_info, pg_globals::def_style, mem_globals, NewRgn, style_info::procs, wpselectionrgn, and ws_globals.

Referenced by main(), opstart(), and wpstart().

boolean wpinsert bigstring  bs  ) 
 

Definition at line 3930 of file wpengine.c.

References stringlength, and wpinserttext().

Referenced by doreplaceallfunc(), dosearch(), opeditinsert(), and searchfunctionvalue().

Here is the call graph for this function:

boolean wpinserthandle Handle  htext  ) 
 

Definition at line 3874 of file wpengine.c.

References fl, invalrect(), NULL, oploadeditbuffer(), opunloadeditbuffer(), outlinedata, wpbuffer, wpdisplay_way, wpdisplayenabled(), wpgetselection(), wpinserttexthandle(), wppostruleredit(), wppreedit(), wpresettyping(), wpsetdisplay(), and wpsetselection().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

static boolean wpinserttext byte ptext,
long  ctchars
[static]
 

Definition at line 3822 of file wpengine.c.

References CURRENT_POSITION, data_insert_mode, fl, mem_globals, NULL, oserror(), PG_CATCH, PG_ENDTRY, PG_TRY, pushundoaction(), undo_insert, undopastestring, wpbuffer, wpdisplay_way, wppostruleredit(), wppreedit(), wppushundo(), and wpresettyping().

Referenced by wpinsert().

Here is the call graph for this function:

static boolean wpinserttexthandle pg_ref  ,
Handle  ,
short  ,
boolean 
[static]
 

Definition at line 2728 of file wpengine.c.

References athandlestreameof(), closehandlestream(), CURRENT_POSITION, data_insert_mode, draw_none, handlestream::eof, mem_globals, MemoryAlloc, min, NULL, openhandlestream(), oserror(), outlinedata, PG_CATCH, PG_ENDTRY, PG_TRY, PGINSERT_BLOCKSIZE, pushundoaction(), readhandlestream(), undo_insert, undopastestring, wpapplyhtmlstyles(), wpnormalizelineendings(), and wppushundo().

Referenced by wpinserthandle(), wpnewpg(), and wpsettexthandle().

Here is the call graph for this function:

static boolean wpisactive  )  [static]
 

Definition at line 626 of file wpengine.c.

References activate_verb, front_back_state, perm_state, and wpbuffer.

Referenced by wpactivate(), wpgo(), wpsetselection(), and wpupdate().

boolean wpkeystroke void   ) 
 

Definition at line 3408 of file wpengine.c.

References begin_line_caret, chbackspace, chdelete, chdownarrow, chend, chhome, tykeystrokerecord::chkb, chleftarrow, chpagedown, chpageup, chreturn, chrightarrow, chtab, chuparrow, CURRENT_POSITION, doc_bottom_caret, down, end_line_caret, EXTEND_MOD_BIT, tykeystrokerecord::flcmdkey, tykeystrokerecord::floptionkey, tykeystrokerecord::flshiftkey, home_caret, key_insert_mode, keyboardstatus, tykeystrokerecord::keydirection, left, modifiers, next_word_caret, nodirection, NULL, null_caret, obscurecursor(), previous_word_caret, pt, pushundoaction(), setupundo(), toggle_cursor, undo_backspace, undo_fwd_delete, undo_none, undo_typing, undotypingstring, up, wpbuffer, wpdata, wpdisplay_way, wpdisposeundo(), wpgetselpoint(), wppostruleredit(), wppreedit(), wppushundostep(), wpscroll(), wpsetcaretpos(), wpsetselpoint(), wptraversehiddentext(), and wpvisicursor().

Referenced by minikeystroke(), opeditkey(), and wpverbkeystroke().

Here is the call graph for this function:

boolean wpmeasuretext Handle  htext,
Rect r,
tywpflags  wpflags
 

Definition at line 1410 of file wpengine.c.

References bounds, MEM_NULL, and wpnewpg().

Referenced by opeditmeasuretext().

Here is the call graph for this function:

hdlwprecord wpnewbuffer Handle  hpacked,
const Rect rclip,
const Rect rbounds,
tywpflags  wpflags,
boolean  flinwindow
 

Definition at line 2868 of file wpengine.c.

References activate_verb, defaultpgflags, device, disposehandle(), tywprecord::floneline, mem_globals, MEM_NULL, memoryerror(), newclearhandle(), newshape(), nil, NO_WRAP_BIT, PG_CATCH, PG_ENDTRY, PG_TRY, setdefaultstyles(), timenow(), truenoop(), USE_NO_DEVICE, wpalwaysmeasure, wpneverscroll, wpnoop(), wponeline, wpprinting, wpsetautoscroll(), wptrackclickUPP, wpunpacktext(), wpwindow, and ws_globals.

Referenced by miniloadstrings(), oploadeditbuffer(), wpnewrecord(), and wpunpack().

Here is the call graph for this function:

static pg_ref wpnewpg Handle  htext,
const Rect rclip,
const Rect rbounds,
tywpflags  wpflags,
boolean  fldisplay
[static]
 

Definition at line 1078 of file wpengine.c.

References best_way, defaultpgflags, device, draw_mode, draw_none, getport(), mem_globals, MEM_NULL, memoryerror(), newshape(), nil, NO_EDIT_BIT, NO_WRAP_BIT, PG_CATCH, PG_ENDTRY, PG_TRY, setdefaultstyles(), USE_NO_DEVICE, wpinserttexthandle(), wponeline, wpprinting, and ws_globals.

Referenced by wpdrawtext(), and wpmeasuretext().

Here is the call graph for this function:

boolean wpnewrecord Rect  r,
hdlwprecord hwprecord
 

Definition at line 2987 of file wpengine.c.

References bigstring, tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, tyconfigrecord::defaultstyle, tyconfigrecord::defaultwindowrect, idwpconfig, nil, offsetrect(), typrintinfo::paperrect, popport(), popstyle(), pushscratchport(), pushstyle(), setemptystring, shellgetconfig(), shellprintinfo, and wpnewbuffer().

Referenced by wpverbnew().

Here is the call graph for this function:

static void wpnoop void   )  [static]
 

Definition at line 2863 of file wpengine.c.

Referenced by wpnewbuffer().

static boolean wpnormalizelineendings Handle  htext  )  [static]
 

Definition at line 2546 of file wpengine.c.

References athandlestreameof(), chlinefeed, chnul, chreturn, closehandlestream(), mergehandlestreamstring(), nexthandlestreamcharacter(), and openhandlestream().

Referenced by wpinserttexthandle().

Here is the call graph for this function:

static boolean wpownwindowinfo void   )  [static]
 

Definition at line 403 of file wpengine.c.

References idwpconfig, nil, and wpwindowinfo.

Referenced by wpdirty(), wpscroll(), wpsetselectioninfo(), wpsettexthandle(), and wptrackclick().

boolean wppack Handle hpacked  ) 
 

Definition at line 2399 of file wpengine.c.

References disposehandle(), fl, gethandlesize(), nil, pushhandle(), wpbuffer, wppackheader(), wppacktext(), and wpsetglobals().

Referenced by wpverbpackrecord().

Here is the call graph for this function:

static boolean wppackheader long  buffersize,
Handle hpacked
[static]
 

Definition at line 2301 of file wpengine.c.

References clearbytes(), h, moveleft(), newclearhandle(), nil, recttodiskrect(), wpdata, and wpgetmaxpos().

Referenced by wppack().

Here is the call graph for this function:

static boolean wppacktext pg_ref  pg,
Handle hpacked
[static]
 

Definition at line 2354 of file wpengine.c.

References filemap, fl, mem_globals, MemoryAlloc, memoryerror(), newfilledhandle(), and NULL.

Referenced by wpexportscrap(), and wppack().

Here is the call graph for this function:

boolean wppagesetup void   ) 
 

Definition at line 1890 of file wpengine.c.

References shellinvalcontent(), wpbuffer, wpsetavailbounds(), wpsetglobals(), and wpwindowinfo.

Referenced by wpstart().

Here is the call graph for this function:

boolean wppaste boolean  flcanusestyle  ) 
 

Definition at line 4075 of file wpengine.c.

References CURRENT_POSITION, data_insert_mode, disposehandle(), FALSE, gethandlesize(), lockhandle(), mem_globals, memoryerror(), NULL, PG_CATCH, PG_ENDTRY, PG_TRY, pictscraptype, pushundoaction(), shellconvertscrap(), textscraptype, undo_insert, undo_paste, undopastestring, unlockhandle(), wpbuffer, wpdisplay_way, wppostedit(), wppreedit(), wppushundo(), wpresettyping(), and wpscraptype.

Referenced by minipaste(), opeditpaste(), wpverbnew(), and wpverbpaste().

Here is the call graph for this function:

boolean wppopdata void   ) 
 

Definition at line 478 of file wpengine.c.

References topwpstack, wpdata, and wpstack.

Referenced by wpverbfind(), wpverbgetsize(), and wpverbnew().

static void wppopdraw void   )  [static]
 

Definition at line 548 of file wpengine.c.

References popport(), and wpdisplayenabled().

Referenced by wpactivate(), wpidle(), wppostruleredit(), and wpsetselection().

Here is the call graph for this function:

void wppostedit boolean  flrecalc  ) 
 

Definition at line 3139 of file wpengine.c.

References wppostruleredit().

Referenced by wpclear(), wpcut(), wpgo(), wppaste(), wpsetfont(), wpsetsize(), wpsetstyle(), wptotalrecalc(), and wpundo().

Here is the call graph for this function:

void wppostruleredit boolean  ,
boolean 
 

Definition at line 3088 of file wpengine.c.

References tywprecord::fleditingnow, nil, wpadjustboundstofit(), wpcheckscrollpos(), wpdata, wpdirty(), wpdisplayenabled(), wppopdraw(), wpresetscrollbars(), wpvisicursor(), and wpwindowinfo.

Referenced by wpclick(), wpinserthandle(), wpinserttext(), wpkeystroke(), wppostedit(), wpsetjustify(), wpsetleading(), wpsettab(), wpsettexthandle(), and wpsetverbindent().

Here is the call graph for this function:

boolean wppreedit void   ) 
 

boolean wpprint short  pagenumber  ) 
 

Definition at line 1958 of file wpengine.c.

References best_way, typrintinfo::paperrect, r, shellprintinfo, wpbuffer, wpdata, wpprintdevice, wpresettyping(), and wpsetglobals().

Referenced by wpstart().

Here is the call graph for this function:

boolean wppushdata hdlwprecord  hwp  ) 
 

Definition at line 456 of file wpengine.c.

References ctwpstack, idwpstackfull, shellinternalerror, STR_wp_stack_overflow, topwpstack, wpdata, and wpstack.

Referenced by wpverbfind(), wpverbgetsize(), and wpverbnew().

static void wppushdraw void   )  [static]
 

Definition at line 503 of file wpengine.c.

References pushport(), wpdisplayenabled(), and wpwindow.

Referenced by wpactivate(), wpidle(), wppreedit(), and wpsetselection().

Here is the call graph for this function:

boolean wppushformatundo void   ) 
 

Definition at line 3251 of file wpengine.c.

References wppushrulerundo().

Referenced by wpsetfont(), wpsetsize(), and wpsetstyle().

Here is the call graph for this function:

static boolean wppushrulerundo void   )  [static]
 

Definition at line 3245 of file wpengine.c.

References NULL, undo_format, and wppushundo().

Referenced by wpcleartabs(), wppushformatundo(), wpsetjustify(), wpsetleading(), wpsettab(), and wpsetverbindent().

Here is the call graph for this function:

boolean wppushundo long  ,
void * 
 

Definition at line 3237 of file wpengine.c.

References setupundo(), and wppushundostep().

Referenced by wpcut(), wpdelete(), wpinserttext(), wpinserttexthandle(), wppaste(), and wppushrulerundo().

Here is the call graph for this function:

static boolean wppushundostep void   )  [static]
 

Definition at line 3221 of file wpengine.c.

References getundo(), nil, pushundostep(), setundo(), and wpundoroutine().

Referenced by wpkeystroke(), wppushundo(), and wpundoroutine().

Here is the call graph for this function:

static void wpredrawscrollbars void   )  [static]
 

Definition at line 1037 of file wpengine.c.

Referenced by wpresetscrollbars().

void wpresetscrollbars void   ) 
 

Definition at line 1043 of file wpengine.c.

References wpgetscrollbarinfo(), wpredrawscrollbars(), and wpsetglobals().

Referenced by wppostruleredit(), wpresize(), wpscroll(), wpsetbufferrect(), wpstart(), and wpvisicursor().

Here is the call graph for this function:

void wpresettyping void   ) 
 

Definition at line 384 of file wpengine.c.

Referenced by wpclear(), wpclick(), wpcut(), wpdispose(), wpgo(), wpinserthandle(), wpinserttext(), wppaste(), wpprint(), and wpsetselection().

void wpresize void   ) 
 

Definition at line 4263 of file wpengine.c.

References co_ordinate::h, NULL, co_ordinate::v, wpbuffer, wpdirty(), wpresetscrollbars(), and wpsetglobals().

Referenced by wpstart().

Here is the call graph for this function:

static boolean wprulerclick Point  pt  )  [static]
 

Definition at line 3749 of file wpengine.c.

Referenced by wpclick().

boolean wpscraphook Handle  hscrap  ) 
 

Definition at line 4026 of file wpengine.c.

References getscrap(), wpscraptype, wpsetscrap(), and wpunpacktext().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpscroll register tydirection  dir,
boolean  flpage,
long  ctscroll
 

Definition at line 1614 of file wpengine.c.

References down, left, longinfinity, oppositdirection(), popclip(), pushclip(), right, scroll_none, scroll_page, scroll_unit, shellupdatescrollbars(), up, wpbuffer, wpcheckscrollpos(), wpdata, wpdisplay_way, wpframedisplay(), wpownwindowinfo(), wpresetscrollbars(), wpsetglobals(), and wpwindowinfo.

Here is the call graph for this function:

boolean wpsearch boolean  flfromtop,
boolean  flcase,
boolean  flwords,
boolean  flwrap
 

Definition at line 4401 of file wpengine.c.

References block, ctblocks, wpbuffer, and wpsetglobals().

Referenced by dosearch().

Here is the call graph for this function:

boolean wpselectall void   ) 
 

Definition at line 4178 of file wpengine.c.

References longinfinity, and wpsetselection().

Referenced by miniselectallandactivate(), minisetfontsize(), opeditselectall(), wpselectline(), and wpstart().

Here is the call graph for this function:

boolean wpselectline void   ) 
 

Definition at line 4197 of file wpengine.c.

References CURRENT_POSITION, wpbuffer, wpgetselrect(), wpselectall(), wpsetglobals(), and wpsetselection().

Referenced by wpfunctionvalue(), and wpverbruncursor().

Here is the call graph for this function:

boolean wpselectpara void   ) 
 

Definition at line 4227 of file wpengine.c.

References wpbuffer, wpgetselection(), wpsetglobals(), and wpsetselection().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpselectword void   ) 
 

Definition at line 4184 of file wpengine.c.

References CURRENT_POSITION, FALSE, TRUE, wpbuffer, wpsetglobals(), and wpsetselection().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

static void wpsetautoscroll pg_ref  hbuf,
boolean  flauto
[static]
 

Definition at line 579 of file wpengine.c.

References paige_rec::flags2, NO_HAUTOSCROLL, and NO_VAUTOSCROLL.

Referenced by wpnewbuffer(), and wpvisicursor().

static void wpsetavailbounds pg_ref  pg  )  [static]
 

Definition at line 751 of file wpengine.c.

References rectangle::bot_right, co_ordinate::h, NULL, rectangle::top_left, and wpavailwidth().

Referenced by wppagesetup(), and wpunpack().

Here is the call graph for this function:

boolean wpsetbufferrect Rect  rclip,
Rect  r
 

Definition at line 849 of file wpengine.c.

References bounds, CURRENT_POSITION, FALSE, hide_cursor, MEM_NULL, newshape(), wpadjustboundstofit(), wpbuffer, wpgetrulerheight(), wpresetscrollbars(), and wpsetglobals().

Referenced by miniresizetextrects(), opseteditbufferrect(), and wplinkwindowinfo().

Here is the call graph for this function:

static boolean wpsetcaretpos pg_short_t  caretverb  )  [static]
 

Definition at line 3257 of file wpengine.c.

References EXTEND_CARET_FLAG, tykeystrokerecord::flshiftkey, keyboardstatus, next_word_caret, previous_word_caret, and wpbuffer.

Referenced by wpkeystroke().

boolean wpsetdisplay boolean  fldisplay  ) 
 

Definition at line 671 of file wpengine.c.

References wpsetglobals(), and wptotalrecalc().

Referenced by wpfunctionvalue(), and wpinserthandle().

Here is the call graph for this function:

boolean wpsetfont void   ) 
 

Definition at line 4562 of file wpengine.c.

References bigstring, convertpstring(), fontgetname(), NULL, pushundoaction(), undoformatstring, wpbuffer, wpdisplayenabled(), wppostedit(), wppreedit(), and wppushformatundo().

Referenced by minisetfontsize(), and wpstart().

Here is the call graph for this function:

boolean wpsetglobals void   ) 
 

Definition at line 317 of file wpengine.c.

References nil, return(), wpbuffer, and wpdata.

Referenced by setglobals(), wpactivate(), wpadjustcursor(), wpcopy(), wpdispose(), wpgetcontentsize(), wpgetdisplay(), wpgetmaxpos(), wpgetruler(), wpgetscrollbarinfo(), wpgetselection(), wpgetselpoint(), wpgetselrect(), wpgetseltexthandle(), wpgettexthandle(), wphidecursor(), wpidle(), wppack(), wppagesetup(), wppreedit(), wpprint(), wpresetscrollbars(), wpresize(), wpscroll(), wpsearch(), wpselectline(), wpselectpara(), wpselectword(), wpsetbufferrect(), wpsetdisplay(), wpsetprintinfo(), wpsetruler(), wpsetselection(), wpsetselectioninfo(), wpsetselpoint(), wpsetupwindow(), and wpupdate().

Here is the call graph for this function:

boolean wpsetindent short  indent  ) 
 

Definition at line 4834 of file wpengine.c.

References indents, mask, and wpsetverbindent().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpsetjustify void   ) 
 

Definition at line 4657 of file wpengine.c.

References centerjustified, fulljustified, info, justify_center, justify_full, justify_left, justify_right, leftjustified, mask, NULL, pushundoaction(), rightjustified, undoformatstring, wpbuffer, wpdirtyselectioninfo(), wpdisplay_way, wppostruleredit(), wppreedit(), and wppushrulerundo().

Referenced by wpfunctionvalue(), and wpstart().

Here is the call graph for this function:

boolean wpsetleading void   ) 
 

Definition at line 4631 of file wpengine.c.

References info, mask, NULL, pushundoaction(), undoformatstring, wpbuffer, wpdisplay_way, wppostruleredit(), wppreedit(), and wppushrulerundo().

Referenced by wpfunctionvalue(), and wpstart().

Here is the call graph for this function:

boolean wpsetleftmargin short  leftmargin  ) 
 

Definition at line 4856 of file wpengine.c.

References indents, mask, and wpsetverbindent().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpsetname bigstring  bsname  ) 
 

Definition at line 4242 of file wpengine.c.

References disposehandle(), fl, newheapstring(), and wpdirty().

Here is the call graph for this function:

boolean wpsetprintinfo void   ) 
 

Definition at line 1903 of file wpengine.c.

References typrintinfo::ctpages, infinity, typrintinfo::paperrect, r, shellprintinfo, and wpsetglobals().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpsetrightmargin short  rightmargin  ) 
 

Definition at line 4878 of file wpengine.c.

References indents, mask, and wpsetverbindent().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpsetruler register boolean  flruler  ) 
 

Definition at line 692 of file wpengine.c.

References tywprecord::flshowruler, wpdata, wpdirty(), and wpsetglobals().

Here is the call graph for this function:

static boolean wpsetscrap pg_ref  hwp  )  [static]
 

Definition at line 4020 of file wpengine.c.

References shellsetscrap(), wpdisposescrap(), wpexportscrap(), and wpscraptype.

Referenced by wpcopy(), wpcut(), and wpscraphook().

Here is the call graph for this function:

boolean wpsetselection long  startsel,
long  endsel
 

Definition at line 4339 of file wpengine.c.

References gettextlength(), min, wpbuffer, wpdirtyselectioninfo(), wpdisplayenabled(), wpframeselection(), wpisactive(), wppopdraw(), wppushdraw(), wpresettyping(), wpsetglobals(), and wpupdate().

Referenced by dosearch(), minisetselect(), opeditrecalcheadline(), opeditsetselection(), opfunctionvalue(), oploadeditbuffer(), oprestoreeditbuffer(), wpfunctionvalue(), wpgetselection(), wpinserthandle(), wpselectall(), wpselectline(), wpselectpara(), wpselectword(), wptraversehiddentext(), and wptrimhiddentext().

Here is the call graph for this function:

boolean wpsetselectioninfo void   ) 
 

Definition at line 4712 of file wpengine.c.

References bigstring, centerjustified, clearbytes(), convertcstring(), FALSE, fontgetnumber(), fulljustified, info, justify_center, justify_full, justify_left, justify_right, leftjustified, mask, NULL, rightjustified, unknownjustification, wpbuffer, wpownwindowinfo(), and wpsetglobals().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpsetselpoint Point  pt  ) 
 

Definition at line 1574 of file wpengine.c.

References NULL, offset, point, pt, r, TRUE, wpbuffer, wpdisplayenabled(), and wpsetglobals().

Referenced by opeditsetselpoint(), and wpkeystroke().

Here is the call graph for this function:

boolean wpsetsize void   ) 
 

Definition at line 4587 of file wpengine.c.

References NULL, pushundoaction(), undoformatstring, wpbuffer, wpdisplayenabled(), wppostedit(), wppreedit(), and wppushformatundo().

Referenced by minisetfontsize(), and wpstart().

Here is the call graph for this function:

boolean wpsetstyle void   ) 
 

Definition at line 4604 of file wpengine.c.

References normal, NULL, pushundoaction(), style_bits, undoformatstring, wpbuffer, wpdisplayenabled(), wppostedit(), wppreedit(), and wppushformatundo().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpsettab short  pos,
short  tabjust,
byte  chfill
 

Definition at line 4888 of file wpengine.c.

References chnul, chspace, NULL, pushundoaction(), tab, undoformatstring, wpbuffer, wpdirtyselectioninfo(), wpdisplay_way, wppostruleredit(), wppreedit(), and wppushrulerundo().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpsettext bigstring  bs  ) 
 

Definition at line 2847 of file wpengine.c.

References disposehandle(), fl, newtexthandle(), and wpsettexthandle().

Here is the call graph for this function:

boolean wpsettexthandle Handle  htext  ) 
 

Definition at line 2810 of file wpengine.c.

References draw_none, fl, gettextlength(), nil, pushundoaction(), range, wpbuffer, wpdirtyselectioninfo(), wpdisplay_way, wpinserttexthandle(), wpownwindowinfo(), wppostruleredit(), and wppreedit().

Referenced by minisetstring(), opdefaultsetwpedittext(), tablesetwpedittext(), wpfunctionvalue(), and wpsettext().

Here is the call graph for this function:

void wpsetupwindow void   ) 
 

Definition at line 769 of file wpengine.c.

References MEM_NULL, wpbuffer, wpsetglobals(), wpwindow, and ws_globals.

Referenced by wplinkwindowinfo().

Here is the call graph for this function:

static boolean wpsetverbindent pg_indents indents,
pg_indents mask
[static]
 

Definition at line 4803 of file wpengine.c.

References indents, mask, NULL, pushundoaction(), undoformatstring, wpbuffer, wpdirtyselectioninfo(), wpdisplay_way, wppostruleredit(), wppreedit(), and wppushrulerundo().

Referenced by wpsetindent(), wpsetleftmargin(), and wpsetrightmargin().

Here is the call graph for this function:

void wpshutdown void   ) 
 

Definition at line 277 of file wpengine.c.

References mem_globals, and ws_globals.

Referenced by opstart(), and wpstart().

boolean wptotalrecalc void   ) 
 

Definition at line 4291 of file wpengine.c.

References FALSE, wpbuffer, wppostedit(), and wppreedit().

Referenced by wpsetdisplay().

Here is the call graph for this function:

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

Definition at line 1998 of file wpengine.c.

References autoscrollticks, mousecheckautoscroll(), NULL, pt, r, shellupdatescrollbars(), wpbuffer, wpownwindowinfo(), wpscroll(), and wpwindowinfo.

Here is the call graph for this function:

boolean wptraversehiddentext tydirection  dir,
long newstartsel
 

Definition at line 3290 of file wpengine.c.

References left, wpbuffer, and wpsetselection().

Referenced by wpgetselection(), wpkeystroke(), and wptrimhiddentext().

Here is the call graph for this function:

boolean wptrimhiddentext void   ) 
 

Definition at line 3348 of file wpengine.c.

References fl, left, right, wpgetselection(), wpsetselection(), and wptraversehiddentext().

Referenced by wpfunctionvalue().

Here is the call graph for this function:

boolean wpundo void   ) 
 

Definition at line 4382 of file wpengine.c.

References getundo(), setundo(), wpbuffer, wpdata, wpdisplay_way, wpdisposeundo(), wppostedit(), and wppreedit().

Referenced by wpundoroutine().

Here is the call graph for this function:

static boolean wpundoroutine Handle  hdata,
boolean  flundo
[static]
 

Definition at line 3191 of file wpengine.c.

References assert, tywprecord::fleditingnow, getundo(), nil, setundo(), wpdata, wppushundostep(), and wpundo().

Referenced by wppushundostep().

Here is the call graph for this function:

boolean wpunpack Handle  hpacked,
hdlwprecord hwp
 

Definition at line 2438 of file wpengine.c.

References assert, BIGSTRING, bigstring, diskrecttorect(), error, nil, typrintinfo::paperrect, popfromhandle(), r, setemptystring, sethandlesize(), shellerrormessage(), shellprintinfo, wpnewbuffer(), wpnoflags, wponeline, and wpsetavailbounds().

Referenced by wpverbinmemory().

Here is the call graph for this function:

static boolean wpunpacktext Handle  hpacked,
pg_ref pg
[static]
 

Definition at line 2247 of file wpengine.c.

References deactivate_verb, filemap, gethandlesize(), mem_globals, MemoryAlloc, memoryerror(), no_change_verb, noErr, NULL, PG_CATCH, PG_ENDTRY, PG_TRY, position, unpackwordsolutionenginefile(), and ws_globals.

Referenced by wpnewbuffer(), and wpscraphook().

Here is the call graph for this function:

void wpupdate void   ) 
 

Definition at line 1814 of file wpengine.c.

References direct_copy, eraserect(), graf_device::machine_ref3, graf_device::machine_var, mem_globals, MEM_NULL, nil, NULL, PG_CATCH, PG_ENDTRY, PG_TRY, popbackcolor(), pushbackcolor(), whitecolor, wpbuffer, wpframedisplay(), wpframeselection(), wpgetruler(), wpisactive(), wpsetglobals(), and ws_globals.

Referenced by minidrawtextitems(), opeditupdate(), tablesetwpedittext(), wpsetselection(), and wpstart().

Here is the call graph for this function:

static void wpvisicursor void   )  [static]
 

Definition at line 592 of file wpengine.c.

References CURRENT_POSITION, tywprecord::flcheckvisi, TRUE, wpbuffer, wpdata, wpdisplay_way, wpdisplayenabled(), wpresetscrollbars(), and wpsetautoscroll().

Referenced by wpactivate(), wpkeystroke(), and wppostruleredit().

Here is the call graph for this function:


Variable Documentation

pgm_globals mem_globals [static]
 

Definition at line 90 of file wpengine.c.

short topwpstack = 0 [static]
 

Definition at line 105 of file wpengine.c.

Referenced by wppopdata(), and wppushdata().

pg_ref wpbuffer = MEM_NULL
 

Definition at line 86 of file wpengine.c.

Referenced by setupundo(), wpactivate(), wpadjustboundstofit(), wpadjustcursor(), wpcheckscrollpos(), wpcleartabs(), wpclick(), wpcopy(), wpcut(), wpdelete(), wpframeselection(), wpgetcontentsize(), wpgetindent(), wpgetleftmargin(), wpgetmaxpos(), wpgetrightmargin(), wpgetscrollbarinfo(), wpgetselection(), wpgetselpoint(), wpgetselrect(), wpgetseltexthandle(), wpgettexthandle(), wpgo(), wphidecursor(), wpidle(), wpinserthandle(), wpinserttext(), wpisactive(), wpkeystroke(), wppack(), wppagesetup(), wppaste(), wpprint(), wpresize(), wpscroll(), wpsearch(), wpselectline(), wpselectpara(), wpselectword(), wpsetbufferrect(), wpsetcaretpos(), wpsetfont(), wpsetglobals(), wpsetjustify(), wpsetleading(), wpsetselection(), wpsetselectioninfo(), wpsetselpoint(), wpsetsize(), wpsetstyle(), wpsettab(), wpsettexthandle(), wpsetupwindow(), wpsetverbindent(), wptotalrecalc(), wptrackclick(), wptraversehiddentext(), wpundo(), wpupdate(), and wpvisicursor().

hdlwprecord wpdata = nil
 

Definition at line 82 of file wpengine.c.

Referenced by minisetwpglobals(), opeditdispose(), opeditsetglobals(), oppostedit(), opupdateafterresize(), wpadjustboundstofit(), wpbeginprint(), wpclick(), wpclose(), wpdirty(), wpdisplayenabled(), wpdispose(), wpedit(), wpgetdisplay(), wpgetscrollbarinfo(), wpgo(), wpkeystroke(), wppackheader(), wppopdata(), wppostruleredit(), wppreedit(), wpprint(), wppushdata(), wpscroll(), wpsetglobals(), wpsetruler(), wpstart(), wpundo(), wpundoroutine(), wpverbgetvariable(), wpverbpackrecord(), wpverbpacktotext(), wpverbsetscrollbarsroutine(), and wpvisicursor().

graf_device wpprintdevice [static]
 

Definition at line 1925 of file wpengine.c.

Referenced by wpbeginprint(), wpendprint(), and wpprint().

hdlregion wpselectionrgn = nil [static]
 

Definition at line 88 of file wpengine.c.

Referenced by wpframeselection(), and wpinit().

hdlwprecord wpstack[ctwpstack] [static]
 

Definition at line 107 of file wpengine.c.

Referenced by wppopdata(), and wppushdata().

WindowPtr wpwindow = nil
 

Definition at line 80 of file wpengine.c.

Referenced by minisetwpglobals(), opeditdispose(), opeditsetglobals(), wpdirty(), wpdisplayenabled(), wpnewbuffer(), wppushdraw(), wpsetupwindow(), and wpstart().

hdlwindowinfo wpwindowinfo = nil
 

Definition at line 84 of file wpengine.c.

Referenced by minisetwpglobals(), opeditdispose(), opeditsetglobals(), wpdirtyselectioninfo(), wplinkwindowinfo(), wpownwindowinfo(), wppagesetup(), wppostruleredit(), wpscroll(), wpstart(), wptrackclick(), and wpverbsetscrollbarsroutine().

pg_globals ws_globals [static]
 

Definition at line 92 of file wpengine.c.

Referenced by setdefaultstyles(), unpackwordsolutionenginefile(), wpbeginprint(), wpdrawtext(), wpendprint(), wpinit(), wpnewbuffer(), wpnewpg(), wpsetupwindow(), wpshutdown(), wpunpacktext(), and wpupdate().


Generated on Thu Jun 15 01:33:49 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6