tableinternal.h

Go to the documentation of this file.
00001 
00002 /*  $Id: tableinternal.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define tableinternalinclude
00029 
00030 
00031 #ifndef langexternalinclude
00032 
00033     #include "langexternal.h"
00034 
00035 #endif
00036 
00037 #ifndef tableformatsinclude
00038 
00039     #include "tableformats.h"
00040 
00041 #endif
00042 
00043 #ifndef tableeditinclude
00044 
00045 //  #include "tableedit.h"
00046 
00047 #endif
00048 
00049 #ifndef dbinclude
00050 
00051     #include "db.h"
00052 
00053 #endif
00054 
00055 
00056 #define sortbyname 0 /*values for "sortorder"*/
00057 #define sortbyvalue 1
00058 #define sortbykind 2
00059 
00060 
00061 #define tablestringlist 165
00062 #define systemtabletypestring 1
00063 #define tabletypestring 2
00064 #define tablesizestring 3
00065 #define copyofstring 5
00066 #define pastedtextstring 6
00067 #define pastedstring 7
00068 #define pasteasstring 8
00069 #define questionmarksstring 9
00070 #define nametitlestring 10
00071 #define valuetitlestring 11
00072 #define kindtitlestring 12
00073 #define xmltypestring 13
00074 
00075 #define tableerrorlist 265
00076 #define notableerror 1
00077 #define internalerror 2
00078 #define namenottableerror 3
00079 
00080 extern short tableverberrornum; /*selects an error message from a low-level routine*/
00081 
00082 
00083 #define namecolumn 0 /*hash key*/
00084 
00085 #define valuecolumn 1 /*value data*/
00086 
00087 #define kindcolumn 2 /*value type*/
00088 
00089 
00090 #if langexternalfind_optimization
00091 
00092     typedef tyexternalvariable tytablevariable, *ptrtablevariable, **hdltablevariable;
00093 
00094 #else
00095     
00096 typedef struct tytablevariable {
00097     
00098     unsigned short id; /*tyexternalid: managed by langexternal.c*/
00099     
00100     unsigned short flinmemory: 1; /*if true, variabledata is an hdlhashtable, else a dbaddress*/
00101     
00102     unsigned short flmayaffectdisplay: 1; /*not in memory, but being displayed in a table window*/
00103     
00104     unsigned short flsystemtable: 1; /*was it created by the system, or by a user script?*/
00105     
00106     #ifdef xmlfeatures
00107         unsigned short flxml: 1; /*is it an xml table?*/
00108     #endif
00109 
00110     long variabledata; /*either a hdlhashtable or a dbaddress*/
00111     
00112     hdldatabaserecord hdatabase; // 5.0a18 dmb
00113 
00114     dbaddress oldaddress; /*last place this table was stored in db*/
00115     } tytablevariable, *ptrtablevariable, **hdltablevariable;
00116 
00117 #endif
00118 
00119 
00120 #define fixedctcols maxtablecols /*symbol tables all have this number of columns*/
00121 
00122 #define outlinetopinset 3
00123 #define outlinebottominset 0
00124 #define outlineleftinset 3
00125 #define outlinerightinset 0
00126 
00127 typedef boolean (*tyfindvariablecallback) (hdlhashtable, hdlhashnode);
00128 
00129 
00130 /*prototypes*/
00131 
00132 extern void tablegettitlestring (short, bigstring); /*tablecallbacks.c*/
00133 
00134 
00135 extern void tableoverridesort (hdlhashnode); /*tablecompare.c*/
00136 
00137 extern void tablerestoresort (void);
00138 
00139 
00140 extern boolean tableeditsetglobals (void); /*tableedit.c*/
00141 
00142 extern boolean tableeditgetundoglobals (long *);
00143 
00144 extern boolean tableeditsetundoglobals (long, boolean);
00145 
00146 extern boolean tablecelliseditable (hdlheadrecord, short);
00147 
00148 extern boolean tablesetwpedittext (hdlheadrecord);
00149 
00150 extern boolean tablegetwpedittext (hdlheadrecord, boolean);
00151 
00152 
00153 extern boolean tableverbsearch (void); /*tablefind.c*/
00154 
00155 
00156 // extern boolean tablemakenewvalue (void); /*tablenewvalue.c*/
00157 
00158 
00159 extern boolean tablesetdebugglobals (hdlhashtable, hdlhashnode); /*tableops.c*/
00160 
00161 extern hdlhashtable tablegetlinkedhashtable (void);
00162 
00163 extern hdltablevariable tablegetlinkedtablevariable (void);
00164 
00165 extern hdltablevariable tablegetlinkedtablevariable (void);
00166 
00167 extern boolean tablegetiteminfo (hdlheadrecord, hdlhashtable *, bigstring, tyvaluerecord *, hdlhashnode *);
00168 
00169 extern boolean tablegetcursorinfo (hdlhashtable *, bigstring, tyvaluerecord *, hdlhashnode *);
00170 
00171 extern void tablelinkformats (hdlhashtable, hdltableformats);
00172 
00173 extern boolean istablevariable (hdlexternalvariable);
00174 
00175 extern boolean gettablevariable (tyvaluerecord, hdltablevariable *, short *);
00176 
00177 extern boolean newtablevariable (boolean, long, hdltablevariable *, boolean);
00178 
00179 extern boolean tablenewtablevalue (hdlhashtable *, tyvaluerecord *);
00180 
00181 extern boolean tablefinddatawindow (hdlhashtable, hdlwindowinfo *);
00182 
00183 extern boolean tabledisposetable (hdlhashtable, boolean);
00184 
00185 extern boolean tablesortedinversesearch (hdlhashtable, langsortedinversesearchcallback, ptrvoid);
00186 
00187 extern boolean tablecheckwindowrect (hdlhashtable);
00188 
00189 extern boolean findvariablesearch (hdlhashtable, hdlexternalvariable, boolean, hdlhashtable *, bigstring, tyfindvariablecallback);
00190 
00191 extern boolean tablenosubsdirty (hdlhashtable);
00192 
00193 extern boolean tablepreflightsubsdirtyflag (hdlexternalvariable); /*6.2a15 AR*/
00194 
00195 extern boolean tableexiteditmode (void);
00196 
00197 extern boolean tablevisicursor (void);
00198 
00199 extern boolean tablemovetonode (hdlhashnode);
00200 
00201 extern boolean tablebringtofront (hdlhashtable);
00202 
00203 extern boolean tableresort (hdlhashtable, hdlhashnode);
00204 
00205 extern boolean tablegetsortorder (hdlhashtable, short *);
00206 
00207 extern boolean tablesetsortorder (hdlhashtable, short);
00208 
00209 extern boolean tablegetcursorpath (bigstring);
00210 
00211 extern boolean tablepushcontext (hdlhashtable, tyvaluetype);
00212 
00213 extern boolean tablepopcontext (hdlhashtable, tyvaluetype);
00214 
00215 extern boolean tablegetstringlist (short, bigstring);
00216 
00217 
00218 extern boolean tablepacktable (hdlhashtable, boolean, Handle *, boolean *); /*tablepack.c*/
00219 
00220 extern boolean tableunpacktable (Handle, boolean, hdlhashtable *);
00221 
00222 
00223 extern boolean tablekindpopuphit (Point); /*tablepopup.c*/
00224 
00225 extern void tableupdatekindpopup (void);
00226 
00227 extern boolean tablesortpopuphit (Point);
00228 
00229 extern void tableupdatesortpopup (void);
00230 
00231 extern boolean tablesetitemname (hdlhashtable, bigstring, hdlheadrecord, boolean); /*6.2b16 AR: hdlheadrecord instead of bigstring*/
00232 
00233 extern boolean tablepopupkinddialog (void);
00234 
00235 
00236 extern boolean tablesetprintinfo (void); /*tableprint.c*/
00237 
00238 extern boolean tableprint (short);
00239 
00240 
00241 extern boolean tablecursoriszoomable (void); /*tablerunbutton.c*/
00242 
00243 extern boolean tablecheckzoombutton (void);
00244 
00245 extern void tabledrawzoombutton (boolean);
00246 
00247 extern boolean tablezoombuttonhit (void);
00248 
00249 extern boolean tablecursorisrunnable (void);
00250 
00251 extern boolean tableruncursor (void);
00252 
00253 
00254 extern boolean tablescraphook (Handle); /*tablescrap.c*/
00255 
00256 extern boolean tableexportscrapvalue (const tyvaluerecord *, tyscraptype, Handle *, boolean *);
00257 
00258 extern boolean tablecutroutine (void);
00259 
00260 extern boolean tablecopyroutine (void);
00261 
00262 extern boolean tablepasteroutine (void);
00263 
00264 extern boolean tableclearroutine (void);
00265 
00266 extern boolean tableundoclear (hdlhashnode, boolean);
00267 
00268 extern boolean tableredoclear (hdlhashnode, boolean);
00269 
00270 
00271 extern boolean tablenewtable (hdltablevariable *, hdlhashtable *); /*tablestructure.c*/
00272 
00273 
00274 extern boolean tabledive (void); /*tableexternal.c*/
00275 
00276 extern boolean tablesurface (void);
00277 
00278 extern boolean tablezoomfromhead (hdlheadrecord);
00279 
00280 extern boolean tablesymbolsresorted (hdlhashtable);
00281 
00282 
00283 extern boolean tablebeforeprintpage (void); /*tablewindow.c*/
00284 
00285 extern boolean tableafterprintpage (void);

Generated on Wed May 31 18:20:02 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6