tableformats.c File Reference

#include "frontier.h"
#include "standard.h"
#include "bitmaps.h"
#include "cursor.h"
#include "font.h"
#include "kb.h"
#include "memory.h"
#include "ops.h"
#include "quickdraw.h"
#include "resources.h"
#include "smallicon.h"
#include "opinternal.h"
#include "tabledisplay.h"
#include "tableformats.h"
#include "tableinternal.h"
#include "claybrowserstruc.h"
#include "claybrowserexpand.h"
#include "claycallbacks.h"
#include "claybrowservalidate.h"
#include "timedate.h"
#include "byteorder.h"

Include dependency graph for tableformats.c:

Go to the source code of this file.

Defines

#define mincolwidth   50
#define maxcolwidth   1000
#define ctformatstack   5
#define sizepreload   (sizeof (info.versionnumber) + sizeof (info.recordsize))

Functions

void tablegettitlestring (short col, bigstring bstitle)
boolean tablepushformats (hdltableformats hformats)
boolean tablepopformats (void)
void tabledirty (void)
short tablegetcolwidth (short col)
static short tablegetmaxwidth (short col)
static short tablelimitcolwidth (short width)
boolean tablesetcolwidth (short col, short width, boolean fllimit)
short tablesumcolwidths (short startcol, short ctcols)
short tableavailwidth (void)
short tabletotalcolwidths (void)
boolean tablerecalccolwidths (boolean flmustrecalc)
static boolean tablepostfontchange (void)
static boolean tableicon2click (hdlheadrecord hnode)
static void setuptableoutlinecallbacks (hdloutlinerecord ho)
static boolean duplicateexpansion (hdlheadrecord, hdlheadrecord)
static boolean duplicateexpansionvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean initializetableoutline (hdloutlinerecord ho, hdlhashtable ht)
static boolean validatetableoutline (hdloutlinerecord ho, hdltableformats hf, hdlhashtable ht)
boolean newtableformats (hdltableformats *hformats)
void disposetableformats (hdltableformats hformats)
static boolean tablenewoutlinerecord (hdltableformats hf, hdlhashtable ht)
boolean tableprepareoutline (hdltableformats hf)
void tabledisposeoutline (hdltableformats hf)
boolean tablenewformatsrecord (hdlhashtable ht, Rect tablerect, hdltableformats *hformats)
static boolean notexpandedvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean tableoutlineneedssaving (void)
boolean tablepackformats (Handle *hpacked)
static boolean tableunpackversion1formats (Handle hpacked, hdltableformats hformats)
boolean tableunpackformats (Handle hpacked, hdltableformats hformats)

Variables

short topformatstack = 0
hdltableformats formatstack [ctformatstack]


Define Documentation

#define ctformatstack   5
 

Definition at line 55 of file tableformats.c.

Referenced by tablepushformats().

#define maxcolwidth   1000
 

Definition at line 53 of file tableformats.c.

#define mincolwidth   50
 

Definition at line 52 of file tableformats.c.

#define sizepreload   (sizeof (info.versionnumber) + sizeof (info.recordsize))
 

Referenced by tableunpackformats().


Function Documentation

void disposetableformats hdltableformats  hformats  ) 
 

Definition at line 662 of file tableformats.c.

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

Referenced by tableunpacktable().

Here is the call graph for this function:

static boolean duplicateexpansion hdlheadrecord  ,
hdlheadrecord 
[static]
 

Definition at line 499 of file tableformats.c.

References duplicateexpansionvisit(), opexpand(), and oplistvisit().

Referenced by duplicateexpansionvisit().

Here is the call graph for this function:

static boolean duplicateexpansionvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 481 of file tableformats.c.

References bigstring, duplicateexpansion(), hnode, opfindhead(), opgetheadstring(), and opsubheadsexpanded().

Referenced by duplicateexpansion(), and initializetableoutline().

Here is the call graph for this function:

static boolean initializetableoutline hdloutlinerecord  ho,
hdlhashtable  ht
[static]
 

Definition at line 507 of file tableformats.c.

References browserexpandvisit(), browserlineinserted(), clayfolderloop(), tyexpandinfo::ctlevels, databasedata, duplicateexpansionvisit(), fl, flatdown, tyexpandinfo::flsettmpbits, tyexpandinfo::flsortnodes, tyheadrecord::headlinkdown, tyexpandinfo::hparent, infinity, initbeachball(), nil, opchasedown(), opdirtymeasurements(), opdisabledisplay(), opdisposestructure(), opeditsetselection(), openabledisplay(), opendinternalchange(), opgetnodeline(), oppopoutline(), oppushoutline(), oprepeatedbump(), opsetctexpanded(), opsetdisplaydefaults(), opstartinternalchange(), opunlink(), opvalidate(), outlinedata, right, setemptystring, shellfinddatawindow(), and shellgetdatabase().

