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 */ 033@SuppressWarnings( "checkstyle:interfaceistype" ) 034public interface FoMarkup 035 extends XmlMarkup 036{ 037 /** FO namespace: "http://www.w3.org/1999/XSL/Format" */ 038 String FO_NAMESPACE = "http://www.w3.org/1999/XSL/Format"; 039 040 // ---------------------------------------------------------------------- 041 // Specific FO tags 042 // ---------------------------------------------------------------------- 043 044 /** FO tag for <code>root</code>. */ 045 Tag ROOT_TAG = new Tag() 046 { 047 /** {@inheritDoc} */ 048 public String toString() 049 { 050 return "root"; 051 } 052 }; 053 054 /** FO tag for <code>layout-master-set</code>. */ 055 Tag LAYOUT_MASTER_SET_TAG = new Tag() 056 { 057 /** {@inheritDoc} */ 058 public String toString() 059 { 060 return "layout-master-set"; 061 } 062 }; 063 064 /** FO tag for <code>simple-page-master</code>. */ 065 Tag SIMPLE_PAGE_MASTER_TAG = new Tag() 066 { 067 /** {@inheritDoc} */ 068 public String toString() 069 { 070 return "simple-page-master"; 071 } 072 }; 073 074 /** FO tag for <code>region-body</code>. */ 075 Tag REGION_BODY_TAG = new Tag() 076 { 077 /** {@inheritDoc} */ 078 public String toString() 079 { 080 return "region-body"; 081 } 082 }; 083 084 /** FO tag for <code>region-before</code>. */ 085 Tag REGION_BEFORE_TAG = new Tag() 086 { 087 /** {@inheritDoc} */ 088 public String toString() 089 { 090 return "region-before"; 091 } 092 }; 093 094 /** FO tag for <code>region-after</code>. */ 095 Tag REGION_AFTER_TAG = new Tag() 096 { 097 /** {@inheritDoc} */ 098 public String toString() 099 { 100 return "region-after"; 101 } 102 }; 103 104 /** FO tag for <code>static-content</code>. */ 105 Tag STATIC_CONTENT_TAG = new Tag() 106 { 107 /** {@inheritDoc} */ 108 public String toString() 109 { 110 return "static-content"; 111 } 112 }; 113 114 115 /** FO tag for <code>page-sequence</code>. */ 116 Tag PAGE_SEQUENCE_TAG = new Tag() 117 { 118 /** {@inheritDoc} */ 119 public String toString() 120 { 121 return "page-sequence"; 122 } 123 }; 124 125 /** FO tag for <code>flow</code>. */ 126 Tag FLOW_TAG = new Tag() 127 { 128 /** {@inheritDoc} */ 129 public String toString() 130 { 131 return "flow"; 132 } 133 }; 134 135 /** FO tag for <code>block</code>. */ 136 Tag BLOCK_TAG = new Tag() 137 { 138 /** {@inheritDoc} */ 139 public String toString() 140 { 141 return "block"; 142 } 143 }; 144 145 /** FO tag for <code>list-block</code>. */ 146 Tag LIST_BLOCK_TAG = new Tag() 147 { 148 /** {@inheritDoc} */ 149 public String toString() 150 { 151 return "list-block"; 152 } 153 }; 154 155 /** FO tag for <code>list-item</code>. */ 156 Tag LIST_ITEM_TAG = new Tag() 157 { 158 /** {@inheritDoc} */ 159 public String toString() 160 { 161 return "list-item"; 162 } 163 }; 164 165 /** FO tag for <code>list-item-body</code>. */ 166 Tag LIST_ITEM_BODY_TAG = new Tag() 167 { 168 /** {@inheritDoc} */ 169 public String toString() 170 { 171 return "list-item-body"; 172 } 173 }; 174 175 /** FO tag for <code>list-item-label</code>. */ 176 Tag LIST_ITEM_LABEL_TAG = new Tag() 177 { 178 /** {@inheritDoc} */ 179 public String toString() 180 { 181 return "list-item-label"; 182 } 183 }; 184 185 /** FO tag for <code>table-and-caption</code>. */ 186 Tag TABLE_AND_CAPTION_TAG = new Tag() 187 { 188 /** {@inheritDoc} */ 189 public String toString() 190 { 191 return "table-and-caption"; 192 } 193 }; 194 195 /** FO tag for <code>table</code>. */ 196 Tag TABLE_TAG = new Tag() 197 { 198 /** {@inheritDoc} */ 199 public String toString() 200 { 201 return "table"; 202 } 203 }; 204 205 /** FO tag for <code>table-body</code>. */ 206 Tag TABLE_BODY_TAG = new Tag() 207 { 208 /** {@inheritDoc} */ 209 public String toString() 210 { 211 return "table-body"; 212 } 213 }; 214 215 /** FO tag for <code>table-column</code>. */ 216 Tag TABLE_COLUMN_TAG = new Tag() 217 { 218 /** {@inheritDoc} */ 219 public String toString() 220 { 221 return "table-column"; 222 } 223 }; 224 225 /** FO tag for <code>table-row</code>. */ 226 Tag TABLE_ROW_TAG = new Tag() 227 { 228 /** {@inheritDoc} */ 229 public String toString() 230 { 231 return "table-row"; 232 } 233 }; 234 235 /** FO tag for <code>table-cell</code>. */ 236 Tag TABLE_CELL_TAG = new Tag() 237 { 238 /** {@inheritDoc} */ 239 public String toString() 240 { 241 return "table-cell"; 242 } 243 }; 244 245 /** FO tag for <code>table-caption</code>. */ 246 Tag TABLE_CAPTION_TAG = new Tag() 247 { 248 /** {@inheritDoc} */ 249 public String toString() 250 { 251 return "table-caption"; 252 } 253 }; 254 255 /** FO tag for <code>inline</code>. */ 256 Tag INLINE_TAG = new Tag() 257 { 258 /** {@inheritDoc} */ 259 public String toString() 260 { 261 return "inline"; 262 } 263 }; 264 265 /** FO tag for <code>basic-link</code>. */ 266 Tag BASIC_LINK_TAG = new Tag() 267 { 268 /** {@inheritDoc} */ 269 public String toString() 270 { 271 return "basic-link"; 272 } 273 }; 274 275 /** FO tag for <code>leader</code>. */ 276 Tag LEADER_TAG = new Tag() 277 { 278 /** {@inheritDoc} */ 279 public String toString() 280 { 281 return "leader"; 282 } 283 }; 284 285 /** FO tag for <code>page-number</code>. */ 286 Tag PAGE_NUMBER_TAG = new Tag() 287 { 288 /** {@inheritDoc} */ 289 public String toString() 290 { 291 return "page-number"; 292 } 293 }; 294 295 /** FO tag for <code>page-number-citation</code>. */ 296 Tag PAGE_NUMBER_CITATION_TAG = new Tag() 297 { 298 /** {@inheritDoc} */ 299 public String toString() 300 { 301 return "page-number-citation"; 302 } 303 }; 304 305 /** FO tag for <code>bookmark-tree</code>. */ 306 Tag BOOKMARK_TREE_TAG = new Tag() 307 { 308 /** {@inheritDoc} */ 309 public String toString() 310 { 311 return "bookmark-tree"; 312 } 313 }; 314 315 /** FO tag for <code>bookmark</code>. */ 316 Tag BOOKMARK_TAG = new Tag() 317 { 318 /** {@inheritDoc} */ 319 public String toString() 320 { 321 return "bookmark"; 322 } 323 }; 324 325 /** FO tag for <code>bookmark-title</code>. */ 326 Tag BOOKMARK_TITLE_TAG = new Tag() 327 { 328 /** {@inheritDoc} */ 329 public String toString() 330 { 331 return "bookmark-title"; 332 } 333 }; 334}