wpverbs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "PAIGE.H"
#include "frontierconfig.h"
#include "cursor.h"
#include "file.h"
#include "kb.h"
#include "memory.h"
#include "mouse.h"
#include "ops.h"
#include "quickdraw.h"
#include "resources.h"
#include "strings.h"
#include "search.h"
#include "zoom.h"
#include "shell.h"
#include "shellhooks.h"
#include "shellprint.h"
#include "shellundo.h"
#include "lang.h"
#include "langexternal.h"
#include "tablestructure.h"
#include "cancoon.h"
#include "wpengine.h"
#include "wpinternal.h"
#include "wpverbs.h"
#include "kernelverbdefs.h"

Include dependency graph for wpverbs.c:

Go to the source code of this file.

Data Structures

struct  tywpvariable

Defines

#define wperrorlist   264
#define nowperror   1
#define namenotwperror   2
#define wpstringlist   164
#define wptypestring   1
#define wpsizestring   2

Typedefs

typedef tywpvariableptrwpvariable
typedef tywpvariable ** hdlwpvariable

Enumerations

enum  tywptoken {
  intextmodefunc, settextmodefunc, gettextfunc, settextfunc,
  getseltextfunc, getdisplayfunc, setdisplayfunc, getrulerfunc,
  setrulerfunc, getindentfunc, setindentfunc, getleftmarginfunc,
  setleftmarginfunc, getrightmarginfunc, setrightmarginfunc, setspacingfunc,
  setjustificationfunc, settabfunc, cleartabsfunc, getselectfunc,
  setselectfunc, insertfunc, rulerlengthfunc, gofunc,
  selectwordfunc, selectlinefunc, selectparafunc, ctwpverbs
}

Functions

static void wpverbsetscrollbarsroutine (void)
static void wplinkwindowinfo (void)
boolean wpverbgettypestring (hdlexternalvariable hvariable, bigstring bs)
static boolean newwpvariable (boolean flinmemory, boolean flpacked, long variabledata, hdlwpvariable *h)
static boolean wpdisposevariable (hdlexternalvariable hvariable, boolean fldisk)
boolean wpverbdispose (hdlexternalvariable hvariable, boolean fldisk)
static void wpverbcheckwindowrect (register hdlwprecord hwp)
boolean wpverbisdirty (hdlexternalvariable hvariable)
boolean wpverbsetdirty (hdlexternalvariable hvariable, boolean fldirty)
static void wpverblinkvariable (hdlwprecord hwp, hdlwpvariable hv)
boolean wpverbnew (Handle hdata, hdlexternalvariable *hvariable)
static boolean wpverbpackrecord (hdlwprecord hwp, Handle *hpacked)
boolean wpverbmemorypack (hdlexternalvariable h, Handle *hpacked)
boolean wpverbmemoryunpack (Handle hpacked, long *ixload, hdlexternalvariable *h)
static void wpverbondisk (hdlwpvariable hv, dbaddress adr)
static void wpverbunload (hdlwpvariable hv)
boolean wpverbpack (hdlexternalvariable h, Handle *hpacked, boolean *flnewdbaddress)
boolean wpverbunpack (Handle hpacked, long *ixload, hdlexternalvariable *h)
boolean wpverbinmemory (hdlexternalvariable h)
boolean wpverbgetsize (hdlexternalvariable hvariable, long *size)
boolean wpverbgetdisplaystring (hdlexternalvariable h, bigstring bs)
boolean wpverbpacktotext (hdlexternalvariable h, Handle htext)
boolean wpverbgettimes (hdlexternalvariable h, long *timecreated, long *timemodified)
boolean wpverbsettimes (hdlexternalvariable h, long timecreated, long timemodified)
boolean wpwindowopen (hdlexternalvariable hvariable, hdlwindowinfo *hinfo)
boolean wpedit (hdlexternalvariable hvariable, hdlwindowinfo hparent, ptrfilespec fs, bigstring bstitle, rectparam rzoom)
static boolean wpfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean wpclose (void)
static boolean wpinitverbs (void)
static boolean dosearch (boolean flfromtop, boolean flwrap, boolean *fltempload)
boolean wpverbfind (hdlexternalvariable hvariable, boolean *flzoom)
static boolean wpverbsearch (void)
static boolean wpverbruncursor (void)
static boolean wpverbtitleclick (Point pt)
static boolean wpverbgetvariable (void *hvariable)
static boolean wpverbgettargetdata (short id)
static boolean wpverbclick (Point pt, tyclickflags flags)
static boolean wpverbkeystroke (void)
static boolean wpverbpaste (void)
boolean wpstart (void)

