iowascript.c File Reference

#include "frontier.h"
#include "standard.h"
#include <iac.h>
#include <UserTalk.h>
#include <appletdefs.h>
#include <appletmemory.h>
#include <appletprocess.h>
#include <appletstrings.h>
#include <appletfiledesktop.h>
#include "iowascript.h"

Include dependency graph for iowascript.c:

Go to the source code of this file.

Defines

#define idnetscapeurl   'NURL'
#define idnetscapejavascript   'NJVS'
#define iowaWeb
#define noAppleScript
#define idnetscape   'MOSS'

Functions

short countlangcomponents (void)
static boolean addlangcomponent (ComponentInstance instance, long idlanguage, Handle hname, boolean flrealcomponent)
static boolean addwebcomponent (long idlanguage, bigstring bsname)
static void getcomponentdetails (Component comp, ComponentDescription *details, Handle *hname)
void initlangcomponents (void)
ComponentInstance findlangcomponent (long idlanguage)
boolean getlangmenu (MenuHandle *hlangmenu)
void getlanguageid (short ixlanguage, OSType *idlanguage)
void closelangcomponents (void)
static boolean runworldwideurl (Handle hscript, bigstring errorstring)
static boolean rungraphicalurl (Handle hscript, bigstring errorstring)
boolean runlangscript (Handle hscript, Handle tablename, long idlanguage, boolean flgetreturn, bigstring errorstring, Handle *hreturns)

Variables

tylangcomponentrecord ** langcomponentarray = nil


Define Documentation

#define idnetscape   'MOSS'
 

Definition at line 53 of file iowascript.c.

Referenced by runworldwideurl().

#define idnetscapejavascript   'NJVS'
 

Definition at line 45 of file iowascript.c.

Referenced by runlangscript().

#define idnetscapeurl   'NURL'
 

Definition at line 44 of file iowascript.c.

Referenced by runlangscript().

#define iowaWeb
 

Definition at line 47 of file iowascript.c.

#define noAppleScript
 

Definition at line 49 of file iowascript.c.


Function Documentation

static boolean addlangcomponent ComponentInstance  instance,
long  idlanguage,
Handle  hname,
boolean  flrealcomponent
[static]
 

Definition at line 89 of file iowascript.c.

References countlangcomponents(), ct, tylangcomponentrecord::flrealcomponent, tylangcomponentrecord::hname, tylangcomponentrecord::idlanguage, tylangcomponentrecord::instance, langcomponentarray, longsizeof, MemError, newfilledhandle(), nil, noErr, and SetHandleSize.

Referenced by addwebcomponent(), and initlangcomponents().

Here is the call graph for this function:

static boolean addwebcomponent long  idlanguage,
bigstring  bsname
[static]
 

Definition at line 118 of file iowascript.c.

References addlangcomponent(), and newtexthandle().

Here is the call graph for this function:

void closelangcomponents void   ) 
 

Definition at line 321 of file iowascript.c.

References countlangcomponents(), disposehandle(), i, and langcomponentarray.

Referenced by iowaClose().

Here is the call graph for this function:

short countlangcomponents void   ) 
 

Definition at line 80 of file iowascript.c.

References GetHandleSize, langcomponentarray, longsizeof, and nil.

Referenced by addlangcomponent(), closelangcomponents(), findlangcomponent(), and getlangmenu().

ComponentInstance findlangcomponent long  idlanguage  ) 
 

Definition at line 210 of file iowascript.c.

References countlangcomponents(), ct, disposehandle(), tylangcomponentrecord::hname, i, tylangcomponentrecord::idlanguage, tylangcomponentrecord::instance, langcomponentarray, and nil.

Referenced by findfrontiercomponent(), getcompiledscript(), iowadisposerecord(), and runlangscript().

Here is the call graph for this function:

static void getcomponentdetails Component  comp,
ComponentDescription *  details,
Handle hname
[static]
 

Definition at line 129 of file iowascript.c.

References GetHandleSize, h, moveleft(), newclearhandle(), nil, and SetHandleSize.

Referenced by initlangcomponents().

Here is the call graph for this function:

boolean getlangmenu MenuHandle hlangmenu  ) 
 

Definition at line 284 of file iowascript.c.

References bigstring, copystring(), countlangcomponents(), equalstrings(), i, langcomponentarray, and texthandletostring().

Here is the call graph for this function:

void getlanguageid short  ixlanguage,
OSType idlanguage
 

Definition at line 315 of file iowascript.c.

void initlangcomponents void   ) 
 

Definition at line 153 of file iowascript.c.

References addlangcomponent(), clearbytes(), ct, disposehandle(), getcomponentdetails(), i, longsizeof, and nil.

Referenced by iowaInit().

Here is the call graph for this function:

static boolean rungraphicalurl Handle  hscript,
bigstring  errorstring
[static]
 

Definition at line 390 of file iowascript.c.

References setstringlength.

Referenced by runlangscript().

boolean runlangscript Handle  hscript,
Handle  tablename,
long  idlanguage,
boolean  flgetreturn,
bigstring  errorstring,
Handle hreturns
 

Definition at line 399 of file iowascript.c.

References bigstring, copydatahandle(), copystring(), tyAEDesc::dataHandle, datahandletostring(), tyAEDesc::descriptorType, disposehandle(), error, findlangcomponent(), idnetscapejavascript, idnetscapeurl, insertstring(), kOSAModeTransparentScope, langrunhandletraperror(), moveleft(), newdescwithhandle(), newtexthandle(), nil, noErr, pushathandlestart(), pushlong(), pushstring(), pushtexthandle(), rungraphicalurl(), runworldwideurl(), setstringlength, stringlength, texthandletostring(), and typeChar.

Referenced by runcardscript().

Here is the call graph for this function:

static boolean runworldwideurl Handle  hscript,
bigstring  errorstring
[static]
 

Definition at line 348 of file iowascript.c.

References assureappisrunning(), copystring(), tyIACglobals::event, fl, IACdisposeverb(), IACglobals, IACiserrorreply(), IACnewverb(), IACpushlongparam(), IACpushtextparam(), IACsendverb(), idnetscape, tyIACglobals::reply, and setstringlength.

Referenced by runlangscript().

Here is the call graph for this function:


Variable Documentation

tylangcomponentrecord** langcomponentarray = nil
 

Definition at line 57 of file iowascript.c.

Referenced by addlangcomponent(), closelangcomponents(), countlangcomponents(), findlangcomponent(), and getlangmenu().


Generated on Fri Jun 2 05:26:11 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6