opxml.c File Reference

#include "frontier.h"
#include "standard.h"
#include "op.h"
#include "opinternal.h"
#include "opxml.h"
#include "tableinternal.h"
#include "langxml.h"
#include "strings.h"
#include "lang.h"
#include "langinternal.h"
#include "tablestructure.h"
#include "tableverbs.h"
#include "ops.h"

Include dependency graph for opxml.c:

Go to the source code of this file.

Defines

#define STR_quot   (BIGSTRING ("\x06" """))
#define STR_quot_replace   (BIGSTRING ("\x01" "\""))
#define STR_lt   (BIGSTRING ("\x04" "<"))
#define STR_lt_replace   (BIGSTRING ("\x01" "<"))
#define STR_gt   (BIGSTRING ("\x04" "&gt;"))
#define STR_gt_replace   (BIGSTRING ("\x01" ">"))
#define STR_amp   (BIGSTRING ("\x05" "&amp;"))
#define STR_amp_replace   (BIGSTRING ("\x01" "&"))
#define STR_attstablename   (BIGSTRING ("\x05" "/atts"))
#define STR_textitemname   (BIGSTRING ("\x04" "text"))
#define STR_windowtop   (BIGSTRING ("\x09" "windowTop"))
#define STR_windowleft   (BIGSTRING ("\x0a" "windowLeft"))
#define STR_windowbottom   (BIGSTRING ("\x0c" "windowBottom"))
#define STR_windowright   (BIGSTRING ("\x0b" "windowRight"))
#define STR_title   (BIGSTRING ("\x05" "title"))
#define STR_datecreated   (BIGSTRING ("\x0b" "dateCreated"))
#define STR_datemodified   (BIGSTRING ("\x0c" "dateModified"))
#define STR_ownername   (BIGSTRING ("\x09" "ownerName"))
#define STR_owneremail   (BIGSTRING ("\x0a" "ownerEmail"))
#define STR_expansionstate   (BIGSTRING ("\x0e" "expansionState"))
#define STR_vertscrollstate   (BIGSTRING ("\x0f" "vertScrollState"))
#define STR_outlinedocument   (BIGSTRING ("\x0f" "outlineDocument"))
#define STR_opmldocument   (BIGSTRING ("\x04" "opml"))
#define STR_head   (BIGSTRING ("\x04" "head"))
#define STR_openhead   (BIGSTRING ("\x06" "<head>"))
#define STR_closehead   (BIGSTRING ("\x07" "</head>"))
#define STR_body   (BIGSTRING ("\x04" "body"))
#define STR_xmlheader   (BIGSTRING ("\x2b" "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"))
#define STR_docheader   (BIGSTRING ("\x14" "<opml version=\"1.1\">"))
#define STR_closedoc   (BIGSTRING ("\x07" "</opml>"))
#define STR_userprefs   (BIGSTRING ("\x0a" "user.prefs"))
#define STR_name   (BIGSTRING ("\x04" "name"))
#define STR_email   (BIGSTRING ("\x0b" "mailaddress"))
#define STR_outlinetag   (BIGSTRING ("\x07" "outline"))
#define STR_closeoutline   (BIGSTRING ("\x0a" "</outline>"))
#define STR_openbody   (BIGSTRING ("\x06" "<body>"))
#define STR_closebody   (BIGSTRING ("\x07" "</body>"))
#define STR_openoutlinetext   (BIGSTRING ("\x0f" "<outline text=\""))
#define STR_space   (BIGSTRING ("\x01" " "))
#define STR_equalsquotes   (BIGSTRING ("\x02" "=\""))
#define STR_iscomment   (BIGSTRING ("\x09" "isComment"))
#define STR_isbreakpoint   (BIGSTRING ("\x0c" "isBreakpoint"))
#define STR_booleantrue   (BIGSTRING ("\x04" "true"))
#define STR_xstruct   (BIGSTRING ("\x07" "xstruct"))
#define STR_version   (BIGSTRING ("\x07" "version"))
#define STR_cloud   (BIGSTRING ("\x05" "cloud"))
#define STR_opencloud   (BIGSTRING ("\x06" "<cloud"))
#define STR_domain   (BIGSTRING ("\x06" "domain"))
#define STR_port   (BIGSTRING ("\x04" "port"))
#define STR_path   (BIGSTRING ("\x04" "path"))
#define STR_regProcedure   (BIGSTRING ("\x11" "registerProcedure"))
#define STR_protocol   (BIGSTRING ("\x08" "protocol"))
#define STR_legalprotocols   (BIGSTRING ("\x16" "xml-rpc|soap|http-post"))
#define CH_legaldelim   ('|')
#define STR_errornotopml   (BIGSTRING ("\x41" "Can't convert to an outline because this is not an OPML document."))
#define STR_errornohead   (BIGSTRING ("\x42" "Can't convert to an outline because the <head> section is missing."))
#define STR_errornobody   (BIGSTRING ("\x4b" "Can't convert to an outline because the <body> section is missing or empty."))
#define STR_errornooutlines   (BIGSTRING ("\x54" "Can't convert to an outline because the <body> section contains no outline elements."))

