shellverbs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "font.h"
#include "kb.h"
#include "notify.h"
#include "ops.h"
#include "search.h"
#include "strings.h"
#include "frontierwindows.h"
#include "shell.h"
#include "shellmenu.h"
#include "shellprint.h"
#include "shellprivate.h"
#include "lang.h"
#include "langexternal.h"
#include "langinternal.h"
#include "tablestructure.h"
#include "tableverbs.h"
#include "process.h"
#include "kernelverbs.h"
#include "wpengine.h"
#include "kernelverbdefs.h"
#include "cancoon.h"
#include "resources.h"
#include "file.h"
#include "langregexp.h"

Include dependency graph for shellverbs.c:

Go to the source code of this file.

Defines

#define str_hidden   (BIGSTRING ("\x06" "hidden"))

Enumerations

enum  tysearchtoken {
  resetfunc, findnextfunc, replacefunc, replaceallfunc,
  findtextdialogfunc, replacetextdialogfunc, ctsearchverbs
}
enum  tyfilemenutoken {
  newfunc, openfunc, closefunc, closeallfunc,
  savefunc, savecopyfunc, revertfunc, printfunc,
  quitfunc, saveasfunc, ctfilemenuverbs
}
enum  tyeditmenutoken {
  undofunc, cutfunc, copyfunc, pastefunc,
  clearfunc, selectallfunc, getfontfunc, getfontsizefunc,
  fontfunc, fontsizefunc, plainfunc, boldfunc,
  italicfunc, underlinefunc, outlinefunc, shadowfunc,
  cteditmenuverbs
}
enum  nameindexes {
  ixsearchfor, ixreplacewith, ixcasesensitive, ixwholewords,
  ixwraparound, ixflatsearch, ixfrontwindowonly, ixclosewindows,
  ixregularexpression
}

Functions

static void shellverbsetselectioninfo ()
static boolean shellstyleverb (hdltreenode hparam1, short style, tyvaluerecord *v)
static boolean getstringsearchparam (short ixparam, bigstring bsvalue)
static boolean setstringsearchparam (short ixparam, bigstring bsvalue)
static boolean getbooleansearchparam (short ixparam, boolean *flvalue)
static boolean setbooleansearchparam (short ixparam, boolean flvalue)
static boolean pushsearchparamstable (void)
boolean getsearchparams (void)
boolean setsearchparams (void)
boolean shellpushtargetglobals (void)
static boolean doreplaceallfunc ()
static boolean searchfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean filemenufunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean editmenufunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean shellinitbuiltins (void)
boolean shellinitverbs (void)

Variables

static WindowPtr lastwindowsearched = nil
static bytenameparams []


Define Documentation

#define str_hidden   (BIGSTRING ("\x06" "hidden"))
 

Definition at line 150 of file shellverbs.c.

Referenced by filemenufunctionvalue().


Enumeration Type Documentation

enum nameindexes
 

Enumerator:
ixsearchfor 
ixreplacewith 
ixcasesensitive 
ixwholewords 
ixwraparound 
ixflatsearch 
ixfrontwindowonly 
ixclosewindows 
ixregularexpression 

Definition at line 248 of file shellverbs.c.

enum tyeditmenutoken
 

Enumerator:
undofunc 
cutfunc 
copyfunc 
pastefunc 
clearfunc 
selectallfunc 
getfontfunc 
getfontsizefunc 
fontfunc 
fontsizefunc 
plainfunc 
boldfunc 
italicfunc 
underlinefunc 
outlinefunc 
shadowfunc 
cteditmenuverbs 

Definition at line 112 of file shellverbs.c.

enum tyfilemenutoken
 

Enumerator:
newfunc 
openfunc 
closefunc 
closeallfunc 
savefunc 
savecopyfunc 
revertfunc 
printfunc 
quitfunc 
saveasfunc 
ctfilemenuverbs 

Definition at line 86 of file shellverbs.c.

enum tysearchtoken
 

Enumerator:
resetfunc 
findnextfunc 
replacefunc 
replaceallfunc 
findtextdialogfunc 
replacetextdialogfunc 
ctsearchverbs 

Definition at line 68 of file shellverbs.c.


Function Documentation

static boolean doreplaceallfunc  )  [static]
 

Definition at line 608 of file shellverbs.c.

References bigstring, tysearchparameters::bsreplace, tysearchparameters::ctreplaced, endcurrentsearch(), getsearchparams(), tyshellglobals::gettargetdataroutine, idwordprocessor, isemptystring, searchparams, tyshellglobals::searchroutine, setsearchparams(), shellglobals, shellwindow, startnewsearch(), wpgetseltext(), and wpinsert().

Referenced by searchfunctionvalue().

Here is the call graph for this function:

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

Definition at line 1372 of file shellverbs.c.