Variables

static short errornum = 0


Define Documentation

#define namenotwperror   2
 

Definition at line 62 of file wpverbs.c.

#define nowperror   1
 

Definition at line 61 of file wpverbs.c.

Referenced by wpfunctionvalue().

#define wperrorlist   264
 

Definition at line 60 of file wpverbs.c.

Referenced by wpfunctionvalue().

#define wpsizestring   2
 

Definition at line 66 of file wpverbs.c.

Referenced by wpverbgetdisplaystring().

#define wpstringlist   164
 

Definition at line 64 of file wpverbs.c.

Referenced by wpverbgetdisplaystring(), and wpverbgettypestring().

#define wptypestring   1
 

Definition at line 65 of file wpverbs.c.

Referenced by wpverbgettypestring().


Typedef Documentation

typedef struct tywpvariable ** hdlwpvariable
 

typedef struct tywpvariable * ptrwpvariable
 


Enumeration Type Documentation

enum tywptoken
 

Enumerator:
intextmodefunc 
settextmodefunc 
gettextfunc 
settextfunc 
getseltextfunc 
getdisplayfunc 
setdisplayfunc 
getrulerfunc 
setrulerfunc 
getindentfunc 
setindentfunc 
getleftmarginfunc 
setleftmarginfunc 
getrightmarginfunc 
setrightmarginfunc 
setspacingfunc 
setjustificationfunc 
settabfunc 
cleartabsfunc 
getselectfunc 
setselectfunc 
insertfunc 
rulerlengthfunc 
gofunc 
selectwordfunc 
selectlinefunc 
selectparafunc 
ctwpverbs 

Definition at line 69 of file wpverbs.c.


Function Documentation

static boolean dosearch boolean  flfromtop,
boolean  flwrap,
boolean fltempload
[static]
 

Definition at line 1724 of file wpverbs.c.

References tysearchparameters::bsreplace, tysearchparameters::ctreplaced, fl, tysearchparameters::flreplaceall, tysearchparameters::flunicase, tysearchparameters::flwholewords, keyboardescape(), searchparams, stringlength, wpgetselection(), wpinsert(), wpsearch(), and wpsetselection().

Referenced by wpverbfind(), and wpverbsearch().

Here is the call graph for this function:

static boolean newwpvariable boolean  flinmemory,
boolean  flpacked,
long  variabledata,
hdlwpvariable h
[static]
 

Definition at line 235 of file wpverbs.c.

References h, and langnewexternalvariable().

Referenced by wpverbmemoryunpack(), wpverbnew(), and wpverbunpack().

Here is the call graph for this function:

static boolean wpclose void   )  [static]
 

Definition at line 1667 of file wpverbs.c.

References isfilewindow(), killundo(), langexternalwindowclosed(), nil, shellwindow, wpdata, wpverbcheckwindowrect(), and wpverbunload().

Referenced by wpstart().

Here is the call graph for this function:

static boolean wpdisposevariable hdlexternalvariable  hvariable,
boolean  fldisk
[static]
 

Definition at line 246 of file wpverbs.c.

References disposehandle(), tyexternalvariable::variabledata, and wpdisposerecord().

Referenced by wpverbdispose().

Here is the call graph for this function:

boolean wpedit hdlexternalvariable  hvariable,
hdlwindowinfo  hparent,
ptrfilespec  fs,
bigstring  bstitle,
rectparam  rzoom
 

Definition at line 877 of file wpverbs.c.

References getwindowinfo(), idwpconfig, newchildwindow(), nil, shellbringtofront(), shellfinddatawindow(), shellpopglobals(), shellpushglobals(), shellsetwindowchanges(), shellyield(), windowzoom(), wpdata, wplinkwindowinfo(), and wpverbinmemory().

Referenced by langexternaledit().

Here is the call graph for this function:

static boolean wpfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 954 of file wpverbs.c.

