tablescrap.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "dialogs.h"
#include "kb.h"
#include "scrap.h"
#include "strings.h"
#include "shell.rsrc.h"
#include "shellundo.h"
#include "lang.h"
#include "langexternal.h"
#include "op.h"
#include "opinternal.h"
#include "menueditor.h"
#include "wpengine.h"
#include "wpverbs.h"
#include "scripts.h"
#include "claybrowser.h"
#include "claybrowserstruc.h"
#include "tableinternal.h"
#include "tablestructure.h"
#include "tableverbs.h"

Include dependency graph for tablescrap.c:

Go to the source code of this file.

Data Structures

struct  tytablescrap

Typedefs

typedef tytablescrapptrtablescrap
typedef tytablescrap ** hdltablescrap

Functions

static boolean tableexpandtodotparams (bigstring bspath, hdlhashtable *htable, bigstring bsname)
static boolean tablegetscrapvalue (Handle hscrap, tyvaluerecord *val, hdlhashtable *htable, bigstring bsname)
static boolean tableexporttextscrap (const tyvaluerecord *scrapval, Handle *hexport)
static tyvaluetype langgetexternalvaluetype (const tyvaluerecord *val)
static boolean tableexportoutlinescrap (const tyvaluerecord *scrapval, Handle *hexport)
static boolean tableexportwpscrap (const tyvaluerecord *scrapval, Handle *hexport)
boolean tableexportscrapvalue (const tyvaluerecord *scrapval, tyscraptype totype, Handle *hexport, boolean *fltempscrap)
static boolean tablegetvaluescrap (Handle hscrap, tyscraptype scraptype, tyvaluerecord *val)
static boolean tableexportvaluescrap (Handle hscrap, tyscraptype totype, Handle *hexport, boolean *fltempscrap)
static void tabledisposescrap (hdltablescrap hscrap)
boolean tablescraphook (Handle hscrap)
boolean tablecopyroutine (void)
boolean tableredoclear (hdlhashnode hnode, boolean flundo)
boolean tableundoclear (hdlhashnode hnode, boolean flundo)
static boolean tableclosewindows (hdlhashnode hnode, ptrvoid refcon)
boolean tableclearroutine (void)
boolean tablecutroutine (void)
static void tablemakeuniquename (bigstring bsname, boolean *flchanged)
static boolean tableconfirmedinsert (bigstring bsname, tyvaluerecord val, boolean *flduplicate)
static boolean pastetobinary (Handle hscrap, OSType scraptype, tyvaluerecord *val)
static boolean tablepastevalue (hdlhashtable htable, bigstring bsname, tyvaluerecord val, boolean flselectname)
static boolean iseditscrap (void)
boolean tablepasteroutine (void)
boolean tabledroppasteroutine (void)


Typedef Documentation

typedef struct tytablescrap ** hdltablescrap
 

typedef struct tytablescrap * ptrtablescrap
 


Function Documentation

static boolean iseditscrap void   )  [static]
 

Definition at line 781 of file tablescrap.c.

References hashscraptype, isoutlinescrap(), shellgetscrap(), and valuecolumn.

Referenced by tablepasteroutine().

Here is the call graph for this function:

static tyvaluetype langgetexternalvaluetype const tyvaluerecord val  )  [static]
 

Definition at line 173 of file tablescrap.c.

References externalvaluetype, langexternalgettype(), novaluetype, and outlinevaluetype.

Referenced by tableexportoutlinescrap(), and tableexportwpscrap().

Here is the call graph for this function:

static boolean pastetobinary Handle  hscrap,
OSType  scraptype,
tyvaluerecord val
[static]
 

Definition at line 716 of file tablescrap.c.

References exemptfromtmpstack(), and tablegetvaluescrap().

Referenced by tablepasteroutine().

Here is the call graph for this function:

boolean tableclearroutine void   ) 
 

Definition at line 574 of file tablescrap.c.

References agentstable, bigstring, hashgetiteminfo(), hashunlink(), hnode, max, nil, pophashtable(), pushhashtable(), pushundoaction(), pushundostep(), scriptremoveagent(), tableclosewindows(), tableeditingemptycell(), tableeditleavecell(), tableeditsetglobals(), tableformatsdata, tablegetlinkedhashtable(), tableundoclear(), tablevisicursor(), undoclearstring, and wpclear().

Referenced by tablecutroutine().

Here is the call graph for this function:

static boolean tableclosewindows hdlhashnode  hnode,
ptrvoid  refcon
[static]
 

Definition at line 545 of file tablescrap.c.