References bigstring, bold, boldfunc, clearcommand, clearfunc, copycommand, copyfunc, cutcommand, cutfunc, flnextparamislast, fontfunc, fontgetname(), fontgetnumber(), tyshellglobals::fontroutine, fontsizefunc, getfontfunc, getfontsizefunc, getintvalue(), getstringvalue(), italic, italicfunc, langcheckparamcount(), nil, normal, outline, outlinefunc, pastecommand, pastefunc, plainfunc, selectallcommand, selectallfunc, setbooleanvalue(), setintvalue(), setstringvalue(), shadow, shadowfunc, shelleditcommand(), shellglobals, shellpopglobals(), shellpushtargetglobals(), shellsetselectioninfo(), shellstyleverb(), shellverbsetselectioninfo(), tyshellglobals::sizeroutine, underline, underlinefunc, undocommand, undofunc, and v.

Referenced by shellinitbuiltins().

Here is the call graph for this function:

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

Definition at line 1051 of file shellverbs.c.

References badwindowerror, bigstring, ccfindrootwindow(), ccnewfilewindow(), closeallfunc, closefunc, coercetofilespec(), coercetoostype(), tyvaluerecord::data, disablelangerror(), enablelangerror(), flnextparamislast, tyvaluedata::flvalue, getfilespecvalue(), getfrontwindow(), getoptionalparamvalue(), getparamvalue(), getstringlist(), getwinparam(), initvalue(), langcheckparamcount(), langerrorlist, langfindtargetwindow(), langgetparamcount(), langgetvaluetype(), langrestoreglobals(), langsaveglobals(), newfunc, nil, openfunc, tyvaluedata::ostypevalue, outlinevaluetype, pathtofilespec(), printfunc, processyield(), quitfunc, revertfunc, saveasfunc, savecopyfunc, savefunc, setbooleanvalue(), setwinvalue(), shellclose(), shellcloseall(), shellexitmaineventloop(), shellnewfile(), shellopenfile(), shellpopglobals(), shellprint(), shellpushtargetglobals(), shellrevert(), shellsave(), shellsaveas(), shellwindow, str_hidden, tyvaluedata::stringvalue, stringvaluetype, texthandletostring(), and v.

Referenced by shellinitbuiltins().

Here is the call graph for this function:

static boolean getbooleansearchparam short  ixparam,
boolean flvalue
[static]
 

Definition at line 374 of file shellverbs.c.

References bigstring, copystring(), tyvaluerecord::data, tyvaluedata::flvalue, hashlookup(), and hnode.

Referenced by getsearchparams().

Here is the call graph for this function:

boolean getsearchparams void   ) 
 

Definition at line 426 of file shellverbs.c.

References alllower(), bigstring, tysearchparameters::bsfind, tysearchparameters::bsorigfind, tysearchparameters::bsorigreplace, tysearchparameters::bsreplace, copystring(), disposehandle(), endcurrentsearch(), equalstrings(), fl, tysearchparameters::flclosebehind, tysearchparameters::flonelevel, tysearchparameters::floneobject, tysearchparameters::flregexp, tysearchparameters::flunicase, tysearchparameters::flwholewords, tysearchparameters::flwraparound, getbooleansearchparam(), getstringsearchparam(), isemptystring, ixcasesensitive, ixclosewindows, ixflatsearch, ixfrontwindowonly, ixreplacewith, ixsearchfor, ixwholewords, ixwraparound, langerrormessage(), nil, nullterminate, PCRE_CASELESS, PCRE_DOTALL, PCRE_MULTILINE, PCRE_NOTEMPTY, pophashtable(), pushsearchparamstable(), searchparams, setemptystring, setstringsearchparam(), stringlength, and zerostring.

Referenced by doreplaceallfunc(), opfindverb(), and searchfunctionvalue().

Here is the call graph for this function:

static boolean getstringsearchparam short  ixparam,
bigstring  bsvalue
[static]
 

Definition at line 326 of file shellverbs.c.

References bigstring, coercetostring(), copystring(), copyvaluerecord(), hashlookup(), hnode, pullstringvalue(), and releaseheaptmp().

Referenced by getsearchparams().

Here is the call graph for this function:

static boolean pushsearchparamstable void   )  [static]
 

Definition at line 404 of file shellverbs.c.

References bigstring, disablelangerror(), enablelangerror(), getsystemtablescript(), idsearchparamstable, langexpandtodotparams(), nil, and pushhashtable().

Referenced by getsearchparams(), and setsearchparams().

Here is the call graph for this function:

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

Definition at line 644 of file shellverbs.c.