Functions

static boolean opxmltooutlinevisit (hdlhashtable ht, short ixlevel, bigstring bsname, boolean flfirstline)
static boolean opxmlgetheadlinetextfromatts (hdlhashtable ht, Handle htext)
static boolean opxmlsetwindowatts (hdlhashtable ht, hdloutlinerecord ho, hdlhashtable hto, bigstring bso, tyvaluerecord vo)
static boolean opxmlsetwindowpositionandsize (hdlhashtable ht, hdlwindowinfo hinfo)
static boolean opxmlfindtableitem (hdlhashtable ht, bigstring bsname, hdlhashtable *htfound)
static boolean opxmlgetonelongvalue (hdlhashtable ht, bigstring bsname, long *v)
static boolean opxmlencodetext (Handle htext)
static boolean opxmlpushstringline (Handle htext, bigstring bs, short indentlevel)
static boolean opxmlbuildhead (Handle htext, hdloutlinerecord ho, Handle hname, Handle hemail, short indentlevel, hdlwindowinfo hinfo, hdlhashtable hcloud)
static boolean opxmlpushhandleline (Handle htext, Handle h, short indentlevel)
static boolean opxmlgetwindowexpansionstate (hdloutlinerecord ho, Handle *hstate)
static boolean opxmlbuildbody (hdloutlinerecord ho, Handle htext, short indentlevel)
static boolean opxmlensureopenwindow (hdloutlinerecord ho, hdlhashtable hto, bigstring bso, tyvaluerecord vo, hdlwindowinfo *hinfo, boolean *flwasopen)
static boolean opxmlpushindents (Handle htext, short indentlevel)
static boolean opxmlheadexists (hdlhashtable ht)
static boolean opxmlrecursivelyvisit (hdlheadrecord h, short lev, opvisitcallback visit, ptrvoid refcon)
static boolean opxmlvisitnondynamicnodes (opvisitcallback visit, ptrvoid refcon)
static boolean opxmlgetcloudatts (hdlhashtable hhead, hdlhashtable hcloudspec)
static boolean opxmlpushoneattribute (Handle htext, bigstring bsname, Handle hvalue)
static boolean opxmlgetattribute (hdlhashtable ht, bigstring bsname, tyvaluetype type, tyvaluerecord *val)
boolean opoutlinetoxml (hdloutlinerecord ho, Handle hname, Handle hemail, Handle *htext, hdlhashtable hto, bigstring bso, tyvaluerecord vo, hdlhashtable hcloud)
boolean opxmltooutline (Handle htext, hdloutlinerecord ho, boolean flnewoutline, hdlhashtable hto, bigstring bso, tyvaluerecord vo, hdlhashtable hcloud)
static boolean opxmlgetwindowscrollstate (hdloutlinerecord ho, long *ix)
static boolean opxmlbuildtaggedstring (bigstring bstag, Handle hvalue, Handle hdest)
static boolean opxmlpushonetag (bigstring bstag, Handle hvalue, short indentlevel, Handle htext)
static boolean opxmlpushonetaglong (bigstring bstag, long v, short indentlevel, Handle htext)
static boolean teststringvalue (const tyvaluerecord *val, bigstring legalvalues)
static boolean opxmlpushcloudattribute (Handle htag, hdlhashtable hcloud, bigstring bsatt, bigstring legalvalues)
static boolean opxmlpushcloudtag (hdlhashtable hcloud, short indentlevel, Handle htext)
static boolean opxmlpushstringindented (bigstring bs, Handle htext, short indentlevel)
static boolean opxmlpushoutlinetext (Handle headlinetext, Handle htext, short indentlevel)
static boolean opxmlpushclosingoutlinetags (Handle htext, short currlevel, short destlevel)
static boolean opxmlpushattributes (hdlheadrecord hnode, Handle htext, short indentlevel)
static boolean opxmlbodyvisit (hdlheadrecord hnode, ptrvoid htext)
static boolean opxmldecodetext (Handle htext)
static boolean opxmlgetonevalue (hdlhashtable ht, bigstring bsname, Handle htext)
static boolean opxmlgetoneshortvalue (hdlhashtable ht, bigstring bsname, short *v)
static boolean opxmlsetwindowtitle (hdlhashtable ht, hdlwindowinfo hinfo)
static boolean opxmlsetwindowexpansionstate (hdlhashtable ht, hdlwindowinfo hinfo)
static boolean opxmlsetwindowverticalscrollstate (hdlhashtable ht, hdlwindowinfo hinfo)
static boolean opxmlpullcloudattribute (hdlhashtable ht, bigstring bsatt, tyvaluetype type, bigstring legalvalues, hdlhashtable hatts)
static boolean opxmldeleteitemfromatts (hdlhashtable htatts, bigstring bsitemtodelete)
static boolean opxmldecodeattstablevalues (hdlhashtable ht)
static boolean opxmlsetrefcon (hdlhashtable ht)
static boolean opxmlsetcommentandbreakpoint (hdlhashtable ht)
boolean opsetheadtext (hdlheadrecord hnode, Handle hstring)


