ubit::UXmlDoc Class Reference

XML Doc. More...

#include <udom.hpp>

Inheritance diagram for ubit::UXmlDoc:

ubit::UDoc ubit::UVbox ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 UXmlDoc (const UStr &pathname)
virtual unsigned short getNodeType () const
 returns the XML node type.
virtual const UStrgetNodeName () const
 return the XML node name.
virtual const UStrgetNodeValue () const
 return the XML node value.
virtual UGroupgetDocumentElement ()
virtual const UGroupgetDocumentElement () const
virtual const UXmlDocTypegetDoctype () const
virtual const UStrgetXmlVersion () const
virtual const UStrgetXmlEncoding () const
virtual bool isXmlStandalone () const
virtual UPropcreateAttribute (const UStr &name)
virtual UGroupcreateElement (const UStr &name)
virtual UStrcreateTextNode (const UStr &data)
virtual UCommentcreateComment (const UStr &data)
virtual UCDATASectioncreateCDATASection (const UStr &data)
virtual UProcessingInstructioncreateProcessingInstruction (const UStr &target, const UStr &data)
virtual void initElement (UGroup *)
virtual void setClassStyle (UGroup *, const UStr *name, const UStr *value)
virtual void setIdStyle (UGroup *, const UStr *name, const UStr *value)
virtual void addGrammar (const UXmlGrammar &)
 adds a grammar to the document.
virtual void print (std::ostream &fout)
 prints the XML tree on this stream (eg. std::cout).
virtual void print (UStr &buffer)
 prints the XML tree on this buffer.
virtual const UDocAttachments * getAttachments () const
 returns the list of attachments.
virtual int loadAttachments (bool reload=false)
 loads the attachments.
virtual bool loadAttachment (UDocAttachment *, bool reload=false)
 loads this attachment.
virtual void addAttachment (UDocAttachment *)
 impl.
const UStyleSheet & getStyleSheet () const
UStyleSheet & getStyleSheet ()
 impl.

Protected Member Functions

void constructs ()
virtual void setClassIdStyle (UGroup *, const UStr *name, const UStr *value)

Protected Attributes

uptr< UStrxml_version
uptr< UStrxml_encoding
bool xml_standalone
UXmlDocTypedoc_type
UXmlGrammarsgrammars
UStyleSheet doc_stylesheet
UGroupdoc_elem
UDocAttachments attachments

Static Protected Attributes

static const UStr NodeName

Friends

class UXmlParser

Detailed Description

XML Doc.


Member Function Documentation

int ubit::UXmlDoc::loadAttachments ( bool  reload = false  )  [virtual]

loads the attachments.

Reimplemented from ubit::UDoc.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:48 2007 for Ubit by  doxygen 1.4.7