References externalvaluetype, hashtablevisit(), hnode, langexternalvaltotable(), langexternalwindowopen(), nil, shellclosewindow(), and tyvaluerecord::valuetype.

Referenced by tableclearroutine().

Here is the call graph for this function:

static boolean tableconfirmedinsert bigstring  bsname,
tyvaluerecord  val,
boolean flduplicate
[static]
 

Definition at line 674 of file tablescrap.c.

References hashassign(), hashdelete(), hashsymbolexists(), replacevariabledialog(), and tablemakeuniquename().

Referenced by tablepastevalue().

Here is the call graph for this function:

boolean tablecopyroutine void   ) 
 

Definition at line 440 of file tablescrap.c.

References bigstring, disposehandle(), emptystring, fl, hashscraptype, hnode, insertinhandle(), langexternalbracketname(), langexternalgetquotedpath(), langpackvalue(), langpoperrorcallback(), langpusherrorcallback(), nil, pushchar(), pushstring(), shellsetscrap(), stringlength, tabledisposescrap(), tableeditsetglobals(), tableexportscrap(), tablegetcursorinfo(), and wpcopy().

Referenced by tablecutroutine().

Here is the call graph for this function:

boolean tablecutroutine void   ) 
 

Definition at line 627 of file tablescrap.c.

References pushundoaction(), tableclearroutine(), tablecopyroutine(), tableeditingemptycell(), tableeditleavecell(), tableeditsetglobals(), undocutstring, and wpcut().

Here is the call graph for this function:

static void tabledisposescrap hdltablescrap  hscrap  )  [static]
 

Definition at line 379 of file tablescrap.c.

References disposehandle().

Here is the call graph for this function:

boolean tabledroppasteroutine void   ) 
 

Definition at line 931 of file tablescrap.c.

References alertstring(), askdialog(), bigstring, cantpasteherestring, disposevaluerecord(), hashscraptype, insertchar(), insertstring(), langexternalbracketname(), langexternalgetquotedpath(), nameroottable, nil, pasteasstring, shellgetscrap(), tableexpandtodotparams(), tablegetscrapvalue(), tablegetstringlist(), tablepastevalue(), and zerostring.

Here is the call graph for this function:

static boolean tableexpandtodotparams bigstring  bspath,
hdlhashtable htable,
bigstring  bsname
[static]
 

Definition at line 85 of file tablescrap.c.

References langexpandtodotparams(), nil, pophashtable(), pushhashtable(), and roottable.

Referenced by tabledroppasteroutine(), and tablegetscrapvalue().

Here is the call graph for this function:

static boolean tableexportoutlinescrap const tyvaluerecord scrapval,
Handle hexport
[static]
 

Definition at line 186 of file tablescrap.c.

References copyvaluedata(), copyvaluerecord(), disposevaluerecord(), langgetexternalvaluetype(), menuvaluetype, nil, outlinevaluetype, and scriptvaluetype.

Referenced by tableexportscrapvalue().

Here is the call graph for this function:

boolean tableexportscrapvalue const tyvaluerecord scrapval,
tyscraptype  totype,
Handle hexport,
boolean fltempscrap
 

Definition at line 285 of file tablescrap.c.

References hashscraptype, menuscraptype, opscraptype, scriptscraptype, tableexportoutlinescrap(), tableexporttextscrap(), tableexportwpscrap(), textscraptype, and wpscraptype.

Referenced by tableexportscrap().

Here is the call graph for this function:

static boolean tableexporttextscrap const tyvaluerecord scrapval,
Handle hexport
[static]
 

Definition at line 127 of file tablescrap.c.

References coercetostring(), copyhandle(), copyvaluerecord(), tyvaluerecord::data, disposehandle(), disposevaluerecord(), tyvaluedata::externalvalue, externalvaluetype, fl, langexternalpacktotext(), newemptyhandle(), nil, tyvaluedata::stringvalue, and tyvaluerecord::valuetype.

Referenced by tableexportscrapvalue().

Here is the call graph for this function:

static boolean tableexportvaluescrap Handle  hscrap,
tyscraptype  totype,
Handle hexport,
boolean fltempscrap
[static]
 

Definition at line 339 of file tablescrap.c.

References coercetostring(), copyvaluerecord(), disablelangerror(), enablelangerror(), exemptfromtmpstack(), fl, shellgetscrap(), tablegetvaluescrap(), and textscraptype.

Referenced by tablescraphook().

Here is the call graph for this function:

static boolean tableexportwpscrap const tyvaluerecord scrapval,
Handle hexport
[static]
 

Definition at line 245 of file tablescrap.c.