Define Documentation

#define CH_legaldelim   ('|')
 

Definition at line 106 of file opxml.c.

Referenced by teststringvalue().

#define STR_amp   (BIGSTRING ("\x05" "&amp;"))
 

Definition at line 58 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_amp_replace   (BIGSTRING ("\x01" "&"))
 

Definition at line 59 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_attstablename   (BIGSTRING ("\x05" "/atts"))
 

Definition at line 60 of file opxml.c.

Referenced by opxmlsetcommentandbreakpoint(), and opxmlsetrefcon().

#define STR_body   (BIGSTRING ("\x04" "body"))
 

Definition at line 78 of file opxml.c.

Referenced by opxmltooutline().

#define STR_booleantrue   (BIGSTRING ("\x04" "true"))
 

Definition at line 94 of file opxml.c.

Referenced by opxmlpushattributes(), and opxmlsetcommentandbreakpoint().

#define STR_closebody   (BIGSTRING ("\x07" "</body>"))
 

Definition at line 88 of file opxml.c.

Referenced by opxmlbuildbody().

#define STR_closedoc   (BIGSTRING ("\x07" "</opml>"))
 

Definition at line 81 of file opxml.c.

Referenced by opoutlinetoxml().

#define STR_closehead   (BIGSTRING ("\x07" "</head>"))
 

Definition at line 77 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_closeoutline   (BIGSTRING ("\x0a" "</outline>"))
 

Definition at line 86 of file opxml.c.

Referenced by opxmlpushclosingoutlinetags().

#define STR_cloud   (BIGSTRING ("\x05" "cloud"))
 

Definition at line 98 of file opxml.c.

Referenced by opxmlgetcloudatts().

#define STR_datecreated   (BIGSTRING ("\x0b" "dateCreated"))
 

Definition at line 67 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_datemodified   (BIGSTRING ("\x0c" "dateModified"))
 

Definition at line 68 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_docheader   (BIGSTRING ("\x14" "<opml version=\"1.1\">"))
 

Definition at line 80 of file opxml.c.

Referenced by opoutlinetoxml().

#define STR_domain   (BIGSTRING ("\x06" "domain"))
 

Definition at line 100 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_email   (BIGSTRING ("\x0b" "mailaddress"))
 

Definition at line 84 of file opxml.c.

#define STR_equalsquotes   (BIGSTRING ("\x02" "=\""))
 

Definition at line 91 of file opxml.c.

Referenced by opxmlpushoneattribute().

#define STR_errornobody   (BIGSTRING ("\x4b" "Can't convert to an outline because the <body> section is missing or empty."))
 

Definition at line 112 of file opxml.c.

Referenced by opxmltooutline().

#define STR_errornohead   (BIGSTRING ("\x42" "Can't convert to an outline because the <head> section is missing."))
 

Definition at line 110 of file opxml.c.

Referenced by opxmltooutline().

#define STR_errornooutlines   (BIGSTRING ("\x54" "Can't convert to an outline because the <body> section contains no outline elements."))
 

Definition at line 114 of file opxml.c.

Referenced by opxmltooutline().

#define STR_errornotopml   (BIGSTRING ("\x41" "Can't convert to an outline because this is not an OPML document."))
 

Definition at line 108 of file opxml.c.

Referenced by opxmltooutline().

#define STR_expansionstate   (BIGSTRING ("\x0e" "expansionState"))
 

Definition at line 71 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowexpansionstate().

#define STR_gt   (BIGSTRING ("\x04" "&gt;"))
 

Definition at line 56 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_gt_replace   (BIGSTRING ("\x01" ">"))
 

Definition at line 57 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_head   (BIGSTRING ("\x04" "head"))
 

Definition at line 75 of file opxml.c.

Referenced by opxmlheadexists(), and opxmltooutline().

#define STR_isbreakpoint   (BIGSTRING ("\x0c" "isBreakpoint"))
 

Definition at line 93 of file opxml.c.

Referenced by opxmlpushattributes(), opxmlsetcommentandbreakpoint(), and opxmlsetrefcon().

#define STR_iscomment   (BIGSTRING ("\x09" "isComment"))
 

Definition at line 92 of file opxml.c.

Referenced by opxmlpushattributes(), opxmlsetcommentandbreakpoint(), and opxmlsetrefcon().

#define STR_legalprotocols   (BIGSTRING ("\x16" "xml-rpc|soap|http-post"))
 

Definition at line 105 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_lt   (BIGSTRING ("\x04" "&lt;"))
 

Definition at line 54 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_lt_replace   (BIGSTRING ("\x01" "<"))
 

Definition at line 55 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_name   (BIGSTRING ("\x04" "name"))
 

Definition at line 83 of file opxml.c.

#define STR_openbody   (BIGSTRING ("\x06" "<body>"))
 

Definition at line 87 of file opxml.c.

Referenced by opxmlbuildbody().

#define STR_opencloud   (BIGSTRING ("\x06" "<cloud"))
 

Definition at line 99 of file opxml.c.

Referenced by opxmlpushcloudtag().

#define STR_openhead   (BIGSTRING ("\x06" "<head>"))
 

