* @param isTOCIdentifier
* <code>true</code> if the __TOC__ keyword was parsed
*/
public ITableOfContent createTableOfContent(boolean isTOCIdentifier) {
if (fTableOfContentTag == null) {
TableOfContentTag tableOfContentTag = new TableOfContentTag("div");
tableOfContentTag.addAttribute("id", "tableofcontent", true);
tableOfContentTag.setShowToC(false);
tableOfContentTag.setTOCIdentifier(isTOCIdentifier);
fTableOfContentTag = tableOfContentTag;
this.append(fTableOfContentTag);
} else {
if (isTOCIdentifier) {
// try {
TableOfContentTag tableOfContentTag = (TableOfContentTag) fTableOfContentTag.clone();
fTableOfContentTag.setShowToC(false);
tableOfContentTag.setShowToC(true);
tableOfContentTag.setTOCIdentifier(isTOCIdentifier);
fTableOfContentTag = tableOfContentTag;
// } catch (CloneNotSupportedException e) {
// e.printStackTrace();
// }
this.append(fTableOfContentTag);