Referenced by tablenewoutlinerecord(), and validatetableoutline().

Here is the call graph for this function:

boolean newtableformats hdltableformats hformats  ) 
 

Definition at line 634 of file tableformats.c.

References tytableformats::ctcols, maxtablecols, and newclearhandle().

Referenced by browsernewwindow(), tablenewformatsrecord(), and tableunpacktable().

Here is the call graph for this function:

static boolean notexpandedvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 832 of file tableformats.c.

References hnode, and opsubheadsexpanded().

Referenced by tableoutlineneedssaving().

Here is the call graph for this function:

static void setuptableoutlinecallbacks hdloutlinerecord  ho  )  [static]
 

Definition at line 354 of file tableformats.c.

References browsercanexpand(), browsercopyrefcon(), browserdragcopy(), browsergetscrap(), browserlinedeleted(), browserlineinserted(), browserpostcollapse(), browserpredrag(), browserpreexpand(), browserreleaserefcon(), browsersetscrap(), browsertextchanged(), browsertextualizerefcon(), browservalidatecopy(), browservalidatedrag(), browservalidatepaste(), tableadjustcursor(), tableafterprintpage(), tablebeforeprintpage(), tabledrawline(), tabledrawnodeicon(), tablegetedittextrect(), tablegeticonrect(), tablegetlineheight(), tablegetlinewidth(), tablegettextrect(), tablegetwpedittext(), tableicon2click(), tablemouseinline(), tablepostdrawline(), tablepostfontchange(), tablepredrawline(), tablepushnodestyle(), tablesetwpedittext(), and truenoop().

Referenced by tablenewoutlinerecord(), and tableunpackformats().

Here is the call graph for this function:

short tableavailwidth void   ) 
 

Definition at line 189 of file tableformats.c.

References r, and tableformatsdata.

Referenced by tableadjustcolwidth(), tableadjustcolwidthcallback(), and tablerecalccolwidths().

void tabledirty void   ) 
 

Definition at line 113 of file tableformats.c.

References tytableformats::houtline, tableformatsdata, tableformatswindow, tyoutlinerecord::timelastsave, timenow(), and windowsetchanges().

Here is the call graph for this function:

void tabledisposeoutline hdltableformats  hf  ) 
 

Definition at line 728 of file tableformats.c.

References browserdeletedummyvalues(), nil, opdisposeoutline(), and opgetnodeline().

Referenced by tableverbclose().

Here is the call graph for this function:

short tablegetcolwidth short  col  ) 
 

Definition at line 131 of file tableformats.c.

Referenced by tableadjustcolwidth(), tableadjustcolwidthcallback(), tablefindcolumnguide(), tablerecalccolwidths(), and tablesetcolumnbounds().

static short tablegetmaxwidth short  col  )  [static]
 

Definition at line 137 of file tableformats.c.

Referenced by tablerecalccolwidths().

void tablegettitlestring short  col,
bigstring  bstitle
 

Definition at line 63 of file tableformats.c.

References kindcolumn, namecolumn, nametitlestring, questionmarksstring, and tablegetstringlist().

Referenced by tabledrawtitlecallback(), tablefunctionvalue(), tabletitleclick(), and tabletitleclickcallback().

Here is the call graph for this function:

static boolean tableicon2click hdlheadrecord  hnode  )  [static]
 

Definition at line 345 of file tableformats.c.

References tykeystrokerecord::flcmdkey, hnode, keyboardstatus, and tablezoomfromhead().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static short tablelimitcolwidth short  width  )  [static]
 

Definition at line 143 of file tableformats.c.

References max, maxcolwidth, min, and mincolwidth.

Referenced by tablerecalccolwidths(), and tablesetcolwidth().

boolean tablenewformatsrecord hdlhashtable  ht,
Rect  tablerect,
hdltableformats hformats
 

Definition at line 777 of file tableformats.c.

References tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, tyconfigrecord::defaultstyle, tyconfigrecord::defaultwindowrect, idtableconfig, langexternalgetconfig(), newtableformats(), nil, tableformatsdata, tablelinkformats(), and tablevaluetype.

Referenced by tableverbsetupdisplay().

Here is the call graph for this function:

static boolean tablenewoutlinerecord hdltableformats  hf,
hdlhashtable  ht
[static]
 

Definition at line 671 of file tableformats.c.

References disposehandle(), initializetableoutline(), long, newoutlinerecord(), opdisposeoutline(), outlineistable, and setuptableoutlinecallbacks().

Referenced by tableprepareoutline().

Here is the call graph for this function:

boolean tableoutlineneedssaving void   ) 
 