Definition at line 76 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_openoutlinetext   (BIGSTRING ("\x0f" "<outline text=\""))
 

Definition at line 89 of file opxml.c.

Referenced by opxmlpushoutlinetext().

#define STR_opmldocument   (BIGSTRING ("\x04" "opml"))
 

Definition at line 74 of file opxml.c.

Referenced by opxmltooutline().

#define STR_outlinedocument   (BIGSTRING ("\x0f" "outlineDocument"))
 

Definition at line 73 of file opxml.c.

Referenced by opxmltooutline().

#define STR_outlinetag   (BIGSTRING ("\x07" "outline"))
 

Definition at line 85 of file opxml.c.

Referenced by opxmltooutlinevisit().

#define STR_owneremail   (BIGSTRING ("\x0a" "ownerEmail"))
 

Definition at line 70 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_ownername   (BIGSTRING ("\x09" "ownerName"))
 

Definition at line 69 of file opxml.c.

Referenced by opxmlbuildhead().

#define STR_path   (BIGSTRING ("\x04" "path"))
 

Definition at line 102 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_port   (BIGSTRING ("\x04" "port"))
 

Definition at line 101 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_protocol   (BIGSTRING ("\x08" "protocol"))
 

Definition at line 104 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_quot   (BIGSTRING ("\x06" "&quot;"))
 

Definition at line 52 of file opxml.c.

Referenced by opxmldecodetext(), and opxmlencodetext().

#define STR_quot_replace   (BIGSTRING ("\x01" "\""))
 

Definition at line 53 of file opxml.c.

Referenced by opxmldecodetext(), opxmlencodetext(), opxmlpushoneattribute(), and opxmlpushoutlinetext().

#define STR_regProcedure   (BIGSTRING ("\x11" "registerProcedure"))
 

Definition at line 103 of file opxml.c.

Referenced by opxmlgetcloudatts(), and opxmlpushcloudtag().

#define STR_space   (BIGSTRING ("\x01" " "))
 

Definition at line 90 of file opxml.c.

Referenced by opxmlpushoneattribute().

#define STR_textitemname   (BIGSTRING ("\x04" "text"))
 

Definition at line 61 of file opxml.c.

Referenced by opxmlgetheadlinetextfromatts(), and opxmlsetrefcon().

#define STR_title   (BIGSTRING ("\x05" "title"))
 

Definition at line 66 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowtitle().

#define STR_userprefs   (BIGSTRING ("\x0a" "user.prefs"))
 

Definition at line 82 of file opxml.c.

#define STR_version   (BIGSTRING ("\x07" "version"))
 

Definition at line 97 of file opxml.c.

#define STR_vertscrollstate   (BIGSTRING ("\x0f" "vertScrollState"))
 

Definition at line 72 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowverticalscrollstate().

#define STR_windowbottom   (BIGSTRING ("\x0c" "windowBottom"))
 

Definition at line 64 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowpositionandsize().

#define STR_windowleft   (BIGSTRING ("\x0a" "windowLeft"))
 

Definition at line 63 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowpositionandsize().

#define STR_windowright   (BIGSTRING ("\x0b" "windowRight"))
 

Definition at line 65 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowpositionandsize().

#define STR_windowtop   (BIGSTRING ("\x09" "windowTop"))
 

Definition at line 62 of file opxml.c.

Referenced by opxmlbuildhead(), and opxmlsetwindowpositionandsize().

#define STR_xmlheader   (BIGSTRING ("\x2b" "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"))
 

Definition at line 79 of file opxml.c.

Referenced by opoutlinetoxml().

#define STR_xstruct   (BIGSTRING ("\x07" "xstruct"))
 

Definition at line 95 of file opxml.c.

Referenced by opxmltooutline().


Function Documentation

boolean opoutlinetoxml hdloutlinerecord  ho,
Handle  hname,
Handle  hemail,
Handle htext,
hdlhashtable  hto,
bigstring  bso,
tyvaluerecord  vo,
hdlhashtable  hcloud
 

Definition at line 165 of file opxml.c.

References fl, newemptyhandle(), opxmlbuildbody(), opxmlbuildhead(), opxmlensureopenwindow(), opxmlpushstringline(), shellclosewindow(), STR_closedoc, STR_docheader, and STR_xmlheader.

Referenced by opoutlinetoxmlverb().

Here is the call graph for this function:

boolean opsetheadtext hdlheadrecord  hnode,
Handle  hstring
 

Definition at line 1672 of file opops.c.

References bigstring, disposehandle(), equalhandles(), h, hnode, opdirtyoutline(), opgetheadstring(), opinvalnode(), opnodechanged(), and opupdatenow().

Here is the call graph for this function:

static boolean opxmlbodyvisit hdlheadrecord  hnode,
ptrvoid  htext
[static]
 

Definition at line 886 of file opxml.c.

References BIGSTRING, copyhandle(), disposehandle(), fl, h, hnode, opbumpflatdown(), opxmlpushattributes(), opxmlpushclosingoutlinetags(), opxmlpushoutlinetext(), and pushtexthandle().