References bigstring, cleartabsfunc, error, errornum, fl, flnextparamislast, getbooleanvalue(), getcharvalue(), getdirectionvalue(), getdisplayfunc, getindentfunc, getintvalue(), getleftmarginfunc, getlongvalue(), getreadonlytextvalue(), getrightmarginfunc, getrulerfunc, getselectfunc, getseltextfunc, getstringlist(), getstringvalue(), tyshellglobals::gettargetdataroutine, gettextfunc, gofunc, idwordprocessor, insertfunc, intextmodefunc, langcheckparamcount(), langfindtargetwindow(), langsetlongvarparam(), nil, nowperror, rulerlengthfunc, selectlinefunc, selectparafunc, selectwordfunc, setbooleanvalue(), setdisplayfunc, setemptystring, setheapvalue(), setindentfunc, setjustificationfunc, setleftmarginfunc, setlongvalue(), setrightmarginfunc, setrulerfunc, setselectfunc, setspacingfunc, setstringvalue(), settabfunc, settextfunc, settextmodefunc, tyshellglobals::settextmoderoutine, shellglobals, shellpopglobals(), shellpushglobals(), shellsetselectioninfo(), shellupdatescrollbars(), shellwindowinfo, stringvaluetype, v, wpavailwidth(), wpcleartabs(), wperrorlist, wpgetindent(), wpgetleftmargin(), wpgetrightmargin(), wpgetruler(), wpgetselection(), wpgetseltexthandle(), wpgettexthandle(), wpgo(), wpinserthandle(), wpreadfromtextfile(), wpselectline(), wpselectpara(), wpselectword(), wpsetdisplay(), wpsetindent(), wpsetjustify(), wpsetleading(), wpsetleftmargin(), wpsetrightmargin(), wpsetruler(), wpsetselection(), wpsettab(), wpsettexthandle(), wptrimhiddentext(), and wpwritetotextfile().

Referenced by wpinitverbs().

Here is the call graph for this function:

static boolean wpinitverbs void   )  [static]
 

Definition at line 1718 of file wpverbs.c.

References idwpverbs, loadfunctionprocessor(), and wpfunctionvalue().

Referenced by wpstart().

Here is the call graph for this function:

static void wplinkwindowinfo void   )  [static]
 

Definition at line 196 of file wpverbs.c.

References insetrect(), typrintinfo::paperrect, shellprintinfo, wpsetbufferrect(), wpsetupwindow(), wpverbsetscrollbarsroutine(), and wpwindowinfo.

Referenced by wpedit().

Here is the call graph for this function:

boolean wpstart void   ) 
 

Definition at line 1991 of file wpverbs.c.

References assert, ccdisposefilerecord(), ccsavespecialfile(), idwpconfig, loadconfigresource(), shellnewcallbacks(), shellpushscraphook(), wpactivate(), wpadjustcursor(), wpbeginprint(), wpclear(), wpclose(), wpcopy(), wpcut(), wpdata, wpendprint(), wpgetcontentsize(), wpidle(), wpinit(), wpinitverbs(), wppagesetup(), wpprint(), wpresetscrollbars(), wpresize(), wpscraphook(), wpscroll(), wpselectall(), wpsetfont(), wpsetjustify(), wpsetleading(), wpsetprintinfo(), wpsetselectioninfo(), wpsetsize(), wpsetstyle(), wpshutdown(), wpupdate(), wpverbclick(), wpverbgettargetdata(), wpverbgetvariable(), wpverbkeystroke(), wpverbpaste(), wpverbruncursor(), wpverbsearch(), wpverbtitleclick(), wpwindow, and wpwindowinfo.

Referenced by frontierstart().

Here is the call graph for this function:

static void wpverbcheckwindowrect register hdlwprecord  hwp  )  [static]
 

Definition at line 268 of file wpverbs.c.

References equalrects(), r, shellfinddatawindow(), and shellgetglobalwindowrect().

Referenced by wpclose(), wpverbisdirty(), wpverbmemorypack(), and wpverbpack().

Here is the call graph for this function:

static boolean wpverbclick Point  pt,
tyclickflags  flags
[static]
 

Definition at line 1955 of file wpverbs.c.

References bigstring, tykeystrokerecord::ctmodifiers, tymouserecord::fldoubleclick, keyboardstatus, langzoomobject(), mousestatus, pt, wpclick(), and wpgetseltext().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpverbdispose hdlexternalvariable  hvariable,
boolean  fldisk
 

Definition at line 260 of file wpverbs.c.

