Role Playing Database (API Documentation)
3.1.1
|
Public Member Functions | |
getElementWidgetById (id) | |
getpageno () | |
getlineno () | |
bcmdmethod (id="") | |
XMLContentEditor (...) | |
~XMLContentEditor () | |
recreateXML (file) | |
outputXMLToPDF (pdfobj, heading="Sheet", curpage=0, curline=1000) | |
Static Public Member Functions | |
static | ExtractTagValue (xmlstring, name, default) |
Widget to for editing XML Content. Takes a XML string and builds a widget to edit it.
RolePlayingDB3::XMLContentEditor::XMLContentEditor | ( | ... | ) |
Constructor
widgetpath | The widget path. |
... | Options:
|
RolePlayingDB3::XMLContentEditor::~XMLContentEditor | ( | ) |
Destory the XML tree (free up memory).
RolePlayingDB3::XMLContentEditor::bcmdmethod | ( | id | = "" | ) |
Button command method
id | Button id |
|
static |
Fetch the value (character data) of a given Field by name in a XML String.
xmlstring | The XML string. |
name | The name. |
default | The value to return if the named field is not found. |
RolePlayingDB3::XMLContentEditor::getElementWidgetById | ( | id | ) |
Get an element's widget, given the element's id.
id | the element id. |
RolePlayingDB3::XMLContentEditor::getlineno | ( | ) |
Return the line number.
RolePlayingDB3::XMLContentEditor::getpageno | ( | ) |
Return page number
RolePlayingDB3::XMLContentEditor::outputXMLToPDF | ( | pdfobj | , |
heading | = "Sheet" , |
||
curpage | = 0 , |
||
curline | = 1000 |
||
) |
Output the XML tree as PDF to a pdfobject.
pdfobj | The pdfobject to write to. |
heading | The main heading. |
curpage | The current page number. |
curline | The current line number. |
RolePlayingDB3::XMLContentEditor::recreateXML | ( | file | ) |
Regenerate the XML string and save it to a file.
file | The name of the file to write to. |