DocbookDoc Class Reference

A docbook/XML document. More...

#include <docbookdoc.h>

List of all members.

Public Member Functions

 DocbookDoc (QString title)
Element title (QString title, Element parent=Element())
 
Returns:
a new <title> element with parent set to parent.

Element bridgehead (QString title)
 
Returns:
a new bridgehead element child

Element orderedlist ()
Element chapter (QString title)
 
Returns:
a new <chapter> element, with given title, as a child of the root element

Element xref (QString id)
 
Returns:
a simple xref element

Element xrefP (QString id)
 
Returns:
an xref in parantheses in a para

Element section (QString title)
 
Returns:
a new section, as a child of the most recently created chapter.

Element appendix (QString title)
 
Returns:
a new appendix

Element bold (QString boldText)
 
Returns:
a parentless but of bold text

Element listitem ()
QString getTitle (Element el) const
 
Returns:
the title of the corresponding element, if there is one.

Element formalpara (QString title, QString text)
 
Returns:
a new paragraph with a title, as a child of the most recently created chapter or section

Element para (QString text)
 
Returns:
an ordinary paragraph

Element simplesect (QString titleStr)
 
Returns:
a titled simplesect element


Static Public Member Functions

static void setRole (Element el, QString role)
 
Parameters:
el An element for which you want to set an attribute


Public Attributes

Element currentParent
Element currentPara
Element currentChapter
Element currentList


Detailed Description

A docbook/XML document.

Author:
Alan Ezust

Definition at line 18 of file docbookdoc.h.


Member Function Documentation

void DocbookDoc::setRole ( Element  el,
QString  role 
) [static]

Parameters:
el An element for which you want to set an attribute

Parameters:
role - the condition you wish to set

Definition at line 102 of file docbookdoc.cpp.

Referenced by bold().


The documentation for this class was generated from the following files:
Generated on Wed Sep 30 01:15:44 2009 for oopapidocs by  doxygen 1.5.1