summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoBodyElement.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-10-10 00:29:18 +0200
committerDavid A. Madore <david+git@madore.org>2010-10-10 00:29:18 +0200
commitfab2da0e75bc84e0a811c31a8082e4b00769b5e5 (patch)
treee9f459897c3367b23060b263fed3098b1835ba1c /org/madore/damlengine/TodoBodyElement.java
parentbfb0b79e1682f323cb29fe89f0d1a27dcaa44d68 (diff)
downloaddamlengine-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.java18
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");