References copyvaluedata(), copyvaluerecord(), tyvaluerecord::data, disposevaluerecord(), tyvaluedata::externalvalue, fl, langgetexternalvaluetype(), nil, wordvaluetype, tywprecord::wpbuffer, and wpverbinmemory().

Referenced by tableexportscrapvalue().

Here is the call graph for this function:

static boolean tablegetscrapvalue Handle  hscrap,
tyvaluerecord val,
hdlhashtable htable,
bigstring  bsname
[static]
 

Definition at line 98 of file tablescrap.c.

References bigstring, copyhandle(), disablelangerror(), disposehandle(), enablelangerror(), fl, h, langunpackvalue(), nil, pullfromhandle(), stringlength, and tableexpandtodotparams().

Referenced by tabledroppasteroutine(), and tablepasteroutine().

Here is the call graph for this function:

static boolean tablegetvaluescrap Handle  hscrap,
tyscraptype  scraptype,
tyvaluerecord val
[static]
 

Definition at line 318 of file tablescrap.c.

References coercevalue(), copyhandle(), langgetvaluetype(), langgoodbinarytype(), and setbinaryvalue().

Referenced by pastetobinary(), and tableexportvaluescrap().

Here is the call graph for this function:

static void tablemakeuniquename bigstring  bsname,
boolean flchanged
[static]
 

Definition at line 644 of file tablescrap.c.

References bigstring, copyofstring, copystring(), pushstring(), and tablegetstringlist().

Referenced by tableconfirmedinsert(), and tablepasteroutine().

Here is the call graph for this function:

boolean tablepasteroutine void   ) 
 

Definition at line 807 of file tablescrap.c.

References bigstring, copyhandle(), exemptfromtmpstack(), hashgettypestring(), hashscraptype, idmenuprocessor, idoutlineprocessor, idpictprocessor, idscriptprocessor, idwordprocessor, insertstring(), iseditscrap(), isemptystring, langexternalnewvalue(), menuscraptype, nil, opeditpaste(), opeditsetglobals(), opscraptype, pastedstring, pastedtextstring, pastetobinary(), pictscraptype, pophashtable(), pushhashtable(), scriptscraptype, setemptystring, setheapvalue(), shellgetscrap(), stringvaluetype, tableexiteditmode(), tablegetcursorinfo(), tablegetscrapvalue(), tablegetstringlist(), tablemakeuniquename(), tablepastevalue(), textscraptype, and wpscraptype.

Referenced by tableverbpaste().

Here is the call graph for this function:

static boolean tablepastevalue hdlhashtable  htable,
bigstring  bsname,
tyvaluerecord  val,
boolean  flselectname
[static]
 

Definition at line 731 of file tablescrap.c.

References assert, disposevaluerecord(), fl, hashlookupnode(), hnode, infinity, opeditsetselection(), opsettextmode(), pophashtable(), pushhashtable(), pushundoaction(), pushundostep(), shellpopglobals(), shellpushfrontglobals(), tableconfirmedinsert(), tableredoclear(), tablevalidate(), tablezoomtoname(), and undopastestring.

Referenced by tabledroppasteroutine(), and tablepasteroutine().

Here is the call graph for this function:

boolean tableredoclear hdlhashnode  hnode,
boolean  flundo
 

Definition at line 487 of file tablescrap.c.

References agentstable, bigstring, gethashkey, hashunlink(), hnode, pophashtable(), pushhashtable(), pushundostep(), scriptremoveagent(), tableexiteditmode(), tablegetlinkedhashtable(), tablemovetonode(), and tableundoclear().

Referenced by tablemakenewvalue(), tablepastevalue(), and tableundoclear().

Here is the call graph for this function:

boolean tablescraphook Handle  hscrap  ) 
 

Definition at line 387 of file tablescrap.c.

References browsersetscrap(), charvaluetype, ctvaluetypes, disposehandle(), tykeystrokerecord::floptionkey, getscrap(), hashscraptype, keyboardstatus, langgettypeid(), nil, opunpackoutline(), shellsetscrap(), stringvaluetype, tableexportvaluescrap(), and textscraptype.

Referenced by tablestart().

Here is the call graph for this function:

boolean tableundoclear hdlhashnode  hnode,
boolean  flundo
 

Definition at line 517 of file tablescrap.c.

References agentstable, disposehashnode(), hashinsertnode(), hnode, pushundostep(), scriptinstallagent(), tableexiteditmode(), tablegetlinkedhashtable(), tablemovetonode(), tableoverridesort(), tableredoclear(), and tablerestoresort().

Referenced by tableclearroutine(), and tableredoclear().

Here is the call graph for this function:


Generated on Wed Jun 14 00:34:14 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6