Referenced by opxmlbuildbody().

Here is the call graph for this function:

static boolean opxmlbuildbody hdloutlinerecord  ho,
Handle  htext,
short  indentlevel
[static]
 

Definition at line 955 of file opxml.c.

References fl, oppopallhoists(), oppopoutline(), oppushoutline(), oprestorehoists(), opxmlbodyvisit(), opxmlpushstringline(), opxmlvisitnondynamicnodes(), STR_closebody, and STR_openbody.

Referenced by opoutlinetoxml().

Here is the call graph for this function:

static boolean opxmlbuildhead Handle  htext,
hdloutlinerecord  ho,
Handle  hname,
Handle  hemail,
short  indentlevel,
hdlwindowinfo  hinfo,
hdlhashtable  hcloud
[static]
 

Definition at line 1017 of file opxml.c.

References bigstring, tyvaluerecord::data, datenetstandardstring(), disposehandle(), disposevaluerecord(), fl, newemptyhandle(), nil, opxmlgetwindowexpansionstate(), opxmlgetwindowscrollstate(), opxmlpushcloudtag(), opxmlpushonetag(), opxmlpushonetaglong(), opxmlpushstringline(), pushtexthandle(), r, shellgetglobalwindowrect(), shellgetwindowtitle(), STR_closehead, STR_datecreated, STR_datemodified, STR_expansionstate, STR_openhead, STR_owneremail, STR_ownername, STR_title, STR_vertscrollstate, STR_windowbottom, STR_windowleft, STR_windowright, STR_windowtop, and tyvaluedata::stringvalue.

Referenced by opoutlinetoxml().

Here is the call graph for this function:

static boolean opxmlbuildtaggedstring bigstring  bstag,
Handle  hvalue,
Handle  hdest
[static]
 

Definition at line 445 of file opxml.c.

References BIGSTRING, fl, pushhandle(), and pushtexthandle().

Referenced by opxmlpushonetag().

Here is the call graph for this function:

static boolean opxmldecodeattstablevalues hdlhashtable  ht  )  [static]
 

Definition at line 1744 of file opxml.c.

References tyvaluerecord::data, fl, nil, opxmldecodetext(), tyhashnode::sortedlink, tyvaluedata::stringvalue, stringvaluetype, and tyvaluerecord::valuetype.

Referenced by opxmlsetrefcon().

Here is the call graph for this function:

static boolean opxmldecodetext Handle  htext  )  [static]
 

Definition at line 1158 of file opxml.c.

References replaceallinhandle(), STR_amp, STR_amp_replace, STR_gt, STR_gt_replace, STR_lt, STR_lt_replace, STR_quot, and STR_quot_replace.

Referenced by opxmldecodeattstablevalues(), and opxmlgetheadlinetextfromatts().

Here is the call graph for this function:

static boolean opxmldeleteitemfromatts hdlhashtable  htatts,
bigstring  bsitemtodelete
[static]
 

Definition at line 1720 of file opxml.c.

References disablelangerror(), enablelangerror(), hashdelete(), pophashtable(), and pushhashtable().

Referenced by opxmlsetrefcon().

Here is the call graph for this function:

static boolean opxmlencodetext Handle  htext  )  [static]
 

Definition at line 1132 of file opxml.c.

References replaceallinhandle(), STR_amp, STR_amp_replace, STR_gt, STR_gt_replace, STR_lt, STR_lt_replace, STR_quot, and STR_quot_replace.

Referenced by opxmlpushoneattribute(), and opxmlpushoutlinetext().

Here is the call graph for this function:

static boolean opxmlensureopenwindow hdloutlinerecord  ho,
hdlhashtable  hto,
bigstring  bso,
tyvaluerecord  vo,
hdlwindowinfo hinfo,
boolean flwasopen
[static]
 

Definition at line 994 of file opxml.c.

References langzoomvalwindow(), and shellfinddatawindow().

Referenced by opoutlinetoxml().

Here is the call graph for this function:

static boolean opxmlfindtableitem hdlhashtable  ht,
bigstring  bsname,
hdlhashtable htfound
[static]
 

Definition at line 1246 of file opxml.c.

References gethashnodetable(), isxmlmatch(), nil, and tyhashnode::sortedlink.

Referenced by opxmlgetcloudatts(), and opxmltooutline().

Here is the call graph for this function:

static boolean opxmlgetattribute hdlhashtable  ht,
bigstring  bsname,
tyvaluetype  type,
tyvaluerecord val
[static]
 

Definition at line 1600 of file opxml.c.

References coercevalue(), copyvaluerecord(), hashtablelookup(), novaluetype, and xmlgetattribute().

Referenced by opxmlpullcloudattribute(), and opxmltooutline().

Here is the call graph for this function:

static boolean opxmlgetcloudatts hdlhashtable  hhead,
hdlhashtable  hcloudspec
[static]
 

Definition at line 1656 of file opxml.c.

References intvaluetype, nil, opxmlfindtableitem(), opxmlpullcloudattribute(), STR_cloud, STR_domain, STR_legalprotocols, STR_path, STR_port, STR_protocol, STR_regProcedure, and stringvaluetype.

