Dtd

The Dtd class provides a container for an SGML Document Type Declaration. More...

Public Methods

Dtd( );
QList<SgmlElement>&elements( );
QList<SgmlEntity>&entities( );
SgmlElement*getElement( QString name );
boolgetEntity( QString name, QString& text );
QStringsoi( );
voidsoi( const QString& soi );
SgmlElement*start( );
voidstart( SgmlElement* e );
~Dtd( );

Private Data Members

QList<SgmlElement>_elements;
QList<SgmlEntity>_entities;
QString_soi;
SgmlElement*_start;

Detailed Documentation

The Dtd class provides a container for an SGML Document Type Declaration.

Each Dtd has a style sheet associated with it, to determine how documents of this type are rendered. The Dtd also manages a StyleEditor for editing its associated style sheet.

Public Methods Documentation

Dtd ( );

Create a new DTD.

QList<SgmlElement>& elements ( );

Return the entire list of elements for this DTD.

QList<SgmlEntity>& entities ( );

Return the entire list of parameter entities.

SgmlElement* getElement ( QString name );

Lookup the SgmlElement with the given name, and return it if found.

bool getEntity ( QString name, QString& text );

Lookup a parameter entity reference, and return the text in text if found. Returns TRUE if found.

QString soi ( );

Return the storage object identifier for the DTD.

void soi ( const QString& soi );

Set the storage object identifier for the DTD.

SgmlElement* start ( );

Return the starting element for the document type.

void start ( SgmlElement* e );

Set the starting element for the document type.

~Dtd ( );

Destroy the DTD, its associated style sheet, and the StylEditor (if any).


Return to Index.
Automatically generated on Aug 11 23:32