References badreplacecontexterror, bigstring, tysearchparameters::bsorigfind, tysearchparameters::bsorigreplace, tysearchparameters::bsreplace, tysearchparameters::ctreplaced, disablelangerror(), doreplaceallfunc(), enablelangerror(), endcurrentsearch(), findnextfunc, findtextdialogfunc, fl, tysearchparameters::flfirsttime, tysearchparameters::flregexp, tysearchparameters::flunicase, tysearchparameters::flwholewords, tysearchparameters::flwraparound, getsearchparams(), getstringlist(), tyshellglobals::gettargetdataroutine, grabthreadglobals(), hInst, IDD_CUSTOMFIND, IDD_CUSTOMREPLACE, idwordprocessor, keyboardclearescape(), keyboardescape(), langcheckparamcount(), langerror(), langerrorlist, langfindtargetwindow(), nil, NULL, releasethreadglobals(), replaceallfunc, replacefunc, replacetextdialogfunc, resetfunc, searchparams, tyshellglobals::searchroutine, setbooleanvalue(), setlongvalue(), setsearchparams(), shellframewindow, shellglobals, shellpopglobals(), shellpushtargetglobals(), shellwindow, startnewsearch(), unimplementedverberror, v, wm_startreplace, wm_startsearch, and wpinsert().

Referenced by shellinitbuiltins().

Here is the call graph for this function:

static boolean setbooleansearchparam short  ixparam,
boolean  flvalue
[static]
 

Definition at line 391 of file shellverbs.c.

References bigstring, copystring(), hashassign(), and setbooleanvalue().

Referenced by setsearchparams().

Here is the call graph for this function:

boolean setsearchparams void   ) 
 

Definition at line 558 of file shellverbs.c.

References tysearchparameters::bsorigfind, tysearchparameters::bsorigreplace, tysearchparameters::flclosebehind, tysearchparameters::flonelevel, tysearchparameters::floneobject, tysearchparameters::flregexp, tysearchparameters::flunicase, tysearchparameters::flwholewords, tysearchparameters::flwraparound, ixcasesensitive, ixclosewindows, ixflatsearch, ixfrontwindowonly, ixreplacewith, ixsearchfor, ixwholewords, ixwraparound, pophashtable(), pushsearchparamstable(), searchparams, setbooleansearchparam(), and setstringsearchparam().

Referenced by doreplaceallfunc(), opfindverb(), and searchfunctionvalue().

Here is the call graph for this function:

static boolean setstringsearchparam short  ixparam,
bigstring  bsvalue
[static]
 

Definition at line 355 of file shellverbs.c.

References bigstring, copystring(), exemptfromtmpstack(), hashassign(), and setstringvalue().

Referenced by getsearchparams(), and setsearchparams().

Here is the call graph for this function:

static boolean shellinitbuiltins void   )  [static]
 

Definition at line 1564 of file shellverbs.c.

References editmenufunctionvalue(), filemenufunctionvalue(), ideditmenuverbs, idfilemenuverbs, idsearchverbs, loadfunctionprocessor(), and searchfunctionvalue().

Referenced by shellinitverbs().

Here is the call graph for this function:

boolean shellinitverbs void   ) 
 

Definition at line 1579 of file shellverbs.c.

References shellinitbuiltins(), and sysinitverbs().

Referenced by shellinit().

Here is the call graph for this function:

boolean shellpushtargetglobals void   ) 
 

Definition at line 595 of file shellverbs.c.

References langfindtargetwindow(), shellpushfrontrootglobals(), and shellpushglobals().

Referenced by editmenufunctionvalue(), filemenufunctionvalue(), searchfunctionvalue(), and windowfunctionvalue().

Here is the call graph for this function:

static boolean shellstyleverb hdltreenode  hparam1,
short  style,
tyvaluerecord v
[static]
 

Definition at line 281 of file shellverbs.c.

References fl, flnextparamislast, getbooleanvalue(), langcheckparamcount(), normal, setbooleanvalue(), shellglobals, shellsetselectioninfo(), shellverbsetselectioninfo(), shellwindowinfo, tyshellglobals::styleroutine, and v.

Referenced by editmenufunctionvalue().

Here is the call graph for this function:

static void shellverbsetselectioninfo  )  [static]
 

Definition at line 269 of file shellverbs.c.

References shellsetselectioninfo().

Referenced by editmenufunctionvalue(), and shellstyleverb().

Here is the call graph for this function:


Variable Documentation

WindowPtr lastwindowsearched = nil [static]
 

Definition at line 224 of file shellverbs.c.

byte* nameparams[] [static]
 

Initial value:

 {
    
    BIGSTRING ("\x09" "searchfor"),
    
    BIGSTRING ("\x0b" "replacewith"),
    
    BIGSTRING ("\x0d" "casesensitive"),
    
    BIGSTRING ("\x0a" "wholewords"),
    
    BIGSTRING ("\x0a" "wraparound"),
    
    BIGSTRING ("\x0a" "flatsearch"),
    
    BIGSTRING ("\x0f" "frontwindowonly"),
    
    BIGSTRING ("\x0c" "closewindows"),
    

    }

Definition at line 227 of file shellverbs.c.


Generated on Tue Jun 13 08:36:02 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6