70 fZText =
new char[size + 1];
94 fArgv =
new char*[argc+1];
95 for (
int i = 1; i < argc; i++) {
97 fArgv[i-1] =
new char[arglen[i]+1];
99 strncpy(
fArgv[i-1], av[i], arglen[i]);
100 fArgv[i-1][arglen[i]] = 0;
125 for (
int i = 0; i <
fCount; ++i)
delete []
fArgv[i];
139 for (i = 0; i <
fCount; i += 2) {
140 if (strcmp(
fArgv[i], tag) == 0)
return fArgv[i+1];
156 if (strcasecmp(z,
"left") == 0) {
158 }
else if (strcasecmp(z,
"right") == 0) {
160 }
else if (strcasecmp(z,
"center") == 0) {
200 if (strcasecmp(z,
"disc") == 0) {
202 }
else if (strcasecmp(z,
"circle") == 0) {
204 }
else if (strcasecmp(z,
"square") == 0) {
311 int arglen[],
char *argv2[]) :
void ToLower(char *z)
Convert a string to all lower-case letters.
TGHtmlImageMarkup * fINext
TGHtmlMarkupElement(int type, int argc, int arglen[], char *argv[])
HTML mrkup element constructor.
TGHtmlTable(int type, int argc, int arglen[], char *argv[])
HTML table element constructor.
int fMaxW[HTML_MAX_COLUMNS+1]
TGHtmlRef(int type, int argc, int arglen[], char *argv[])
HTML ref element constructor.
virtual ~TGHtmlTextElement()
HTML element destructor.
TGHtmlMapArea(int type, int argc, int arglen[], char *argv[])
HTML map area constructor.
TGHtmlLi(int type, int argc, int arglen[], char *argv[])
HTML li element constructor.
virtual ~TGHtmlMarkupElement()
HTML markup element destructor.
TGHtmlCell(int type, int argc, int arglen[], char *argv[])
HTML cell element constructor.
TGHtmlHr(int type, int argc, int arglen[], char *argv[])
HTML hr element constructor.
char * StrDup(const char *str)
Duplicate the string str.
virtual int GetUnorderedListType(int dflt)
The "type" argument to the given element might describe a type for an unordered list.
void HtmlTranslateEscapes(char *z)
Translate escape sequences in the string "z".
virtual int GetOrderedListType(int dflt)
The "type" argument to the given element might describe the type for an ordered list.
~TGHtmlCell()
HTML cell element destructor.
TGHtmlAnchor(int type, int argc, int arglen[], char *argv[])
HTML anchor element constructor.
TGHtmlScript(int type, int argc, int arglen[], char *argv[])
HTML script element constructor.
~TGHtmlRef()
HTML ref element destructor.
int fMinW[HTML_MAX_COLUMNS+1]
virtual ~TGHtmlBlock()
dtor.
TGHtmlListStart(int type, int argc, int arglen[], char *argv[])
HTML list start element constructor.
TGHtmlElement(int etype=0)
HTML element constructor.
virtual const char * MarkupArg(const char *tag, const char *zDefault)
Lookup an argument in the given markup with the name given.
TGHtmlTextElement(const TGHtmlTextElement &)
~TGHtmlTable()
HTML table element destructor.
virtual int GetAlignment(int dflt)
Return an alignment or justification flag associated with the given markup.
TGHtmlImageMarkup(int type, int argc, int arglen[], char *argv[])
HTML image element constructor.