References langexternaldisposevariable(), and wpdisposevariable().

Referenced by langexternaldisposevalue().

Here is the call graph for this function:

boolean wpverbfind hdlexternalvariable  hvariable,
boolean flzoom
 

Definition at line 1812 of file wpverbs.c.

References dosearch(), fl, nil, shellpopglobals(), shellpushglobals(), wppopdata(), wppushdata(), wpverbinmemory(), wpverbunload(), and wpwindowopen().

Referenced by langexternalsearch().

Here is the call graph for this function:

boolean wpverbgetdisplaystring hdlexternalvariable  h,
bigstring  bs
 

Definition at line 721 of file wpverbs.c.

References h, parsenumberstring(), wpsizestring, wpstringlist, and wpverbgetsize().

Referenced by langexternalgetdisplaystring().

Here is the call graph for this function:

boolean wpverbgetsize hdlexternalvariable  hvariable,
long size
 

Definition at line 698 of file wpverbs.c.

References wpgetmaxpos(), wpgetpackedmaxpos(), wppopdata(), wppushdata(), and wpverbinmemory().

Referenced by langexternalgetvalsize(), and wpverbgetdisplaystring().

Here is the call graph for this function:

static boolean wpverbgettargetdata short  id  )  [static]
 

Definition at line 1931 of file wpverbs.c.

References idwordprocessor.

Referenced by wpstart().

boolean wpverbgettimes hdlexternalvariable  h,
long timecreated,
long timemodified
 

Definition at line 774 of file wpverbs.c.

References h, return(), tywprecord::timecreated, and wpverbinmemory().

Referenced by langexternalgettimes().

Here is the call graph for this function:

boolean wpverbgettypestring hdlexternalvariable  hvariable,
bigstring  bs
 

Definition at line 224 of file wpverbs.c.

References getstringlist(), wpstringlist, and wptypestring.

Referenced by langexternaltypestring().

Here is the call graph for this function:

static boolean wpverbgetvariable void *  hvariable  )  [static]
 

Definition at line 1918 of file wpverbs.c.

References nil, return(), and wpdata.

Referenced by wpstart().

Here is the call graph for this function:

boolean wpverbinmemory hdlexternalvariable  h  ) 
 

Definition at line 635 of file wpverbs.c.

References disposehandle(), fl, h, langexternalrefdata(), wpunpack(), and wpverblinkvariable().

Referenced by tableexportwpscrap(), wpedit(), wpverbfind(), wpverbgetsize(), wpverbgettimes(), wpverbpack(), wpverbpacktotext(), wpverbsetdirty(), and wpverbsettimes().

Here is the call graph for this function:

boolean wpverbisdirty hdlexternalvariable  hvariable  ) 
 

Definition at line 298 of file wpverbs.c.

References wpverbcheckwindowrect().

Referenced by langexternalisdirty().

Here is the call graph for this function:

static boolean wpverbkeystroke void   )  [static]
 

Definition at line 1972 of file wpverbs.c.

References langexternalsurfacekey(), and wpkeystroke().

Referenced by wpstart().

Here is the call graph for this function:

static void wpverblinkvariable hdlwprecord  hwp,
hdlwpvariable  hv
[static]
 

Definition at line 343 of file wpverbs.c.

References long, and tywprecord::wprefcon.

Referenced by wpverbinmemory(), and wpverbnew().

boolean wpverbmemorypack hdlexternalvariable  h,
Handle hpacked
 

Definition at line 416 of file wpverbs.c.

References copyhandle(), disposehandle(), fl, h, langexternalrefdata(), nil, pushhandle(), wpverbcheckwindowrect(), and wpverbpackrecord().

Referenced by langexternalmemorypack().

Here is the call graph for this function:

boolean wpverbmemoryunpack Handle  hpacked,
long ixload,
hdlexternalvariable h
 

Definition at line 465 of file wpverbs.c.

References h, loadhandleremains(), and newwpvariable().

Referenced by langexternalmemoryunpack().

Here is the call graph for this function:

boolean wpverbnew Handle  hdata,
hdlexternalvariable hvariable
 

Definition at line 351 of file wpverbs.c.

References disposehandle(), infinity, newwpvariable(), nil, r, setrect(), shellpopglobals(), shellpushglobals(), wpnewrecord(), wppaste(), wppopdata(), wppushdata(), and wpverblinkvariable().

