• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ie_impexp_HTML.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 2002 Francis James Franklin <fjf@alinameridon.com>
00005  * Copyright (C) 2001-2002 AbiSource, Inc.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 /* Note: These defs originated in the HTML import plugin and the
00024  *       comments sometimes reflect this.
00025  */
00026 
00027 #ifndef IE_IMPEXP_HTML_H
00028 #define IE_IMPEXP_HTML_H
00029 
00030 #define IE_MIMETYPE_XHTML           "application/xhtml+xml"
00031 #define IE_MIMETYPE_HTML            "text/html"
00032 #define IE_MIMETYPE_CSS             "text/css"
00033 
00034 #define TT_OTHER    0   // ?        Tag not recognized (not an error, though)
00035 
00036 #define TT_HTML     1   // <html>   Document main/first tag
00037 
00038 #define TT_HEAD     2   // <head>   (child of <html>; 1 instance; precedes <body>)
00039 #define TT_BODY     3   // <body>   (child of <html>; 1 instance; follows <head>)
00040 
00041 #define TT_TITLE    4   // <title>  (child of <head>)
00042 #define TT_STYLE    5   // <style>  (child of <head>)
00043 #define TT_DIV      6   // <div>    [B] Used with style sheets to produce layers, boxes, etc.
00044                 //      AbiWord uses these in its XHTML output to denote sections
00045                 //      but this seems an uncommon use.
00046 #define TT_SPAN     7   // <span>   Like <div>, this is used in conjuction with style sheets
00047 #define TT_LAYER    8   // <layer>  Layer
00048 
00049 #define TT_LINK     9   // <link>   (child of <head>; no children; no end tag)
00050 #define TT_BASE     10  // <base>   (child of <head>; no children; no end tag)
00051 #define TT_META     11  // <meta>   (child of <head>; no children; no end tag)
00052 
00053 #define TT_A        21  // <a>      Anchor or Hyperlink (can't nest links)
00054 
00055 #define TT_H1       22  // <h1>     Headings
00056 #define TT_H2       23  // <h2>
00057 #define TT_H3       24  // <h3>
00058 #define TT_H4       25  // <h4>     Normal size but bold, others relative (usually) (?)
00059 #define TT_H5       26  // <h5>
00060 #define TT_H6       27  // <h6>
00061 
00062 #define TT_ADDRESS  29  // <address>    Author's address { set italics }
00063 
00064 /* Structured Text: Phrase elements
00065  */
00066 #define TT_EM       40  // <em>     Emphasis { toggle italics }
00067 #define TT_STRONG   41  // <strong> Stronger emphasis { set bold }
00068 #define TT_DFN      42  // <dfn>    Defining instance { ? }
00069 #define TT_CODE     43  // <code>   Computer code { use fixed width font }
00070 #define TT_SAMP     44  // <samp>   Sample output { use fixed width font }
00071 #define TT_KBD      45  // <kbd>    Text to be entered by user { use fixed width font }
00072 #define TT_VAR      46  // <var>    Variable/Argument { use fixed width font }
00073 #define TT_CITE     47  // <cite>   Citation/Reference { no action }
00074 #define TT_ABBR     48  // <abbr>   Abbreviation { no action }
00075 #define TT_ACRONYM  49  // <acronym>    Acronym { no action }
00076 
00077 /* Structured Text: Quotations
00078  */
00079 #define TT_Q        50  // <q>      Quote { quotation mark e.g. `, ', ", <<, - a job for smart quotes?  }
00080 #define TT_BLOCKQUOTE   51  // <blockquote> [B] Block quote { separate paragraph; indented }
00081 
00082 /* Structured Text: Subscripts and superscripts
00083  */
00084 #define TT_SUB      52  // <sub>    Subscript
00085 #define TT_SUP      53  // <sup>    Superscript
00086 
00087 /* Lines And Paragraphs: Paragraphs
00088  */
00089 #define TT_P        54  // <p>      [B] New paragraph
00090                 //      Can't contain other block elements, inc. self
00091                 //      (Ignore empty paragraphs.)
00092 
00093 /* Lines And Paragraphs: Controlling line breaks
00094  */
00095 #define TT_BR       55  // <br>     Forced line break
00096 
00097 /* Lines And Paragraphs: Preformatted text
00098  */
00099 #define TT_PRE      56  // <pre>    Preformatted text { use fixed width font; white space critical }
00100                 //      Can't contain: <img>, <object>, <big>, <small>, <sub>, <sup>
00101 
00102 /* Lines And Paragraphs: Marking document changes
00103  */
00104 #define TT_INS      57  // <ins>    Insert { set color red }
00105 #define TT_DEL      58  // <del>    Delete { set color red; set strike-through }
00106 
00107 /* Lists: Unordered lists, ordered lists, and list items
00108  */
00109 #define TT_OL       59  // <ol>     Ordered list (children must be <li>)
00110 #define TT_UL       60  // <ul>     Unordered list (children must be <li>)
00111 #define TT_LI       61  // <li>     List item (</li> optional)
00112 
00113 /* Lists: Definition lists
00114  */
00115 #define TT_DL       62  // <dl>     Definition list
00116 #define TT_DT       63  // <dt>     Definition term { set bold }
00117 #define TT_DD       64  // <dd>     Definition description { indent }
00118 
00119 /* Lists: <dir> & <menu>
00120  */
00121 #define TT_DIR      TT_UL   // <dir>    Directory list { cf. <ul> }
00122 #define TT_MENU     TT_UL   // <menu>   Menu list { cf. <ul> }
00123 
00124 /* Tables:
00125  */
00126 #define TT_TABLE    65  // <table>  Table
00127 #define TT_CAPTION  66  // <caption>    Caption (child of <table>)
00128 #define TT_THEAD    67  // <thead>  Table Head (child of <table> acting as new <table>)
00129 #define TT_TFOOT    68  // <tfoot>  Table Foot (child of <table> acting as new <table>)
00130 #define TT_TBODY    69  // <tbody>  Table Body (child of <table> acting as new <table>)
00131 #define TT_COLGROUP 70  // <colgroup>   Un-partition existing columns into one
00132 #define TT_COL      71  // <col>    Subdivide grouped column (child of <colgroup>)
00133 #define TT_TR       72  // <tr>     Row (child of <table>)
00134 #define TT_TH       73  // <th>     Header { set bold } (child of <tr>)
00135 #define TT_TD       74  // <td>     Data (child of <tr>)
00136 
00137 /* Objects, Images & Applets: Including an image
00138  */
00139 #define TT_IMG      75  // <img>    Image tag (empty; no children; no end tag)
00140 
00141 /* Objects, Images & Applets: Generic inclusion
00142  */
00143 #define TT_OBJECT   76  // <object> Object
00144 
00145 /* Objects, Images & Applets: Object initialization
00146  */
00147 #define TT_PARAM    77  // <param>  Option for object (empty; no children; no end tag)
00148 
00149 /* Objects, Images & Applets: Including an applet
00150  */
00151 #define TT_APPLET   78  // <applet> Applet
00152 
00153 /* Objects, Images & Applets: Client-side image maps
00154  */
00155 #define TT_MAP      79  // <map>    Map
00156 #define TT_AREA     80  // <area>   Area with map (child of <map>; empty; no children; no end tag)
00157 
00158 /* Alignment, Font Styles etc.: Alignment
00159  */
00160 #define TT_CENTER   81  // <center> = <div align="center">
00161 
00162 /* Alignment, Font Styles etc.: Font style elements
00163  */
00164 #define TT_TT       82  // <tt>     Fixed width { set fixed width }
00165 #define TT_I        83  // <i>      Italic { set italics }
00166 #define TT_B        84  // <b>      Bold { set bold }
00167 #define TT_BIG      85  // <big>    Large { inc. font size }
00168 #define TT_SMALL    86  // <small>  Small { dec. font size }
00169 #define TT_S        87  // <s>      Strike-through { set strike-through }
00170 #define TT_STRIKE   TT_S    // <strike> Strike-through { set strike-through }
00171 #define TT_U        88  // <u>      Underline { set underline }
00172 
00173 /* Alignment, Font Styles etc.: Font modifier elements
00174  */
00175 #define TT_FONT     89  // <font>   Set new font (mother of all...)
00176 #define TT_BASEFONT 90  // <basefont>   Default font (font sizes calculated relative to base-font)
00177 
00178 /* Alignment, Font Styles etc.: Rules
00179  */
00180 #define TT_HR       91  // <hr>     Horizontal rule (empty; no children; no end tag)
00181 
00182 /* Frames:
00183  */
00184 #define TT_FRAMESET 92  // <frameset>   Set of frames { no action }
00185 #define TT_FRAME    93  // <frame>  A frame (child of frameset) { no action }
00186 #define TT_NOFRAMES 94  // <noframes>   Frameless version { no action }
00187 #define TT_IFRAME   95  // <iframe> Inline frame { no action }
00188 
00189 /* Forms:
00190  */
00191 #define TT_FORM     96  // <form>   Form { no action }
00192 #define TT_INPUT    97  // <input>  Input { no action }
00193 #define TT_BUTTON   98  // <button> Button { no action }
00194 #define TT_SELECT   99  // <select> Select { no action }
00195 #define TT_OPTGROUP 100 // <optgroup>   Opt. Group { no action }
00196 #define TT_OPTION   101 // <option> Option { no action }
00197 #define TT_TEXTAREA 102 // <textarea>   Text area { no action }
00198 #define TT_ISINDEX  103 // <isindex>    Index { no action }
00199 #define TT_LABEL    104 // <label>  Label { no action }
00200 #define TT_FIELDSET 105 // <fieldset>   Field set { no action }
00201 #define TT_LEGEND   106 // <legend> Legend { no action }
00202 
00203 /* Scripts:
00204  */
00205 #define TT_SCRIPT   107 // <script> Script { no action }
00206 #define TT_NOSCRIPT 108 // <noscript>   Alt. to script { no action }
00207 
00208 /* Misc:
00209  */
00210 #define TT_BDO      109 // <bdo>    BiDi override
00211 
00212 /* Ruby:
00213  */
00214 #define TT_RUBY     110 // <ruby>   Ruby block
00215 #define TT_RP       111 // <rp>     Ruby parenthesis
00216 #define TT_RT       112 // <rt>     Ruby text
00217 
00218 /* Math:
00219  */
00220 #define TT_MATH     113 // <math>   MathML equation
00221 
00222 
00223 #endif /* IE_IMPEXP_HTML_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1