View Javadoc

1   package org.apache.maven.doxia.module.fo;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import javax.swing.text.html.HTML.Tag;
23  
24  import org.apache.maven.doxia.markup.XmlMarkup;
25  
26  /**
27   * List of <code>FO</code> markups.
28   *
29   * @author ltheussl
30   * @version $Id: FoMarkup.java 746232 2009-02-20 13:32:44Z ltheussl $
31   * @since 1.1
32   */
33  public interface FoMarkup
34      extends XmlMarkup
35  {
36      /** FO namespace: "http://www.w3.org/1999/XSL/Format" target="alexandria_uri">http://www.w3.org/1999/XSL/Format" */
37      String FO_NAMESPACE = "http://www.w3.org/1999/XSL/Format";
38  
39      // ----------------------------------------------------------------------
40      // Specific FO tags
41      // ----------------------------------------------------------------------
42  
43      /** FO tag for <code>root</code>. */
44      Tag ROOT_TAG = new Tag()
45      {
46          /** {@inheritDoc} */
47          public String toString()
48          {
49              return "root";
50          }
51      };
52  
53      /** FO tag for <code>layout-master-set</code>. */
54      Tag LAYOUT_MASTER_SET_TAG = new Tag()
55      {
56          /** {@inheritDoc} */
57          public String toString()
58          {
59              return "layout-master-set";
60          }
61      };
62  
63      /** FO tag for <code>simple-page-master</code>. */
64      Tag SIMPLE_PAGE_MASTER_TAG = new Tag()
65      {
66          /** {@inheritDoc} */
67          public String toString()
68          {
69              return "simple-page-master";
70          }
71      };
72  
73      /** FO tag for <code>region-body</code>. */
74      Tag REGION_BODY_TAG = new Tag()
75      {
76          /** {@inheritDoc} */
77          public String toString()
78          {
79              return "region-body";
80          }
81      };
82  
83      /** FO tag for <code>region-before</code>. */
84      Tag REGION_BEFORE_TAG = new Tag()
85      {
86          /** {@inheritDoc} */
87          public String toString()
88          {
89              return "region-before";
90          }
91      };
92  
93      /** FO tag for <code>region-after</code>. */
94      Tag REGION_AFTER_TAG = new Tag()
95      {
96          /** {@inheritDoc} */
97          public String toString()
98          {
99              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 }