Referenced by langexternalnewvalue().

Here is the call graph for this function:

static void wpverbondisk hdlwpvariable  hv,
dbaddress  adr
[static]
 

Definition at line 482 of file wpverbs.c.

References long.

Referenced by wpverbpack(), and wpverbunload().

boolean wpverbpack hdlexternalvariable  h,
Handle hpacked,
boolean flnewdbaddress
 

Definition at line 514 of file wpverbs.c.

References assert, dbassignhandle(), dbcopy(), disposehandle(), fl, flconvertingolddatabase, fldatabasesaveas, h, pushlongondiskhandle(), shellsetwindowchanges(), wpdisposerecord(), wpverbcheckwindowrect(), wpverbinmemory(), wpverbondisk(), wpverbpackrecord(), and wpwindowopen().

Referenced by langexternalpack().

Here is the call graph for this function:

static boolean wpverbpackrecord hdlwprecord  hwp,
Handle hpacked
[static]
 

Definition at line 401 of file wpverbs.c.

References fl, wpdata, and wppack().

Referenced by wpverbmemorypack(), and wpverbpack().

Here is the call graph for this function:

boolean wpverbpacktotext hdlexternalvariable  h,
Handle  htext
 

Definition at line 738 of file wpverbs.c.

References disposehandle(), fl, h, pushhandle(), wpdata, wpgettexthandle(), wpverbinmemory(), and wpverbunload().

Referenced by langexternalpacktotext().

Here is the call graph for this function:

static boolean wpverbpaste void   )  [static]
 

Definition at line 1981 of file wpverbs.c.

References wppaste().

Referenced by wpstart().

Here is the call graph for this function:

static boolean wpverbruncursor void   )  [static]
 

Definition at line 1880 of file wpverbs.c.

References bigstring, langrunhandle(), wpgetselection(), wpgetseltexthandle(), and wpselectline().

Referenced by wpstart().

Here is the call graph for this function:

static boolean wpverbsearch void   )  [static]
 

Definition at line 1854 of file wpverbs.c.

References dosearch(), langexternalcontinuesearch(), searchshouldcontinue(), searchshouldwrap(), and startingtosearch().

Referenced by wpstart().

Here is the call graph for this function:

boolean wpverbsetdirty hdlexternalvariable  hvariable,
boolean  fldirty
 

Definition at line 321 of file wpverbs.c.

References tywprecord::fldirty, return(), and wpverbinmemory().

Referenced by langexternalsetdirty().

Here is the call graph for this function:

static void wpverbsetscrollbarsroutine void   )  [static]
 

Definition at line 183 of file wpverbs.c.

References tywprecord::vertscrollinfo, wpdata, and wpwindowinfo.

Referenced by wplinkwindowinfo().

boolean wpverbsettimes hdlexternalvariable  h,
long  timecreated,
long  timemodified
 

Definition at line 792 of file wpverbs.c.

References h, return(), tywprecord::timecreated, and wpverbinmemory().

Referenced by langexternalsettimes().

Here is the call graph for this function:

static boolean wpverbtitleclick Point  pt  )  [static]
 

Definition at line 1912 of file wpverbs.c.

References langexternaltitleclick(), and pt.

Referenced by wpstart().

Here is the call graph for this function:

static void wpverbunload hdlwpvariable  hv  )  [static]
 

Definition at line 492 of file wpverbs.c.

References assert, disposehandle(), nil, wpdisposerecord(), and wpverbondisk().

Referenced by wpclose(), wpverbfind(), and wpverbpacktotext().

Here is the call graph for this function:

boolean wpverbunpack Handle  hpacked,
long ixload,
hdlexternalvariable h
 

Definition at line 624 of file wpverbs.c.

References h, loadlongfromdiskhandle(), and newwpvariable().

Referenced by langexternalunpack().

Here is the call graph for this function:

boolean wpwindowopen hdlexternalvariable  hvariable,
hdlwindowinfo hinfo
 

Definition at line 849 of file wpverbs.c.

References nil, and shellfinddatawindow().

Referenced by langexternalvariablewindowopen(), wpverbfind(), and wpverbpack().

Here is the call graph for this function:


Variable Documentation

short errornum = 0 [static]
 

Definition at line 178 of file wpverbs.c.


Generated on Thu Jun 15 02:13:35 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6