001package org.apache.maven.doxia.module.fo;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import javax.swing.text.html.HTML.Tag;
023
024import org.apache.maven.doxia.markup.XmlMarkup;
025
026/**
027 * List of <code>FO</code> markups.
028 *
029 * @author ltheussl
030 * @version $Id$
031 * @since 1.1
032 */
033public interface FoMarkup
034    extends XmlMarkup
035{
036    /** FO namespace: "http://www.w3.org/1999/XSL/Format" */
037    String FO_NAMESPACE = "http://www.w3.org/1999/XSL/Format";
038
039    // ----------------------------------------------------------------------
040    // Specific FO tags
041    // ----------------------------------------------------------------------
042
043    /** FO tag for <code>root</code>. */
044    Tag ROOT_TAG = new Tag()
045    {
046        /** {@inheritDoc} */
047        public String toString()
048        {
049            return "root";
050        }
051    };
052
053    /** FO tag for <code>layout-master-set</code>. */
054    Tag LAYOUT_MASTER_SET_TAG = new Tag()
055    {
056        /** {@inheritDoc} */
057        public String toString()
058        {
059            return "layout-master-set";
060        }
061    };
062
063    /** FO tag for <code>simple-page-master</code>. */
064    Tag SIMPLE_PAGE_MASTER_TAG = new Tag()
065    {
066        /** {@inheritDoc} */
067        public String toString()
068        {
069            return "simple-page-master";
070        }
071    };
072
073    /** FO tag for <code>region-body</code>. */
074    Tag REGION_BODY_TAG = new Tag()
075    {
076        /** {@inheritDoc} */
077        public String toString()
078        {
079            return "region-body";
080        }
081    };
082
083    /** FO tag for <code>region-before</code>. */
084    Tag REGION_BEFORE_TAG = new Tag()
085    {
086        /** {@inheritDoc} */
087        public String toString()
088        {
089            return "region-before";
090        }
091    };
092
093    /** FO tag for <code>region-after</code>. */
094    Tag REGION_AFTER_TAG = new Tag()
095    {
096        /** {@inheritDoc} */
097        public String toString()
098        {
099            return "region-after";
100        }
101    };
102
103    /** FO tag for <code>static-content</code>. */
104    Tag STATIC_CONTENT_TAG = new Tag()
105    {
106        /** {@inheritDoc} */
107        public String toString()
108        {
109            return "static-content";
110        }
111    };
112
113
114    /** FO tag for <code>page-sequence</code>. */
115    Tag PAGE_SEQUENCE_TAG = new Tag()
116    {
117        /** {@inheritDoc} */
118        public String toString()
119        {
120            return "page-sequence";
121        }
122    };
123
124    /** FO tag for <code>flow</code>. */
125    Tag FLOW_TAG = new Tag()
126    {
127        /** {@inheritDoc} */
128        public String toString()
129        {
130            return "flow";
131        }
132    };
133
134    /** FO tag for <code>block</code>. */
135    Tag BLOCK_TAG = new Tag()
136    {
137        /** {@inheritDoc} */
138        public String toString()
139        {
140            return "block";
141        }
142    };
143
144    /** FO tag for <code>list-block</code>. */
145    Tag LIST_BLOCK_TAG = new Tag()
146    {
147        /** {@inheritDoc} */
148        public String toString()
149        {
150            return "list-block";
151        }
152    };
153
154    /** FO tag for <code>list-item</code>. */
155    Tag LIST_ITEM_TAG = new Tag()
156    {
157        /** {@inheritDoc} */
158        public String toString()
159        {
160            return "list-item";
161        }
162    };
163
164    /** FO tag for <code>list-item-body</code>. */
165    Tag LIST_ITEM_BODY_TAG = new Tag()
166    {
167        /** {@inheritDoc} */
168        public String toString()
169        {
170            return "list-item-body";
171        }
172    };
173
174    /** FO tag for <code>list-item-label</code>. */
175    Tag LIST_ITEM_LABEL_TAG = new Tag()
176    {
177        /** {@inheritDoc} */
178        public String toString()
179        {
180            return "list-item-label";
181        }
182    };
183
184    /** FO tag for <code>table-and-caption</code>. */
185    Tag TABLE_AND_CAPTION_TAG = new Tag()
186    {
187        /** {@inheritDoc} */
188        public String toString()
189        {
190            return "table-and-caption";
191        }
192    };
193
194    /** FO tag for <code>table</code>. */
195    Tag TABLE_TAG = new Tag()
196    {
197        /** {@inheritDoc} */
198        public String toString()
199        {
200            return "table";
201        }
202    };
203
204    /** FO tag for <code>table-body</code>. */
205    Tag TABLE_BODY_TAG = new Tag()
206    {
207        /** {@inheritDoc} */
208        public String toString()
209        {
210            return "table-body";
211        }
212    };
213
214    /** FO tag for <code>table-column</code>. */
215    Tag TABLE_COLUMN_TAG = new Tag()
216    {
217        /** {@inheritDoc} */
218        public String toString()
219        {
220            return "table-column";
221        }
222    };
223
224    /** FO tag for <code>table-row</code>. */
225    Tag TABLE_ROW_TAG = new Tag()
226    {
227        /** {@inheritDoc} */
228        public String toString()
229        {
230            return "table-row";
231        }
232    };
233
234    /** FO tag for <code>table-cell</code>. */
235    Tag TABLE_CELL_TAG = new Tag()
236    {
237        /** {@inheritDoc} */
238        public String toString()
239        {
240            return "table-cell";
241        }
242    };
243
244    /** FO tag for <code>table-caption</code>. */
245    Tag TABLE_CAPTION_TAG = new Tag()
246    {
247        /** {@inheritDoc} */
248        public String toString()
249        {
250            return "table-caption";
251        }
252    };
253
254    /** FO tag for <code>inline</code>. */
255    Tag INLINE_TAG = new Tag()
256    {
257        /** {@inheritDoc} */
258        public String toString()
259        {
260            return "inline";
261        }
262    };
263
264    /** FO tag for <code>basic-link</code>. */
265    Tag BASIC_LINK_TAG = new Tag()
266    {
267        /** {@inheritDoc} */
268        public String toString()
269        {
270            return "basic-link";
271        }
272    };
273
274    /** FO tag for <code>leader</code>. */
275    Tag LEADER_TAG = new Tag()
276    {
277        /** {@inheritDoc} */
278        public String toString()
279        {
280            return "leader";
281        }
282    };
283
284    /** FO tag for <code>page-number</code>. */
285    Tag PAGE_NUMBER_TAG = new Tag()
286    {
287        /** {@inheritDoc} */
288        public String toString()
289        {
290            return "page-number";
291        }
292    };
293
294    /** FO tag for <code>page-number-citation</code>. */
295    Tag PAGE_NUMBER_CITATION_TAG = new Tag()
296    {
297        /** {@inheritDoc} */
298        public String toString()
299        {
300            return "page-number-citation";
301        }
302    };
303
304    /** FO tag for <code>bookmark-tree</code>. */
305    Tag BOOKMARK_TREE_TAG = new Tag()
306    {
307        /** {@inheritDoc} */
308        public String toString()
309        {
310            return "bookmark-tree";
311        }
312    };
313
314    /** FO tag for <code>bookmark</code>. */
315    Tag BOOKMARK_TAG = new Tag()
316    {
317        /** {@inheritDoc} */
318        public String toString()
319        {
320            return "bookmark";
321        }
322    };
323
324    /** FO tag for <code>bookmark-title</code>. */
325    Tag BOOKMARK_TITLE_TAG = new Tag()
326    {
327        /** {@inheritDoc} */
328        public String toString()
329        {
330            return "bookmark-title";
331        }
332    };
333}