Definition at line 839 of file tableformats.c.

References nil, notexpandedvisit(), opsummitvisit(), and outlinedata.

Referenced by tablepackformats(), and tableverbclose().

Here is the call graph for this function:

boolean tablepackformats Handle hpacked  ) 
 

Definition at line 848 of file tableformats.c.

References clearbytes(), i, info, maxtablecols, outlinedata, tableformatsdata, and tableoutlineneedssaving().

Referenced by tablepacktable().

Here is the call graph for this function:

boolean tablepopformats void   ) 
 

Definition at line 96 of file tableformats.c.

References BIGSTRING, formatstack, idformatstackempty, oppopoutline(), shellinternalerror, tableformatsdata, and topformatstack.

Referenced by tablepacktable(), and tablesetextrainfo().

Here is the call graph for this function:

static boolean tablepostfontchange void   )  [static]
 

Definition at line 319 of file tableformats.c.

References claybrowserinitdraw(), isclaydisplay, nil, oppostfontchange(), tableformatsdata, and tablegetlinkedhashtable().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tableprepareoutline hdltableformats  hf  ) 
 

Definition at line 716 of file tableformats.c.

References nil, tablenewoutlinerecord(), and validatetableoutline().

Referenced by tableverbsetupdisplay().

Here is the call graph for this function:

boolean tablepushformats hdltableformats  hformats  ) 
 

Definition at line 72 of file tableformats.c.

References BIGSTRING, ctformatstack, formatstack, idformatstackfull, oppushoutline(), shellinternalerror, tableformatsdata, and topformatstack.

Referenced by tablepacktable(), and tablesetextrainfo().

Here is the call graph for this function:

boolean tablerecalccolwidths boolean  flmustrecalc  ) 
 

Definition at line 207 of file tableformats.c.

References assert, claybrowserinitdraw(), extra, i, isclaydisplay, max, min, mincolwidth, sgn, tableavailwidth(), tableformatsdata, tablegetcolwidth(), tablegetmaxwidth(), tablegetoutlinesize(), tablelimitcolwidth(), tablesetcolwidth(), and tabletotalcolwidths().

Referenced by tablebeforeprintpage(), tableprint(), tableresetformatsrects(), and tableverbresize().

Here is the call graph for this function:

boolean tablesetcolwidth short  col,
short  width,
boolean  fllimit
 

Definition at line 160 of file tableformats.c.

References tablelimitcolwidth().

Referenced by tableadjustcolwidth(), tableadjustcolwidthcallback(), and tablerecalccolwidths().

Here is the call graph for this function:

short tablesumcolwidths short  startcol,
short  ctcols
 

Definition at line 174 of file tableformats.c.

References tableformatsdata.

Referenced by tableadjustcolwidth(), tableadjustcolwidthcallback(), tablesetcolumnbounds(), and tabletotalcolwidths().

short tabletotalcolwidths void   ) 
 

Definition at line 201 of file tableformats.c.

References tablesumcolwidths().

Referenced by tablegetlinewidth(), and tablerecalccolwidths().

Here is the call graph for this function:

boolean tableunpackformats Handle  hpacked,
hdltableformats  hformats
 

Definition at line 1014 of file tableformats.c.

References BIGSTRING, config, tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, diskgetfontnum(), diskwordstomemlong, fl, i, idbadtableformatsversion, idtableconfig, info, isemptystring, langexternalgetconfig(), loadfromhandle(), maxtablecols, min, nil, opunpack(), setuptableoutlinecallbacks(), shellinternalerror, sizepreload, tableunpackversion1formats(), and tablevaluetype.

Referenced by tableunpacktable().

Here is the call graph for this function:

static boolean tableunpackversion1formats Handle  hpacked,
hdltableformats  hformats
[static]
 

Definition at line 937 of file tableformats.c.

References BIGSTRING, diskgetfontnum(), diskrecttorect(), tytableformats::htable, iderrorloadingformats, info, loadfromhandle(), max, maxtablecols, shellinternalerror, and sizeof().

Referenced by tableunpackformats().

Here is the call graph for this function:

static boolean validatetableoutline hdloutlinerecord  ho,
hdltableformats  hf,
hdlhashtable  ht
[static]
 

Definition at line 621 of file tableformats.c.

References initializetableoutline(), long, and tyoutlinerecord::outlinerefcon.

Referenced by tableprepareoutline().

Here is the call graph for this function:


Variable Documentation

hdltableformats formatstack[ctformatstack]
 

Definition at line 59 of file tableformats.c.

Referenced by tablepopformats(), and tablepushformats().

short topformatstack = 0
 

Definition at line 57 of file tableformats.c.

Referenced by tablepopformats(), and tablepushformats().


Generated on Tue Jun 13 19:34:35 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6