Referenced by opxmltooutline().

Here is the call graph for this function:

static boolean opxmlgetheadlinetextfromatts hdlhashtable  ht,
Handle  htext
[static]
 

Definition at line 1690 of file opxml.c.

References copyhandlecontents(), copyvaluerecord(), tyvaluerecord::data, disposevaluerecord(), hashtablelookup(), hnode, opxmldecodetext(), STR_textitemname, tyvaluedata::stringvalue, and xmlgetattribute().

Referenced by opxmltooutlinevisit().

Here is the call graph for this function:

static boolean opxmlgetonelongvalue hdlhashtable  ht,
bigstring  bsname,
long v
[static]
 

Definition at line 1324 of file opxml.c.

References bigstring, disposehandle(), h, newemptyhandle(), opxmlgetonevalue(), stringtonumber(), and texthandletostring().

Referenced by opxmlsetwindowverticalscrollstate().

Here is the call graph for this function:

static boolean opxmlgetoneshortvalue hdlhashtable  ht,
bigstring  bsname,
short v
[static]
 

Definition at line 1346 of file opxml.c.

References bigstring, disposehandle(), h, newemptyhandle(), opxmlgetonevalue(), stringtoshort(), and texthandletostring().

Referenced by opxmlsetwindowpositionandsize().

Here is the call graph for this function:

static boolean opxmlgetonevalue hdlhashtable  ht,
bigstring  bsname,
Handle  htext
[static]
 

Definition at line 1288 of file opxml.c.

References copyhandlecontents(), tyvaluerecord::data, fl, isxmlmatch(), nil, tyhashnode::sortedlink, tyvaluedata::stringvalue, stringvaluetype, and tyvaluerecord::valuetype.

Referenced by opxmlgetonelongvalue(), opxmlgetoneshortvalue(), opxmlsetwindowexpansionstate(), and opxmlsetwindowtitle().

Here is the call graph for this function:

static boolean opxmlgetwindowexpansionstate hdloutlinerecord  ho,
Handle hstate
[static]
 

Definition at line 406 of file opxml.c.

References coercevalue(), copyhandle(), disposevaluerecord(), fl, gethandlesize(), opgetexpansionstateverb(), oppopoutline(), oppushoutline(), pullfromhandle(), and stringvaluetype.

Referenced by opxmlbuildhead().

Here is the call graph for this function:

static boolean opxmlgetwindowscrollstate hdloutlinerecord  ho,
long ix
[static]
 

Definition at line 378 of file opxml.c.

References disposevaluerecord(), fl, opgetscrollstateverb(), oppopoutline(), and oppushoutline().

Referenced by opxmlbuildhead().

Here is the call graph for this function:

static boolean opxmlheadexists hdlhashtable  ht  )  [static]
 

Definition at line 1270 of file opxml.c.

References isxmlmatch(), nil, tyhashnode::sortedlink, and STR_head.

Referenced by opxmltooutline().

Here is the call graph for this function:

static boolean opxmlpullcloudattribute hdlhashtable  ht,
bigstring  bsatt,
tyvaluetype  type,
bigstring  legalvalues,
hdlhashtable  hatts
[static]
 

Definition at line 1625 of file opxml.c.

References cloudelementerror, disablelangerror(), enablelangerror(), exemptfromtmpstack(), fl, hashtableassign(), langparamerror(), opxmlgetattribute(), and teststringvalue().

Referenced by opxmlgetcloudatts().

Here is the call graph for this function:

static boolean opxmlpushattributes hdlheadrecord  hnode,
Handle  htext,
short  indentlevel
[static]
 

Definition at line 741 of file opxml.c.

References bigstring, coercevalue(), disablelangerror(), disposehandle(), disposevaluerecord(), enablelangerror(), fl, gethashkey, hnode, newemptyhandle(), nil, opattributesgetpackedtablevalue(), opxmlpushoneattribute(), pushtexthandle(), STR_booleantrue, STR_isbreakpoint, STR_iscomment, stringvaluetype, tablevaltotable(), and v.

Referenced by opxmlbodyvisit().

Here is the call graph for this function:

static boolean opxmlpushclosingoutlinetags Handle  htext,
short  currlevel,
short  destlevel
[static]
 

Definition at line 681 of file opxml.c.

References opxmlpushstringline(), and STR_closeoutline.

Referenced by opxmlbodyvisit().

Here is the call graph for this function:

static boolean opxmlpushcloudattribute Handle  htag,
hdlhashtable  hcloud,
bigstring  bsatt,
bigstring  legalvalues
[static]
 

Definition at line 564 of file opxml.c.

References cloudspecerror, coercetostring(), copyvaluerecord(), disposevaluerecord(), hashtablelookup(), langparamerror(), opxmlpushoneattribute(), teststringvalue(), and v.

Referenced by opxmlpushcloudtag().

Here is the call graph for this function:

static boolean opxmlpushcloudtag hdlhashtable  hcloud,
short  indentlevel,
Handle  htext
[static]
 

Definition at line 593 of file opxml.c.

