diff options
author | David A. Madore <david+git@madore.org> | 2010-10-10 00:29:18 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-10-10 00:29:18 +0200 |
commit | fab2da0e75bc84e0a811c31a8082e4b00769b5e5 (patch) | |
tree | e9f459897c3367b23060b263fed3098b1835ba1c /org/madore/damlengine/TodoBodyElement.java | |
parent | bfb0b79e1682f323cb29fe89f0d1a27dcaa44d68 (diff) | |
download | damlengine-fab2da0e75bc84e0a811c31a8082e4b00769b5e5.tar.gz damlengine-fab2da0e75bc84e0a811c31a8082e4b00769b5e5.tar.bz2 damlengine-fab2da0e75bc84e0a811c31a8082e4b00769b5e5.zip |
Handle title and subtitle.
Diffstat (limited to 'org/madore/damlengine/TodoBodyElement.java')
-rw-r--r-- | org/madore/damlengine/TodoBodyElement.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoBodyElement.java b/org/madore/damlengine/TodoBodyElement.java index e70bd3b..fd75b89 100644 --- a/org/madore/damlengine/TodoBodyElement.java +++ b/org/madore/damlengine/TodoBodyElement.java @@ -35,6 +35,24 @@ public final class TodoBodyElement extends TodoDefaultElement { ArrayList<Node> childList = getChildList(this.node); ArrayList<TodoElement> toProcess = new ArrayList<TodoElement>(childList.size()+8); + if ( node.getAttributeNS(null, "notitle").equals("") + && ctx.title != null ) { + Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, + "d:implicit-do-title"); + bodyNode.appendChild(ctx.doc.createTextNode("\n")); + bodyNode.appendChild(token); + toProcess.add(new TodoTitleOrSubtitle(TodoTitleOrSubtitle.Type.TITLE, + token, this.ctx, this)); + } + if ( node.getAttributeNS(null, "nosubtitle").equals("") + && ctx.subtitle != null ) { + Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, + "d:implicit-do-subtitle"); + bodyNode.appendChild(ctx.doc.createTextNode("\n")); + bodyNode.appendChild(token); + toProcess.add(new TodoTitleOrSubtitle(TodoTitleOrSubtitle.Type.SUBTITLE, + token, this.ctx, this)); + } if ( node.getAttributeNS(null, "nonavbar").equals("") ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-navbar"); |