References BIGSTRING, disposehandle(), fl, newtexthandle(), nil, opxmlpushcloudattribute(), opxmlpushhandleline(), pushtexthandle(), STR_domain, STR_legalprotocols, STR_opencloud, STR_path, STR_port, STR_protocol, and STR_regProcedure.

Referenced by opxmlbuildhead().

Here is the call graph for this function:

static boolean opxmlpushhandleline Handle  htext,
Handle  h,
short  indentlevel
[static]
 

Definition at line 1227 of file opxml.c.

References BIGSTRING, opxmlpushindents(), pushhandle(), and pushtexthandle().

Referenced by opxmlpushcloudtag(), and opxmlpushonetag().

Here is the call graph for this function:

static boolean opxmlpushindents Handle  htext,
short  indentlevel
[static]
 

Definition at line 1178 of file opxml.c.

References bigstring, pushtexthandle(), setemptystring, and setstringlength.

Referenced by opxmlpushhandleline(), opxmlpushstringindented(), and opxmlpushstringline().

Here is the call graph for this function:

static boolean opxmlpushoneattribute Handle  htext,
bigstring  bsname,
Handle  hvalue
[static]
 

Definition at line 701 of file opxml.c.

References disposehandle(), fl, h, newemptyhandle(), opxmlencodetext(), pushhandle(), pushtexthandle(), STR_equalsquotes, STR_quot_replace, and STR_space.

Referenced by opxmlpushattributes(), and opxmlpushcloudattribute().

Here is the call graph for this function:

static boolean opxmlpushonetag bigstring  bstag,
Handle  hvalue,
short  indentlevel,
Handle  htext
[static]
 

Definition at line 482 of file opxml.c.

References disposehandle(), fl, newemptyhandle(), opxmlbuildtaggedstring(), and opxmlpushhandleline().

Referenced by opxmlbuildhead(), and opxmlpushonetaglong().

Here is the call graph for this function:

static boolean opxmlpushonetaglong bigstring  bstag,
long  v,
short  indentlevel,
Handle  htext
[static]
 

Definition at line 509 of file opxml.c.

References bigstring, disposehandle(), fl, h, newemptyhandle(), numbertostring(), opxmlpushonetag(), and pushtexthandle().

Referenced by opxmlbuildhead().

Here is the call graph for this function:

static boolean opxmlpushoutlinetext Handle  headlinetext,
Handle  htext,
short  indentlevel
[static]
 

Definition at line 647 of file opxml.c.

References disposehandle(), fl, h, newemptyhandle(), opxmlencodetext(), opxmlpushstringindented(), pushhandle(), pushtexthandle(), STR_openoutlinetext, and STR_quot_replace.

Referenced by opxmlbodyvisit().

Here is the call graph for this function:

static boolean opxmlpushstringindented bigstring  bs,
Handle  htext,
short  indentlevel
[static]
 

Definition at line 633 of file opxml.c.

References opxmlpushindents(), and pushtexthandle().

Referenced by opxmlpushoutlinetext().

Here is the call graph for this function:

static boolean opxmlpushstringline Handle  htext,
bigstring  bs,
short  indentlevel
[static]
 

Definition at line 1208 of file opxml.c.

References BIGSTRING, opxmlpushindents(), and pushtexthandle().

Referenced by opoutlinetoxml(), opxmlbuildbody(), opxmlbuildhead(), and opxmlpushclosingoutlinetags().

Here is the call graph for this function:

static boolean opxmlrecursivelyvisit hdlheadrecord  h,
short  lev,
opvisitcallback  visit,
ptrvoid  refcon
[static]
 

Definition at line 819 of file opxml.c.

References h, tyheadrecord::headlinkdown, tyheadrecord::headlinkright, nil, and oprecursivelyvisit().

Referenced by opxmlvisitnondynamicnodes().

Here is the call graph for this function:

static boolean opxmlsetcommentandbreakpoint hdlhashtable  ht  )  [static]
 

Definition at line 1838 of file opxml.c.

References bigstring, equalidentifiers(), fl, hashtablelookup(), hnode, langexternalvaltotable(), STR_attstablename, STR_booleantrue, STR_isbreakpoint, STR_iscomment, stringvaluetype, and texthandletostring().

Referenced by opxmltooutlinevisit().

Here is the call graph for this function:

static boolean opxmlsetrefcon hdlhashtable  ht  )  [static]
 

Definition at line 1769 of file opxml.c.

References tyvaluedata::binaryvalue, binaryvaluetype, tyvaluerecord::data, disposehandle(), disposevaluerecord(), fl, hashtablelookup(), hnode, HNoNode, initvalue(), langexternalvaltotable(), langpackvalue(), opxmldecodeattstablevalues(), opxmldeleteitemfromatts(), STR_attstablename, STR_isbreakpoint, STR_iscomment, and STR_textitemname.

Referenced by opxmltooutlinevisit().

Here is the call graph for this function:

static boolean opxmlsetwindowatts hdlhashtable  ht,
hdloutlinerecord  ho,
hdlhashtable  hto,
bigstring  bso,
tyvaluerecord  vo
[static]
 

Definition at line 1556 of file opxml.c.

References langzoomvalwindow(), oppopoutline(), oppushoutline(), opxmlsetwindowexpansionstate(), opxmlsetwindowpositionandsize(), opxmlsetwindowtitle(), opxmlsetwindowverticalscrollstate(), and shellfinddatawindow().

Referenced by opxmltooutline().

Here is the call graph for this function:

static boolean opxmlsetwindowexpansionstate hdlhashtable  ht,
hdlwindowinfo  hinfo
[static]
 

Definition at line 1437 of file opxml.c.

References BIGSTRING, coercevalue(), tyvaluerecord::data, disposehandle(), disposevaluerecord(), fl, initvalue(), insertinhandle(), newemptyhandle(), nil, opsetexpansionstateverb(), opxmlgetonevalue(), pushtexthandle(), shellpopglobals(), shellpushwindowglobals(), STR_expansionstate, tyvaluedata::stringvalue, stringvaluetype, and v.

Referenced by opxmlsetwindowatts().

Here is the call graph for this function:

static boolean opxmlsetwindowpositionandsize hdlhashtable  ht,
hdlwindowinfo  hinfo
[static]
 

Definition at line 1373 of file opxml.c.

References opxmlgetoneshortvalue(), shellmovewindowhidden(), shellsizewindowhidden(), STR_windowbottom, STR_windowleft, STR_windowright, and STR_windowtop.

Referenced by opxmlsetwindowatts().

Here is the call graph for this function:

static boolean opxmlsetwindowtitle hdlhashtable  ht,
hdlwindowinfo  hinfo
[static]
 

Definition at line 1416 of file opxml.c.

References bigstring, newemptyhandle(), opxmlgetonevalue(), shellsetwindowtitle(), STR_title, and texthandletostring().

Referenced by opxmlsetwindowatts().

Here is the call graph for this function:

static boolean opxmlsetwindowverticalscrollstate hdlhashtable  ht,
hdlwindowinfo  hinfo
[static]
 

Definition at line 1498 of file opxml.c.

References disposevaluerecord(), oppopoutline(), oppostfontchange(), oppushoutline(), opresetscrollbars(), opsetscrollstateverb(), opxmlgetonelongvalue(), outlinedata, outlinewindowinfo, shellpopglobals(), shellpushwindowglobals(), shellupdatewindow(), and STR_vertscrollstate.

Referenced by opxmlsetwindowatts().

Here is the call graph for this function:

boolean opxmltooutline Handle  htext,
hdloutlinerecord  ho,
boolean  flnewoutline,
hdlhashtable  hto,
bigstring  bso,
tyvaluerecord  vo,
hdlhashtable  hcloud
 

Definition at line 218 of file opxml.c.

References assert, BIGSTRING, bigstring, xmladdress::bs, copystring(), dateversionlessthan(), disablelangerror(), disposehashtable(), enablelangerror(), fl, gethashnodetable(), xmladdress::ht, langerrormessage(), newhashtable(), nil, oppopoutline(), oppushoutline(), opxmlfindtableitem(), opxmlgetattribute(), opxmlgetcloudatts(), opxmlheadexists(), opxmlsetwindowatts(), opxmltooutlinevisit(), pullstringvalue(), shellfinddatawindow(), shellupdatenow(), STR_body, STR_errornobody, STR_errornohead, STR_errornooutlines, STR_errornotopml, STR_head, STR_opmldocument, STR_outlinedocument, STR_version, STR_xstruct, stringvaluetype, v, and xmlcompile().

Referenced by opxmltooutlineverb().

Here is the call graph for this function:

static boolean opxmltooutlinevisit hdlhashtable  ht,
short  ixlevel,
bigstring  bsname,
boolean  flfirstline
[static]
 

Definition at line 1899 of file opxml.c.

References alllower(), bigstring, disposehandle(), down, equalidentifiers(), gethashkey, gethashnodetable(), h, idtableprocessor, langexternalgettype(), left, newemptyhandle(), nil, opinserthandle(), opmotionkey(), oppopoutline(), oppushoutline(), opsetheadtext(), opxmlgetheadlinetextfromatts(), opxmlsetcommentandbreakpoint(), opxmlsetrefcon(), outlinedata, right, tyhashnode::sortedlink, STR_outlinetag, and xmlgetname().

Referenced by opxmltooutline().

Here is the call graph for this function:

static boolean opxmlvisitnondynamicnodes opvisitcallback  visit,
ptrvoid  refcon
[static]
 

Definition at line 856 of file opxml.c.

References infinity, and opxmlrecursivelyvisit().

Referenced by opxmlbuildbody().

Here is the call graph for this function:

static boolean teststringvalue const tyvaluerecord val,
bigstring  legalvalues
[static]
 

Definition at line 537 of file opxml.c.

References bigstring, CH_legaldelim, countwords(), equalstrings(), i, nil, nthword(), and pullstringvalue().

Referenced by opxmlpullcloudattribute(), and opxmlpushcloudattribute().

Here is the call graph for this function:


Generated on Fri Jun 9 12:03:05 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6